1 2018-10-19 Tom Tromey <tom@tromey.com>
3 * symfile.c (reread_symbols): Clear "static_links".
5 2018-10-19 Alan Hayward <alan.hayward@arm.com>
7 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
9 (aarch64_linux_sigframe_init): Extra boundary checks.
11 2018-10-19 Andreas Arnez <arnez@linux.ibm.com>
13 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
14 the possibly non-existent tdesc type 'vec128', but the type of raw
17 2018-10-19 Gary Benson <gbenson@redhat.com>
19 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
21 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
24 * cli/cli-dump.c (restore_binary_file): Check if "file" is
27 2018-10-17 Paul Koning <paul_koning@dell.com>
29 * charset.c (convert_between_encodings): Fix unsigned overflow.
31 2018-10-17 John Baldwin <jhb@FreeBSD.org>
33 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
34 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
35 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
36 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
38 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
39 and fbsd_info_proc_mappings_header.
40 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
41 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
44 2018-10-17 Joel Brobecker <brobecker@adacore.com>
46 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
49 2018-10-15 Tom Tromey <tom@tromey.com>
51 * tui/tui.c (strcat_to_buf): Remove casts.
52 * tui/tui-winsource.c (tui_show_source_line)
53 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
54 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
55 * tui/tui-windata.c (tui_first_data_item_displayed)
56 (tui_delete_data_content_windows, tui_erase_data_content)
57 (tui_display_all_data, tui_display_data_from)
58 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
59 * tui/tui-win.c (tui_set_win_height)
60 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
62 * tui/tui-win.c (tui_resize_all): Remove casts.
63 (tui_scroll_backward_command, tui_set_focus)
64 (tui_set_tab_width_command): Likewise.
65 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
66 * tui/tui-regs.c (tui_show_register_group): Remove cast.
67 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
68 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
69 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
72 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
74 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
75 AArch64/ARM maintainer.
77 2018-10-11 Gary Benson <gbenson@redhat.com>
79 * interps.h (interp::m_name): Make private and mutable.
80 * interps.c (interp::~interp): Free m_name.
82 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
83 Simon Marchi <simark@simark.ca>
85 * README (`configure' options): Add documentation for new
86 "--enable-unit-tests" option.
87 * acinclude.m4: Include "selftest.m4".
88 * configure: Regenerate.
89 * configure.ac: Use "GDB_AC_SELFTEST".
90 * maint.c (maintenance_selftest): Update message informing
91 that selftests have been disabled.
92 (maintenance_info_selftests): Likewise.
93 * selftest.m4: New file.
95 2018-10-10 Gary Benson <gbenson@redhat.com>
97 * remote.c (remote_target::remote_send_printf): Add
98 missing va_end found by Coverity.
100 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
102 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
104 2018-10-09 Tom Tromey <tom@tromey.com>
106 * configure: Rebuild.
107 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
108 * NEWS: Update --enable-ubsan documentation.
110 2018-10-09 Gary Benson <gbenson@redhat.com>
112 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
115 2018-10-08 Tom Tromey <tom@tromey.com>
117 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
119 (riscv_fbsd_init_abi): Likewise.
121 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
122 * valops.c (value_struct_elt_for_reference): Rename local variable
123 to work around the shadowing a previous local warning.
125 2018-10-08 John Baldwin <jhb@FreeBSD.org>
127 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
128 * NEWS: Mention new FreeBSD/riscv native configuration.
129 * configure.host: Add riscv*-*-freebsd*.
130 * configure.nat: Likewise.
131 * riscv-fbsd-nat.c: New file.
133 2018-10-08 John Baldwin <jhb@FreeBSD.org>
135 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
136 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
137 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
138 * NEWS: Mention new FreeBSD/riscv target.
139 * configure.tgt: Add riscv*-*-freebsd*.
140 * riscv-fbsd-tdep.c: New file.
141 * riscv-fbsd-tdep.h: New file.
143 2018-10-08 John Baldwin <jhb@FreeBSD.org>
145 * regcache.h (struct regcache_map_entry): Note that this type can
146 be used with traditional frame caches.
147 * trad-frame.c (trad_frame_set_reg_regmap): New.
148 * trad-frame.h (trad_frame_set_reg_regmap): New.
150 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
153 * valops.c (get_virtual_base_offset): New function.
154 (value_struct_elt_for_reference): Use it to get virtual base offset
155 and add it in calculating class member address.
157 2018-10-08 John Darrington <john@darrington.wattle.id.au>
159 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
160 (check_producer): Check if the producer is codewarrior.
161 (producer_is_codewarrior): New function.
162 (lnp_state_machine::record_line): Ignore is_stmt flag for records
163 produced by codewarrior.
164 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
166 2018-10-06 Tom Tromey <tom@tromey.com>
169 * python/py-inferior.c: Add "architecture" entry.
170 (infpy_architecture): New function.
172 2018-10-06 Tom Tromey <tom@tromey.com>
175 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
176 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
177 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
178 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
180 2018-10-06 Tom Tromey <tom@tromey.com>
183 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
184 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
185 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
188 2018-10-06 Tom Tromey <tom@tromey.com>
190 * python/py-breakpoint.c (bppy_get_location): Handle a
191 bp_breakpoint without a location.
193 2018-10-06 Tom Tromey <tom@tromey.com>
195 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
196 (_RegEx): Reformat help text.
197 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
198 (AnyCallerIs, AnyCallerMatches): Reformat help text.
199 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
201 * python/lib/gdb/command/xmethods.py (InfoXMethod)
202 (EnableXMethod, DisableXMethod): Remove help indentation.
203 Capitalize meta-syntactic variables.
204 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
205 (EnableUnwinder, DisableUnwinder): Remove help indentation.
206 Capitalize meta-syntactic variables.
207 * python/lib/gdb/command/explore.py (ExploreCommand)
208 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
209 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
210 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
211 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
212 Remove help indentation.
213 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
214 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
215 (DisableFrameFilter, SetFrameFilterPriority)
216 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
218 2018-10-06 Tom Tromey <tom@tromey.com>
221 * tui/tui-io.c (gdb_wgetch): New function.
222 (tui_mld_getc, tui_getc): Use it.
224 2018-10-05 Tom Tromey <tom@tromey.com>
226 * sol-thread.c (sol_thread_target::wait): Rename inner
229 2018-10-04 Tom Tromey <tom@tromey.com>
231 * configure: Rebuild.
232 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
234 2018-10-04 Tom Tromey <tom@tromey.com>
236 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
237 declaration of "block".
239 2018-10-04 Tom Tromey <tom@tromey.com>
241 * common/filestuff.c (fdwalk): Remove inner declaration of
244 2018-10-04 Tom Tromey <tom@tromey.com>
246 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
247 "structs_addr" and hoist declaration.
249 2018-10-04 Tom Tromey <tom@tromey.com>
251 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
254 2018-10-04 Tom Tromey <tom@tromey.com>
256 * mdebugread.c (parse_partial_symbols): Use std::string.
258 2018-10-04 Tom Tromey <tom@tromey.com>
260 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
261 * p-valprint.c (pascal_val_print): Split inner "i" variable.
262 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
264 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
266 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
267 * varobj.c (varobj_update): Rename inner "newobj",
269 * valprint.c (generic_emit_char): Rename inner "buf".
270 * valops.c (find_overload_match): Rename inner "temp".
271 (value_struct_elt_for_reference): Declare "v" in more inner
273 * v850-tdep.c (v850_push_dummy_call): Rename "len".
274 * unittests/array-view-selftests.c (run_tests): Rename inner
276 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
278 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
279 "tsv" in more inner scope.
280 (print_one_static_tracepoint_marker): Rename inner
282 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
283 (tic6x_push_dummy_call): Don't redeclare "addr".
284 * target-float.c: Declare "dto" lower.
285 * symtab.c (lookup_local_symbol): Rename inner "sym".
286 (find_pc_sect_line): Rename inner "pc".
287 * stack.c (print_frame): Don't redeclare "gdbarch".
288 (return_command): Rename inner "gdbarch".
289 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
291 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
293 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
294 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
296 * remote.c (remote_target::update_thread_list): Don't redeclare
298 (remote_target::process_initial_stop_replies): Rename inner
300 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
301 (remote_target::wait_as): Don't redeclare "stop_reply".
302 (remote_target::get_thread_local_address): Rename inner
304 (remote_target::get_tib_address): Likewise.
306 * regcache.c (cooked_read_test): Rename "regnum".
307 * record-btrace.c (cmd_record_btrace_start): Rename inner
309 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
311 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
313 (ppu2spu_sniffer): Rename inner "buf".
314 * parse.c (operator_check_standard): Rename inner "type",
316 * p-valprint.c (pascal_val_print): Introduce new scope for
317 "low_bound", "high_bound".
318 * p-exp.y (yylex): Declare "i" in loop header.
319 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
320 Lower declaration of "s".
321 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
323 (nios2_push_dummy_call): Rename "len".
324 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
326 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
327 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
328 (linux_xfer_osdata_modules): Likewise.
329 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
330 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
331 (mips_o64_push_dummy_call): Likewise.
332 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
334 * mi/mi-main.c (list_available_thread_groups): Rename inner
336 (mi_cmd_data_read_memory): Rename inner "opts".
337 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
339 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
340 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
342 (parse_partial_symbols): Rename inner "pst", "p", "name"
343 * main.c (captured_main_1): Rename inner "i"s.
344 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
346 * linux-tdep.c (linux_info_proc): Rename inner "filename".
347 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
348 * infrun.c (handle_no_resumed): Don't redeclare "thread".
349 (handle_signal_stop): Rename inner "gdbarch".
350 (handle_command): Declare "signum" in loop header.
351 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
353 (examine_prologue): Rename inner "sol" and "sof".
354 (ia64_extract_return_value): Rename inner "val". Declare another
355 "val" in a more inner scope.
356 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
358 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
360 * findvar.c (default_read_var_value): Don't redeclare "addr".
361 * f-exp.y (yylex): Declare "i" in loop header.
362 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
363 Rename inner "type", "expect_type".
364 (evaluate_subexp_for_sizeof): Rename inner "pc".
365 * elfread.c (elf_symfile_read): Rename inner "abfd".
366 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
368 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
369 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
370 (dwarf_decode_line_header): Rename inner "lh".
371 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
372 "offset". Declare "i" in loop header.
373 (disassemble_dwarf_expression): Rename inner "addr_size".
374 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
376 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
377 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
378 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
379 "inner_list_emitter".
380 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
381 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
382 declaration in a block.
383 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
384 * cp-valprint.c (cp_print_value_fields): Don't redeclare
385 "obstack_final_size".
386 * cp-support.c (inspect_type): Declare "i" in loop header.
387 * compile/compile.c (compile_instance::insert_symbol_error):
389 * common/agent.c (agent_run_command): Remove inner "ret"
391 * coffread.c (coff_symfile_read): Rename inner "name".
392 (coff_symfile_read): Rename inner "abfd".
393 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
394 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
396 * c-exp.y (lex_one_token): Move "len" declaration lower.
397 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
399 (create_exception_master_breakpoint): Likewise. Don't redeclare
401 (watch_command_1): Declare "mark" later.
402 (clear_command): Don't shadow "a" or "b".
403 (delete_command): Rename inner "b".
404 (delete_trace_command): Likewise.
405 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
407 (arm_gdbarch_init): Remove inner "e_flags".
408 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
409 "offset" in inner blocks.
411 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
413 * dwarf-index-write.c (file_write): Don't write if the vector is
416 2018-10-05 Tom de Vries <tdevries@suse.de>
418 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
419 PyArg_ParseTuple call.
421 2018-10-05 Tom de Vries <tdevries@suse.de>
423 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
424 PyArg_ParseTuple call.
426 2018-10-04 Joel Brobecker <brobecker@adacore.com>
428 * psymtab.c (recursively_search_psymtabs): Reformat parameters
429 to avoid exceeding 80 characters per line limit.
431 2018-10-04 Tom Tromey <tom@tromey.com>
433 * symfile.c (syms_from_objfile_1, finish_new_objfile)
434 (reread_symbols): Update.
435 * complaints.h (clear_complaints): Remove argument.
436 * complaints.c (enum complaint_series): Remove.
437 (series): Remove global.
438 (complaint_internal): Update.
439 (clear_complaints): Remove argument.
441 2018-10-04 Tom Tromey <tom@tromey.com>
443 * symfile.c (symbol_file_add_with_addrs): Do not print "no
444 debugging symbols" message if there is a separate debug objfile.
446 2018-10-04 Tom Tromey <tom@tromey.com>
449 * symfile.c (symbol_file_add_with_addrs): Update output.
450 * psymtab.c (require_partial_symbols): Update output.
452 2018-10-04 Tom Tromey <tom@tromey.com>
455 * complaints.c: Emit \n.
457 2018-10-04 Tom Tromey <tom@tromey.com>
459 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
460 (separate_debug_file_exists, find_separate_debug_file)
461 (add_symbol_file_command, reread_symbols, allocate_symtab)
462 (allocate_compunit_symtab): Use filtered printing, not
464 * psymtab.c (require_partial_symbols, dump_psymtab)
465 (allocate_psymtab): Use filtered printing, not unfiltered.
467 2018-10-04 Tom Tromey <tom@tromey.com>
469 * complaints.c (complaint_internal): Correctly check complaint
472 2018-10-04 Tom Tromey <tom@tromey.com>
474 * complaints.h (struct complaints): Remove declaration.
475 * complaints.c (clear_complaints): Remove an unused variable.
477 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
479 * MAINTAINERS (Write After Approval): Add self.
481 2018-10-03 Tom Tromey <tom@tromey.com>
483 * guile/scm-value.c (gdbscm_value_to_string): Initialize
485 * coffread.c (coff_symtab_read): Initialize "newobj".
487 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
489 * dwarf2read.c (read_func_scope): Remove struct keyword in
492 2018-10-03 Tom Tromey <tom@tromey.com>
494 * README: Mention --enable-ubsan.
495 * NEWS: Mention --enable-ubsan.
496 * acinclude.m4: Include sanitize.m4.
497 * configure: Rebuild.
498 * configure.ac: Call AM_GDB_UBSAN.
499 * sanitize.m4: New file.
501 2018-10-03 Tom Tromey <tom@tromey.com>
503 * expression.h (enum exp_opcode): Use uint8_t as base type.
504 * expprint.c (op_name): Handle invalid opcodes.
506 2018-10-03 Tom Tromey <tom@tromey.com>
508 * parse.c (prefixify_expression): Add assert.
509 (parse_exp_in_context_1): Throw exception if the expression is
512 2018-10-03 Tom Tromey <tom@tromey.com>
514 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
516 2018-10-03 Tom Tromey <tom@tromey.com>
518 * c-exp.y (parse_number): Work in unsigned. Remove casts.
520 2018-10-03 Tom Tromey <tom@tromey.com>
522 * dwarf2read.c (read_subrange_type): Make "negative_mask"
525 2018-10-03 Tom Tromey <tom@tromey.com>
527 * findvar.c (extract_integer): Do work in an unsigned type.
529 2018-10-03 Tom Tromey <tom@tromey.com>
531 * common/enum-flags.h (enum_flags::operator~): Add static assert.
532 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
534 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
535 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
537 * c-lang.h (enum c_string_type_values): Use unsigned as base
539 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
541 2018-10-03 Tom Tromey <tom@tromey.com>
543 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
544 <~dwarf2_frame_state_reg_info>: Update.
545 <dwarf2_frame_state_reg_info>: Update.
546 <alloc_regs>: Add assertion. Update.
547 <reg>: Now a std::vector.
550 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
551 (execute_cfa_program_test, dwarf2_frame_cache): Update.
553 2018-10-03 Tom Tromey <tom@tromey.com>
555 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
557 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
559 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
561 2018-10-02 Tom Tromey <tom@tromey.com>
563 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
565 2018-10-02 John Darrington <john@darrington.wattle.id.au>
567 * NEWS: Mention changed commands.
568 * ser-uds.c: New file.
569 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
570 * configure: Regenerate.
571 * Makefile.in: Add new file.
572 * serial.c (serial_open): Check if filename is a socket
573 and lookup the appropriate interface accordingly.
575 2018-10-01 Alan Hayward <alan.hayward@arm.com>
577 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
579 (AARCH64_EXTRA_MAGIC): Likewise.
580 (AARCH64_FPSIMD_MAGIC): Likewise.
581 (AARCH64_SVE_MAGIC): Likewise.
582 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
583 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
584 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
585 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
586 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
587 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
588 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
589 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
590 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
591 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
592 (read_aarch64_ctx): Add function.
593 (aarch64_linux_sigframe_init): Detect FP registers.
595 2018-10-01 Alan Hayward <alan.hayward@arm.com>
597 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
598 (AARCH64_D0_REGNUM): Likewise.
599 (AARCH64_S0_REGNUM): Likewise.
600 (AARCH64_H0_REGNUM): Likewise.
601 (AARCH64_B0_REGNUM): Likewise.
602 (AARCH64_SVE_V0_REGNUM): Likewise.
603 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
604 (AARCH64_D0_REGNUM): Likewise.
605 (AARCH64_S0_REGNUM): Likewise.
606 (AARCH64_H0_REGNUM): Likewise.
607 (AARCH64_B0_REGNUM): Likewise.
608 (AARCH64_SVE_V0_REGNUM): Likewise.
610 2018-10-01 Gary Benson <gbenson@redhat.com>
612 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
613 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
614 prfpregset_t instead of gdb_prfpregset_t.
615 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
616 * configure, config.in: Rebuild.
618 2018-10-01 Gary Benson <gbenson@redhat.com>
620 * common/gdb_proc_service.h: New file, factored out from...
621 * gdb_proc_service.h: Moved common code to the above file.
622 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
624 2018-10-01 Gary Benson <gbenson@redhat.com>
626 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
627 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
629 2018-10-01 Gary Benson <gbenson@redhat.com>
631 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
632 (AC_CHECK_HEADERS): Check for linux/elf.h.
633 * configure, config.in: Rebuild.
634 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
635 doesn't define elf_fpregset_t.
637 2018-10-01 Gary Benson <gbenson@redhat.com>
639 * gdb_proc_service.h: Whitespace change.
641 2018-10-01 Tom Tromey <tom@tromey.com>
643 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
644 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
645 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
647 2018-10-01 Tom Tromey <tom@tromey.com>
649 * README: Minor change.
651 2018-09-30 Pedro Alves <palves@redhat.com>
653 * darwin-nat-info.c (darwin_debug_regions_recurse)
654 (info_mach_exceptions_command): Remove unused local variables.
655 * darwin-nat.c (darwin_decode_notify_message)
656 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
657 (darwin_stop_inferior, darwin_setup_exceptions)
658 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
659 (darwin_nat_target::attach, darwin_nat_target::detach)
660 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
662 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
665 2018-09-29 Tom Tromey <tom@tromey.com>
667 * README: Remove some leftover text.
669 2018-09-29 Tom Tromey <tom@tromey.com>
674 2018-09-28 John Baldwin <jhb@FreeBSD.org>
676 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
677 case with explicit breakpoint kind.
678 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
679 'additional_info' and related logic.
680 (riscv_debug_breakpoints): New variable.
681 (riscv_breakpoint_kind_from_pc): Use the length of the existing
682 instruction to determine the breakpoint kind.
683 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
684 flag. Update description of 'set/show riscv
685 use-compressed-breakpoints' flag.
687 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
689 (NEWS): Mention changes to frame related commands.
690 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
691 (add_prefix_cmd_suppress_notification): New function.
692 (add_com_suppress_notification): Call
693 add_cmd_suppress_notification.
694 * command.h (add_cmd_suppress_notification): Declare.
695 (add_prefix_cmd_suppress_notification): Declare.
696 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
697 (parse_frame_specification): Moved from stack.c, with
698 simplification to handle a single argument.
699 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
700 switch to the selected frame. Add a header comment.
701 * stack.c: Remove 'safe-ctype.h' include.
702 (find_frame_for_function): Add declaration.
703 (find_frame_for_address): New function.
704 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
705 (frame_selection_by_function_completer): New function.
706 (info_frame_command): Rename to...
707 (info_frame_command_core): ...this, and update parameter types.
708 (select_frame_command): Rename to...
709 (select_frame_command_core): ...this, and update parameter types.
710 (frame_command): Rename to...
711 (frame_command_core): ...this, and update parameter types.
712 (class frame_command_helper): New class to wrap implementations of
713 frame related sub-commands.
714 (frame_apply_cmd_list): New static global.
715 (frame_cmd_list): Make static.
716 (select_frame_cmd_list): New global for sub-commands.
717 (info_frame_cmd_list): New global for sub-commands.
718 (_initialize_stack): Register sub-commands for 'frame',
719 'select-frame', and 'info frame'. Update 'frame apply' commands
720 to use frame_apply_cmd_list. Move function local static
721 frame_apply_list to file static frame_apply_cmd_list for
723 * stack.h (select_frame_command): Delete declarationn.
724 (select_frame_for_mi): Declare new function.
726 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
728 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
729 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
732 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
734 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
736 2018-09-26 Tom Tromey <tom@tromey.com>
738 * valops.c (auto_abandon): Remove dead code.
740 2018-09-26 Tom Tromey <tom@tromey.com>
742 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
744 2018-09-24 Tom Tromey <tom@tromey.com>
746 * common/pathstuff.c (get_standard_cache_dir): Make
747 "xdg_cache_home" and "home" const.
748 * top.c (init_history): Make "tmpenv" const.
749 * main.c (get_init_files): Make "homedir" const.
751 2018-09-23 Tom Tromey <tom@tromey.com>
754 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
756 2018-09-23 Tom Tromey <tom@tromey.com>
758 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
759 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
760 * python/python-internal.h (gdbpy_handle_exception): Declare.
761 * python/py-utils.c (gdbpy_handle_exception): New function.
763 2018-09-23 Tom Tromey <tom@tromey.com>
766 * python/py-type.c (typy_template_argument): Check for negative
769 2018-09-23 Tom Tromey <tom@tromey.com>
772 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
774 2018-09-23 Tom Tromey <tom@tromey.com>
777 * python/py-value.c (valpy_int): Allow conversion from pointer
780 2018-09-23 Tom Tromey <tom@tromey.com>
783 * python/py-value.c (valpy_int): Respect type sign.
785 2018-09-23 Tom Tromey <tom@tromey.com>
788 * python/py-value.c (valpy_float): Allow conversions from int or
790 (valpy_int, valpy_long): Allow conversions from float.
792 2018-09-23 Tom Tromey <tom@tromey.com>
794 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
795 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
797 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
799 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
801 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
803 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
805 * windows-nat.c (windows_nat_target::wait): Remove a spurious
806 target_terminal::ours().
808 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
810 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
813 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
815 * breakpoint.c (update_inserted_breakpoint_locations): Remove
818 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
820 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
822 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
823 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
824 * sol-thread.c (ps_pdmodel): Don't guard definition.
826 * procfs.c: Fix formatting.
828 * procfs.c (sysset_t_alloc): Remove.
829 (create_procinfo): Use XNEW instead of sysset_t_alloc.
830 (procfs_debug_inferior): Likewise.
831 (procfs_set_exec_trap): Likewise.
832 (proc_set_traced_sysentry): Don't allocate argp dynamically.
833 (proc_set_traced_sysexit): Likewise.
835 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
836 (dead_procinfo): Likewise.
837 (proc_warn): Likewise.
838 (proc_error): Likewise.
839 (proc_get_LDT_entry): Likewise.
840 (do_attach): Likewise.
841 (procfs_target::pid_to_str): Likewise.
842 (iterate_over_mappings): Likewise.
844 * procfs.c (create_procinfo): Fix ARI warning.
845 (proc_get_status): Likewise.
846 (proc_stop_process): Likewise.
847 (proc_run_process): Likewise.
848 (proc_kill): Likewise.
849 (proc_get_LDT_entry): Likewise.
850 (procfs_find_LDT_entry): Likewise.
851 (proc_update_threads): Likewise.
852 (proc_iterate_over_threads): Likewise.
853 (do_attach): Likewise.
854 (procfs_xfer_memory): Likewise.
855 (invalidate_cache): Likewise.
856 (procfs_target::resume): Likewise.
857 (procfs_init_inferior): Likewise.
858 (procfs_set_exec_trap): Likewise.
859 (procfs_target::thread_alive): Likewise.
860 (procfs_target::pid_to_exec_file): Likewise.
861 (iterate_over_mappings): Likewise.
862 (procfs_target::make_corefile_notes): Likewise.
863 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
865 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
866 (procfs_find_LDT_entry): Likewise.
867 * sol-thread.c (ps_lgetLDT): Likewise.
869 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
872 * procfs.c (procfs_target): Declare pid_to_exec_file.
873 (procfs_target::pid_to_exec_file): New.
875 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
877 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
879 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
880 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
882 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
884 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
885 (supply_fpregset, fill_fpregset): Move ...
886 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
887 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
888 Remove references to ioctl-based procfs.
890 Remove PR_MODEL_NATIVE guards.
891 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
892 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
894 2018-09-19 Xavier Roirand <roirand@adacore.com>
897 * solib-darwin.c (darwin_get_dyld_bfd): New function.
898 (darwin_solib_get_all_image_info_addr_at_init): Update call.
899 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
901 2018-09-19 John Baldwin <jhb@FreeBSD.org>
903 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
904 (fbsd_print_sockaddr_in6): Likewise.
906 2018-09-19 Richard Bunt <richard.bunt@arm.com>
907 Chris January <chris.january@arm.com>
909 * eval.c (skip_undetermined_arglist): Skip argument list helper.
910 (evaluate_subexp_standard): Return a dummy type when
911 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
912 OP_F77_UNDETERMINED_ARGLIST case.
913 * expression.h (enum noside): Update comment.
915 2018-09-19 George Vasick <george.vasick@oracle.com>
917 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
919 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
920 April Chin <april.chin@oracle.com>
921 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
923 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
925 (create_procinfo): Print pids in /proc without leading zeros.
927 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
929 * nios2-tdep.c (nios2_gcc_target_options): New.
930 (nios2_gdb_arch_init): Install new hook.
932 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
934 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
936 * update-gnulib.sh: Apply patch.
937 * configure: Re-generate.
939 2018-09-18 John Baldwin <jhb@FreeBSD.org>
941 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
942 description. Make "info proc" command descriptions more
945 2018-09-18 John Baldwin <jhb@FreeBSD.org>
947 * NEWS: Mention 'info proc files' command.
949 2018-09-18 John Baldwin <jhb@FreeBSD.org>
951 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
952 descriptors for IP_FILES and IP_ALL.
954 2018-09-18 John Baldwin <jhb@FreeBSD.org>
956 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
957 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
958 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
959 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
960 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
961 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
962 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
963 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
964 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
965 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
966 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
967 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
968 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
969 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
970 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
971 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
972 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
973 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
974 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
975 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
976 (struct fbsd_sockaddr_un): New types.
977 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
978 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
979 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
980 (fbsd_core_info_proc_files): New functions.
981 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
983 * fbsd-tdep.h (fbsd_info_proc_files_header)
984 (fbsd_info_proc_files_entry): New.
986 2018-09-18 John Baldwin <jhb@FreeBSD.org>
988 * defs.h (enum info_proc_what) [IP_FILES]: New value.
989 * infcmd.c (info_proc_cmd_files): New function.
990 (_initialize_infcmd): Register 'info proc files' command.
992 2018-09-18 John Baldwin <jhb@FreeBSD.org>
994 * gnulib/aclocal-m4-deps.mk: Re-generate.
995 * gnulib/aclocal.m4: Re-generate.
996 * gnulib/config.in: Re-generate.
997 * gnulib/configure: Re-generate.
998 * gnulib/import/Makefile.am: Re-generate.
999 * gnulib/import/Makefile.in: Re-generate.
1000 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1001 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1002 * gnulib/import/arpa_inet.in.h: New file.
1003 * gnulib/import/inet_ntop.c: New file.
1004 * gnulib/import/m4/arpa_inet_h.m4: New file.
1005 * gnulib/import/m4/inet_ntop.m4: New file.
1006 * gnulib/import/m4/netinet_in_h.m4: New file.
1007 * gnulib/import/m4/socklen.m4: New file.
1008 * gnulib/import/m4/sockpfaf.m4: New file.
1009 * gnulib/import/m4/stdalign.m4: New file.
1010 * gnulib/import/m4/sys_uio_h.m4: New file.
1011 * gnulib/import/netinet_in.in.h: New file.
1012 * gnulib/import/stdalign.in.h: New file.
1013 * gnulib/import/sys_socket.c: New file.
1014 * gnulib/import/sys_socket.in.h: New file.
1015 * gnulib/import/sys_uio.in.h: New file.
1016 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
1019 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1021 * gnulib/aclocal-m4-deps.mk: New file.
1022 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
1025 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1027 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
1030 2018-09-18 Tom Tromey <tom@tromey.com>
1032 * compile/compile-object-load.c (struct
1033 link_hash_table_cleanup_data): Add constructor and destructor.
1034 Use DISABLE_COPY_AND_ASSIGN.
1035 (~link_hash_table_cleanup_data): Rename from
1036 link_hash_table_free. Now a destructor.
1037 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
1039 2018-09-18 Tom Tromey <tom@tromey.com>
1041 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1042 * compile/compile-object-load.c (struct munmap_list): Move to
1044 (munmap_list::add): Rename from munmap_list_add; rewrite.
1045 (munmap_list::~munmap_list): Rename from munmap_list_free.
1046 (munmap_listp_free_cleanup): Remove.
1047 (compile_object_load): Update.
1048 * compile/compile-object-load.h (struct munmap_list): Move from
1049 compile-object-load.c. Rewrite.
1051 2018-09-18 Alan Hayward <alan.hayward@arm.com>
1053 * aarch64-tdep.c (pass_in_v): Use register size.
1054 (aarch64_extract_return_value): Likewise.
1055 (aarch64_store_return_value): Likewise.
1057 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1059 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
1062 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1064 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
1065 Fix short help line.
1067 2018-09-17 Tom Tromey <tom@tromey.com>
1070 * configure: Rebuild.
1071 * configure.ac: Conditionally use -DNDEBUG for Python.
1073 2018-09-17 Tom Tromey <tom@tromey.com>
1075 * configure: Rebuild.
1076 * configure.ac: Use gmp as a library dependency when checking for
1079 2018-09-17 Pedro Alves <palves@redhat.com>
1081 * python/py-inferior.c (find_inferior_object): Delete.
1083 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
1085 * compile/compile-cplus-types.c
1086 (compile_cplus_instance::enter_scope): Don't use new_scope after
1089 2018-09-17 Tom Tromey <tom@tromey.com>
1091 * common/pathstuff.c (get_standard_cache_dir): Use
1092 ~/Library/Caches on macOS.
1093 * common/pathstuff.h (get_standard_cache_dir): Update comment.
1095 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
1098 * breakpoint.c (commands_cmd_element): New.
1099 (_initialize_breakpoint): Assign commands_cmd_element.
1100 * breakpoint.h (commands_cmd_element): New.
1101 * cli/cli-script.c (while_cmd_element, if_command,
1102 define_cmd_element): New.
1103 (command_name_equals): Remove.
1104 (process_next_line): Compare commands by pointer, not by name.
1105 (_initialize_cli_script): Assign the various cmd_list_element
1107 * compile/compile.c (compile_cmd_element): New.
1108 (_initialize_compile): Assign compile_cmd_element.
1109 * compile/compile.h (compile_cmd_element): New.
1110 * guile/guile.c (guile_cmd_element): New.
1111 (install_gdb_commands): Assign guile_cmd_element.
1112 * guile/guile.h (guile_cmd_element): New.
1113 * python/python.c (python_cmd_element): New.
1114 (_initialize_python): Assign python_cmd_element.
1115 * python/python.h (python_cmd_element): New.
1116 * tracepoint.c (while_stepping_cmd_element): New.
1117 (_initialize_tracepoint): Assign while_stepping_cmd_element.
1118 * tracepoint.h (while_stepping_cmd_element): New.
1120 2018-09-17 Tom Tromey <tom@tromey.com>
1122 * infrun.c (save_infcall_suspend_state): Return
1123 infcall_suspend_state_up.
1124 (save_infcall_control_state): Return infcall_control_state_up.
1125 * inferior.h (save_infcall_suspend_state)
1126 (save_infcall_control_state): Declare later. Return unique
1129 2018-09-17 Tom Tromey <tom@tromey.com>
1131 * infrun.c (struct stop_context): Declare constructor,
1132 destructor, "changed" method.
1133 (stop_context::stop_context): Rename from save_stop_context.
1134 (stop_context::~stop_context): Rename from
1135 release_stop_context_cleanup.
1136 (normal_stop): Update.
1137 (stop_context::changed): Rename from stop_context_changed. Return
1140 2018-09-17 Tom Tromey <tom@tromey.com>
1142 * inferior.h (struct infcall_suspend_state_deleter): New.
1143 (infcall_suspend_state_up): New typedef.
1144 (struct infcall_control_state_deleter): New.
1145 (infcall_control_state_up): New typedef.
1146 (make_cleanup_restore_infcall_suspend_state)
1147 (make_cleanup_restore_infcall_control_state): Don't declare.
1148 * infcall.c (call_function_by_hand_dummy): Update.
1149 * infrun.c (do_restore_infcall_suspend_state_cleanup)
1150 (make_cleanup_restore_infcall_suspend_state): Remove.
1151 (do_restore_infcall_control_state_cleanup)
1152 (make_cleanup_restore_infcall_control_state): Remove.
1154 2018-09-17 Tom Tromey <tom@tromey.com>
1156 * gdbthread.h (struct thread_control_state): Add initializer.
1157 (class thread_info) <control>: Remove initializer.
1158 * inferior.h (struct inferior_control_state): Add initializer.
1159 (class inferior) <control>: Remove initializer.
1160 (exit_inferior_1): Update.
1161 * infrun.c (struct infcall_control_state): Add constructors.
1162 (save_infcall_control_state): Use new.
1163 (restore_infcall_control_state, discard_infcall_control_state):
1166 2018-09-17 Tom Tromey <tom@tromey.com>
1168 * infrun.c (struct infcall_suspend_state) <registers>: Now a
1170 <siginfo_data>: Now a unique_xmalloc_ptr.
1171 (save_infcall_suspend_state, restore_infcall_suspend_state)
1172 (discard_infcall_suspend_state)
1173 (get_infcall_suspend_state_regcache): Update.
1175 2018-09-17 Tom Tromey <tom@tromey.com>
1177 * gdbthread.h (struct thread_suspend_state): Add initializers.
1178 (class thread_info) <suspend>: Remove initializer.
1179 * infrun.c (struct infcall_suspend_state): Add initializers.
1180 (save_infcall_suspend_state): Use new.
1181 (discard_infcall_suspend_state): Use delete.
1183 2018-09-16 Tom Tromey <tom@tromey.com>
1185 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1187 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
1188 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1189 (py_varobj_iter_new): Likewise.
1190 (py_varobj_get_iterator): Use gdbpy_ref.
1192 2018-09-16 Tom Tromey <tom@tromey.com>
1194 * python/py-threadevent.c (py_get_event_thread): Simplify.
1195 * python/py-inferior.c (infpy_thread_from_thread_handle):
1196 Return immediately after calling thread_to_thread_object. Use
1198 (thread_to_thread_object): Set the exception on a NULL return.
1200 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1202 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
1204 2018-09-16 Tom Tromey <tom@tromey.com>
1206 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1209 2018-09-16 Tom Tromey <tom@tromey.com>
1211 * python/python-internal.h (thread_to_thread_object): Change
1213 * python/py-inferior.c (thread_to_thread_object): Return a new
1215 (infpy_thread_from_thread_handle): Update.
1216 * python/py-infthread.c (gdbpy_selected_thread): Update.
1217 * python/py-stopevent.c (create_stop_event_object): Update.
1218 * python/py-threadevent.c (py_get_event_thread): Return a new
1220 (py_get_event_thread): Update.
1221 * python/py-event.h (py_get_event_thread): Change return type.
1222 * python/py-continueevent.c (create_continue_event_object):
1225 2018-09-16 Tom Tromey <tom@tromey.com>
1227 * python/py-progspace.c (pspy_get_objfiles): Update.
1228 * python/python-internal.h (objfile_to_objfile_object): Change
1230 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1232 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1234 * python/python.c (gdbpy_get_current_objfile): Update.
1235 (gdbpy_objfiles): Update.
1236 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
1238 (objfile_to_objfile_object): Return a new reference.
1239 * python/py-symtab.c (stpy_get_objfile): Update.
1240 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1243 2018-09-16 Tom Tromey <tom@tromey.com>
1245 * python/py-inferior.c (infpy_get_progspace): Update.
1246 * python/python-internal.h (pspace_to_pspace_object): Change
1248 * python/py-newobjfileevent.c
1249 (create_clear_objfiles_event_object): Update.
1250 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1252 * python/python.c (gdbpy_get_current_progspace): Update.
1253 (gdbpy_progspaces): Update.
1254 * python/py-progspace.c (pspace_to_pspace_object): Return a new
1256 * python/py-objfile.c (objfpy_get_progspace): Update.
1257 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
1260 2018-09-16 Tom Tromey <tom@tromey.com>
1262 * python/lib/gdb/__init__.py (current_progspace, objfiles)
1263 (solib_name, block_for_pc, find_pc_line): New functions.
1264 (execute_unwinders): Update.
1265 * python/py-block.c (gdbpy_block_for_pc): Remove.
1266 * python/py-inferior.c (infpy_get_progspace): New function.
1267 (inferior_object_getset) <progspace>: Add.
1268 * python/py-progspace.c (pspy_objfiles): Rewrite.
1269 (pspy_solib_name, pspy_block_for_pc)
1270 (pspy_find_pc_line, pspy_is_valid): New functions.
1271 (progspace_object_methods): Add entries for solib_name,
1272 block_for_pc, find_pc_line, is_valid.
1273 * python/python-internal.h (gdbpy_block_for_pc)
1274 (build_objfiles_list): Don't declare.
1275 * python/python.c: Don't include solib.h.
1276 (gdbpy_solib_name, gdbpy_find_pc_line)
1277 (gdbpy_get_current_progspace, build_objfiles_list)
1278 (gdbpy_objfiles): Remove.
1279 (GdbMethods) <current_progspace, objfiles, block_for_pc,
1280 solib_name, find_pc_line>: Remove entries.
1282 2018-09-16 Tom Tromey <tom@tromey.com>
1284 * top.c (new_ui_command): Use GNU style for metasyntactic
1286 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
1288 * maint.c (maintenance_translate_address): Remove "<>" around
1290 * interps.c (interpreter_exec_cmd): Use GNU style for
1291 metasyntactic variables.
1292 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
1293 metasyntactic variables.
1294 * tracepoint.c (tfind_range_command): Use GNU style for
1295 metasyntactic variables.
1296 (tfind_outside_command): Likewise.
1297 (_initialize_tracepoint): Likewise.
1298 * remote.c (extended_remote_target::create_inferior): Use GNU
1299 style for metasyntactic variables.
1300 * sparc64-tdep.c (adi_examine_command): Use GNU style for
1301 metasyntactic variables.
1302 (adi_assign_command): Likewise.
1304 2018-09-16 Tom Tromey <tom@tromey.com>
1306 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
1307 metasyntactic variables. Print message if no disassembler options
1310 2018-09-15 Tom Tromey <tom@tromey.com>
1312 * infcmd.c (get_inferior_args): Return const char *.
1313 * inferior.h (get_inferior_args): Return type now const.
1314 * linux-tdep.c (linux_fill_prpsinfo): Update.
1315 * procfs.c (procfs_target::make_corefile_notes): Update.
1317 2018-09-07 Tom Tromey <tom@tromey.com>
1319 * python/python.c (execute_gdb_command): Call bpstat_do_actions
1322 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
1324 * nios2-tdep.c (nios2_type_align): New.
1325 (nios2_gdb_arch_init): Install type_align hook.
1327 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1329 * eval.c (fake_method::fake_method): Call xzalloc directly for a
1330 type that is neither object file owned, nor gdbarch owned.
1331 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
1332 gdbarch is non-NULL.
1333 (alloc_type_instance): Allocate non-objfile owned types on the
1335 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
1336 using TYPE_ALLOC to ensure memory is allocated on the correct
1338 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
1339 obstack, or the gdbarch obstack.
1340 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
1342 2018-09-14 Tom Tromey <tom@tromey.com>
1344 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
1347 2018-09-14 Tom Tromey <tom@tromey.com>
1349 * nat/fork-inferior.c (get_startup_shell): Remove "static".
1351 2018-09-13 Tom Tromey <tom@tromey.com>
1353 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
1356 2018-09-13 Tom Tromey <tom@tromey.com>
1358 * exec.c (try_open_exec_file): Use std::string.
1360 2018-09-13 Tom Tromey <tom@tromey.com>
1362 * utils.h (gdb_bfd_errmsg): Return std::string.
1363 * exec.c (exec_file_attach): Update.
1364 * compile/compile-object-load.c (compile_object_load): Update.
1365 * utils.c (gdb_bfd_errmsg): Return std::string.
1367 2018-09-13 Tom Tromey <tom@tromey.com>
1369 * procfs.c (struct procinfo_deleter): New.
1370 (procinfo_up): New typedef.
1371 (do_destroy_procinfo_cleanup): Remove.
1372 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
1374 2018-09-13 Tom Tromey <tom@tromey.com>
1376 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
1378 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1379 2018-09-13 Tom Tromey <tom@tromey.com>
1381 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
1382 (pspy_get_objfiles): New function.
1383 (progspace_object_methods): New.
1384 (pspace_object_type): Add tp_methods callback.
1385 * python/python-internal.h (build_objfiles_list): New
1387 * python/python.c (build_objfiles_list): New function.
1388 (gdbpy_objfiles): Implement using build_objfiles_list.
1389 * NEWS: Mention the Progspace.objfiles method.
1391 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1393 * python/py-inferior.c (infpy_get_progspace): New function.
1394 (inferior_object_getset): Add progspace property.
1395 * NEWS: Mention the new property.
1397 2018-09-13 Tom Tromey <tom@tromey.com>
1400 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
1402 2018-09-13 Tom Tromey <tom@tromey.com>
1405 * rust-lang.c (rust_enum_variant): Now static.
1406 (rust_empty_enum_p): New function.
1407 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
1410 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1412 * python/py-inferior.c (infpy_repr): New.
1413 (inferior_object_type): Register infpy_repr.
1414 * python/py-objfile.c (objfpy_repr): New.
1415 (objfile_object_type): Register objfpy_repr.
1417 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1419 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
1421 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1423 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
1426 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1428 * common/common-utils.c: Don't include '<sys/stat.h>'.
1429 (is_regular_file): Move to...
1430 * common/filestuff.c (is_regular_file): ... here.
1431 * common/common-utils.h (is_regular_file): Move to...
1432 * common/filestuff.h (is_regular_file): ... here.
1434 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1436 * skip.c (debug_skip): New variable.
1437 (skiplist_entry::do_skip_file_p): Add debug output.
1438 (skiplist_entry::do_skip_gfile_p): Likewise.
1439 (skiplist_entry::skip_function_p): Likewise.
1440 (_initialize_step_skip): Create debug command.
1441 * NEWS: Mention set/show debug skip.
1443 2018-09-11 Xavier Roirand <roirand@adacore.com>
1445 * darwin-nat.c (should_disable_startup_with_shell):
1447 (darwin_nat_target::create_inferior): Add call.
1449 2018-09-11 Xavier Roirand <roirand@adacore.com>
1451 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1452 inf_port, msg_state>: Initialize.
1453 (struct darwin_thread_info) <signaled, single_step>: Change
1454 type and initialize.
1455 (struct darwin_thread_info) <event>: Initialize.
1457 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1461 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1464 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1467 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1471 * gnulib/aclocal.m4: Regenerate.
1472 * gnulib/config.in: Regenerate.
1473 * gnulib/configure: Regenerate.
1474 * gnulib/import/Makefile.am: Update.
1475 * gnulib/import/Makefile.in: Update.
1476 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1477 * gnulib/import/_Noreturn.h: ... this.
1478 * gnulib/import/alloca.in.h: Update.
1479 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1480 * gnulib/import/arg-nonnull.h: ... this.
1481 * gnulib/import/assure.h: Update.
1482 * gnulib/import/at-func.c: Update.
1483 * gnulib/import/basename-lgpl.c: Update.
1484 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1485 * gnulib/import/c++defs.h: ... this.
1486 * gnulib/import/canonicalize-lgpl.c: Update.
1487 * gnulib/import/cdefs.h: Update.
1488 * gnulib/import/chdir-long.c: Update.
1489 * gnulib/import/chdir-long.h: Update.
1490 * gnulib/import/cloexec.c: Update.
1491 * gnulib/import/cloexec.h: Update.
1492 * gnulib/import/close.c: Update.
1493 * gnulib/import/closedir.c: Update.
1494 * gnulib/import/config.charset: Update.
1495 * gnulib/import/dirent-private.h: Update.
1496 * gnulib/import/dirent.in.h: Update.
1497 * gnulib/import/dirfd.c: Update.
1498 * gnulib/import/dirname-lgpl.c: Update.
1499 * gnulib/import/dirname.h: Update.
1500 * gnulib/import/dosname.h: Update.
1501 * gnulib/import/dup-safer-flag.c: Update.
1502 * gnulib/import/dup-safer.c: Update.
1503 * gnulib/import/dup.c: Update.
1504 * gnulib/import/dup2.c: Update.
1505 * gnulib/import/errno.in.h: Update.
1506 * gnulib/import/error.c: Update.
1507 * gnulib/import/error.h: Update.
1508 * gnulib/import/exitfail.c: Update.
1509 * gnulib/import/exitfail.h: Update.
1510 * gnulib/import/extra/update-copyright: Update.
1511 * gnulib/import/fchdir.c: Update.
1512 * gnulib/import/fcntl.c: Update.
1513 * gnulib/import/fcntl.in.h: Update.
1514 * gnulib/import/fd-hook.c: Update.
1515 * gnulib/import/fd-hook.h: Update.
1516 * gnulib/import/fd-safer-flag.c: Update.
1517 * gnulib/import/fd-safer.c: Update.
1518 * gnulib/import/fdopendir.c: Update.
1519 * gnulib/import/filename.h: Update.
1520 * gnulib/import/filenamecat-lgpl.c: Update.
1521 * gnulib/import/filenamecat.h: Update.
1522 * gnulib/import/flexmember.h: Update.
1523 * gnulib/import/float+.h: Update.
1524 * gnulib/import/float.c: Update.
1525 * gnulib/import/float.in.h: Update.
1526 * gnulib/import/fnmatch.c: Update.
1527 * gnulib/import/fnmatch.in.h: Update.
1528 * gnulib/import/fnmatch_loop.c: Update.
1529 * gnulib/import/fpucw.h: Update.
1530 * gnulib/import/frexp.c: Update.
1531 * gnulib/import/frexpl.c: Update.
1532 * gnulib/import/fstat.c: Update.
1533 * gnulib/import/fstatat.c: Update.
1534 * gnulib/import/getcwd-lgpl.c: Update.
1535 * gnulib/import/getcwd.c: Update.
1536 * gnulib/import/getdtablesize.c: Update.
1537 * gnulib/import/getlogin_r.c: Update.
1538 * gnulib/import/getprogname.c: Update.
1539 * gnulib/import/getprogname.h: Update.
1540 * gnulib/import/gettext.h: Update.
1541 * gnulib/import/gettimeofday.c: Update.
1542 * gnulib/import/glob-libc.h: Update.
1543 * gnulib/import/glob.c: Update.
1544 * gnulib/import/glob.in.h: Update.
1545 * gnulib/import/glob_internal.h: Update.
1546 * gnulib/import/glob_pattern_p.c: Update.
1547 * gnulib/import/globfree.c: Update.
1548 * gnulib/import/hard-locale.c: Update.
1549 * gnulib/import/hard-locale.h: Update.
1550 * gnulib/import/intprops.h: Update.
1551 * gnulib/import/inttypes.in.h: Update.
1552 * gnulib/import/isnan.c: Update.
1553 * gnulib/import/isnand-nolibm.h: Update.
1554 * gnulib/import/isnand.c: Update.
1555 * gnulib/import/isnanl-nolibm.h: Update.
1556 * gnulib/import/isnanl.c: Update.
1557 * gnulib/import/itold.c: Update.
1558 * gnulib/import/libc-config.h: Update.
1559 * gnulib/import/limits.in.h: Update.
1560 * gnulib/import/localcharset.c: Update.
1561 * gnulib/import/localcharset.h: Update.
1562 * gnulib/import/localtime-buffer.c: Update.
1563 * gnulib/import/localtime-buffer.h: Update.
1564 * gnulib/import/lstat.c: Update.
1565 * gnulib/import/m4/00gnulib.m4: Update.
1566 * gnulib/import/m4/__inline.m4: Update.
1567 * gnulib/import/m4/absolute-header.m4: Update.
1568 * gnulib/import/m4/alloca.m4: Update.
1569 * gnulib/import/m4/builtin-expect.m4: Update.
1570 * gnulib/import/m4/canonicalize.m4: Update.
1571 * gnulib/import/m4/chdir-long.m4: Update.
1572 * gnulib/import/m4/close.m4: Update.
1573 * gnulib/import/m4/closedir.m4: Update.
1574 * gnulib/import/m4/configmake.m4: Update.
1575 * gnulib/import/m4/d-ino.m4: Update.
1576 * gnulib/import/m4/d-type.m4: Update.
1577 * gnulib/import/m4/dirent_h.m4: Update.
1578 * gnulib/import/m4/dirfd.m4: Update.
1579 * gnulib/import/m4/dirname.m4: Update.
1580 * gnulib/import/m4/double-slash-root.m4: Update.
1581 * gnulib/import/m4/dup.m4: Update.
1582 * gnulib/import/m4/dup2.m4: Update.
1583 * gnulib/import/m4/eealloc.m4: Update.
1584 * gnulib/import/m4/environ.m4: Update.
1585 * gnulib/import/m4/errno_h.m4: Update.
1586 * gnulib/import/m4/error.m4: Update.
1587 * gnulib/import/m4/exponentd.m4: Update.
1588 * gnulib/import/m4/exponentl.m4: Update.
1589 * gnulib/import/m4/extensions.m4: Update.
1590 * gnulib/import/m4/extern-inline.m4: Update.
1591 * gnulib/import/m4/fchdir.m4: Update.
1592 * gnulib/import/m4/fcntl-o.m4: Update.
1593 * gnulib/import/m4/fcntl.m4: Update.
1594 * gnulib/import/m4/fcntl_h.m4: Update.
1595 * gnulib/import/m4/fdopendir.m4: Update.
1596 * gnulib/import/m4/filenamecat.m4: Update.
1597 * gnulib/import/m4/flexmember.m4: Update.
1598 * gnulib/import/m4/float_h.m4: Update.
1599 * gnulib/import/m4/fnmatch.m4: Update.
1600 * gnulib/import/m4/fnmatch_h.m4: Update.
1601 * gnulib/import/m4/fpieee.m4: Update.
1602 * gnulib/import/m4/frexp.m4: Update.
1603 * gnulib/import/m4/frexpl.m4: Update.
1604 * gnulib/import/m4/fstat.m4: Update.
1605 * gnulib/import/m4/fstatat.m4: Update.
1606 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1607 * gnulib/import/m4/getcwd-path-max.m4: Update.
1608 * gnulib/import/m4/getcwd.m4: Update.
1609 * gnulib/import/m4/getdtablesize.m4: Update.
1610 * gnulib/import/m4/getlogin.m4: Update.
1611 * gnulib/import/m4/getlogin_r.m4: Update.
1612 * gnulib/import/m4/getpagesize.m4: Update.
1613 * gnulib/import/m4/getprogname.m4: Update.
1614 * gnulib/import/m4/gettimeofday.m4: Update.
1615 * gnulib/import/m4/glibc21.m4: Update.
1616 * gnulib/import/m4/glob.m4: Update.
1617 * gnulib/import/m4/glob_h.m4: Update.
1618 * gnulib/import/m4/gnulib-cache.m4: Update.
1619 * gnulib/import/m4/gnulib-common.m4: Update.
1620 * gnulib/import/m4/gnulib-comp.m4: Update.
1621 * gnulib/import/m4/gnulib-tool.m4: Update.
1622 * gnulib/import/m4/hard-locale.m4: Update.
1623 * gnulib/import/m4/include_next.m4: Update.
1624 * gnulib/import/m4/inttypes-pri.m4: Update.
1625 * gnulib/import/m4/inttypes.m4: Update.
1626 * gnulib/import/m4/isnand.m4: Update.
1627 * gnulib/import/m4/isnanl.m4: Update.
1628 * gnulib/import/m4/largefile.m4: Update.
1629 * gnulib/import/m4/limits-h.m4: Update.
1630 * gnulib/import/m4/localcharset.m4: Update.
1631 * gnulib/import/m4/locale-fr.m4: Update.
1632 * gnulib/import/m4/locale-ja.m4: Update.
1633 * gnulib/import/m4/locale-zh.m4: Update.
1634 * gnulib/import/m4/localtime-buffer.m4: Update.
1635 * gnulib/import/m4/longlong.m4: Update.
1636 * gnulib/import/m4/lstat.m4: Update.
1637 * gnulib/import/m4/malloc.m4: Update.
1638 * gnulib/import/m4/malloca.m4: Update.
1639 * gnulib/import/m4/math_h.m4: Update.
1640 * gnulib/import/m4/mbrtowc.m4: Update.
1641 * gnulib/import/m4/mbsinit.m4: Update.
1642 * gnulib/import/m4/mbsrtowcs.m4: Update.
1643 * gnulib/import/m4/mbstate_t.m4: Update.
1644 * gnulib/import/m4/memchr.m4: Update.
1645 * gnulib/import/m4/memmem.m4: Update.
1646 * gnulib/import/m4/mempcpy.m4: Update.
1647 * gnulib/import/m4/memrchr.m4: Update.
1648 * gnulib/import/m4/mkdir.m4: Update.
1649 * gnulib/import/m4/mkstemp.m4: Update.
1650 * gnulib/import/m4/mmap-anon.m4: Update.
1651 * gnulib/import/m4/mode_t.m4: Update.
1652 * gnulib/import/m4/msvc-inval.m4: Update.
1653 * gnulib/import/m4/msvc-nothrow.m4: Update.
1654 * gnulib/import/m4/multiarch.m4: Update.
1655 * gnulib/import/m4/nocrash.m4: Update.
1656 * gnulib/import/m4/off_t.m4: Update.
1657 * gnulib/import/m4/onceonly.m4: Update.
1658 * gnulib/import/m4/open-cloexec.m4: Update.
1659 * gnulib/import/m4/open.m4: Update.
1660 * gnulib/import/m4/openat.m4: Update.
1661 * gnulib/import/m4/opendir.m4: Update.
1662 * gnulib/import/m4/pathmax.m4: Update.
1663 * gnulib/import/m4/rawmemchr.m4: Update.
1664 * gnulib/import/m4/readdir.m4: Update.
1665 * gnulib/import/m4/readlink.m4: Update.
1666 * gnulib/import/m4/realloc.m4: Update.
1667 * gnulib/import/m4/rename.m4: Update.
1668 * gnulib/import/m4/rewinddir.m4: Update.
1669 * gnulib/import/m4/rmdir.m4: Update.
1670 * gnulib/import/m4/save-cwd.m4: Update.
1671 * gnulib/import/m4/secure_getenv.m4: Update.
1672 * gnulib/import/m4/setenv.m4: Update.
1673 * gnulib/import/m4/signal_h.m4: Update.
1674 * gnulib/import/m4/ssize_t.m4: Update.
1675 * gnulib/import/m4/stat-time.m4: Update.
1676 * gnulib/import/m4/stat.m4: Update.
1677 * gnulib/import/m4/std-gnu11.m4: Update.
1678 * gnulib/import/m4/stdbool.m4: Update.
1679 * gnulib/import/m4/stddef_h.m4: Update.
1680 * gnulib/import/m4/stdint.m4: Update.
1681 * gnulib/import/m4/stdio_h.m4: Update.
1682 * gnulib/import/m4/stdlib_h.m4: Update.
1683 * gnulib/import/m4/strchrnul.m4: Update.
1684 * gnulib/import/m4/strdup.m4: Update.
1685 * gnulib/import/m4/strerror.m4: Update.
1686 * gnulib/import/m4/string_h.m4: Update.
1687 * gnulib/import/m4/strstr.m4: Update.
1688 * gnulib/import/m4/strtok_r.m4: Update.
1689 * gnulib/import/m4/sys_socket_h.m4: Update.
1690 * gnulib/import/m4/sys_stat_h.m4: Update.
1691 * gnulib/import/m4/sys_time_h.m4: Update.
1692 * gnulib/import/m4/sys_types_h.m4: Update.
1693 * gnulib/import/m4/tempname.m4: Update.
1694 * gnulib/import/m4/time_h.m4: Update.
1695 * gnulib/import/m4/unistd-safer.m4: Update.
1696 * gnulib/import/m4/unistd_h.m4: Update.
1697 * gnulib/import/m4/warn-on-use.m4: Update.
1698 * gnulib/import/m4/wchar_h.m4: Update.
1699 * gnulib/import/m4/wchar_t.m4: Update.
1700 * gnulib/import/m4/wctype_h.m4: Update.
1701 * gnulib/import/m4/wint_t.m4: Update.
1702 * gnulib/import/malloc.c: Update.
1703 * gnulib/import/malloc/scratch_buffer.h: Update.
1704 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1705 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1706 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1707 * gnulib/import/malloca.c: Update.
1708 * gnulib/import/malloca.h: Update.
1709 * gnulib/import/malloca.valgrind: Update.
1710 * gnulib/import/math.in.h: Update.
1711 * gnulib/import/mbrtowc.c: Update.
1712 * gnulib/import/mbsinit.c: Update.
1713 * gnulib/import/mbsrtowcs-impl.h: Update.
1714 * gnulib/import/mbsrtowcs-state.c: Update.
1715 * gnulib/import/mbsrtowcs.c: Update.
1716 * gnulib/import/memchr.c: Update.
1717 * gnulib/import/memmem.c: Update.
1718 * gnulib/import/mempcpy.c: Update.
1719 * gnulib/import/memrchr.c: Update.
1720 * gnulib/import/mkdir.c: Update.
1721 * gnulib/import/mkstemp.c: Update.
1722 * gnulib/import/msvc-inval.c: Update.
1723 * gnulib/import/msvc-inval.h: Update.
1724 * gnulib/import/msvc-nothrow.c: Update.
1725 * gnulib/import/msvc-nothrow.h: Update.
1726 * gnulib/import/open.c: Update.
1727 * gnulib/import/openat-die.c: Update.
1728 * gnulib/import/openat-priv.h: Update.
1729 * gnulib/import/openat-proc.c: Update.
1730 * gnulib/import/openat.c: Update.
1731 * gnulib/import/openat.h: Update.
1732 * gnulib/import/opendir.c: Update.
1733 * gnulib/import/pathmax.h: Update.
1734 * gnulib/import/pipe-safer.c: Update.
1735 * gnulib/import/rawmemchr.c: Update.
1736 * gnulib/import/readdir.c: Update.
1737 * gnulib/import/readlink.c: Update.
1738 * gnulib/import/realloc.c: Update.
1739 * gnulib/import/ref-add.sin: Update.
1740 * gnulib/import/ref-del.sin: Update.
1741 * gnulib/import/rename.c: Update.
1742 * gnulib/import/rewinddir.c: Update.
1743 * gnulib/import/rmdir.c: Update.
1744 * gnulib/import/same-inode.h: Update.
1745 * gnulib/import/save-cwd.c: Update.
1746 * gnulib/import/save-cwd.h: Update.
1747 * gnulib/import/scratch_buffer.h: Update.
1748 * gnulib/import/secure_getenv.c: Update.
1749 * gnulib/import/setenv.c: Update.
1750 * gnulib/import/signal.in.h: Update.
1751 * gnulib/import/stat-time.c: Update.
1752 * gnulib/import/stat-time.h: Update.
1753 * gnulib/import/stat-w32.c: Update.
1754 * gnulib/import/stat-w32.h: Update.
1755 * gnulib/import/stat.c: Update.
1756 * gnulib/import/stdbool.in.h: Update.
1757 * gnulib/import/stddef.in.h: Update.
1758 * gnulib/import/stdint.in.h: Update.
1759 * gnulib/import/stdio.in.h: Update.
1760 * gnulib/import/stdlib.in.h: Update.
1761 * gnulib/import/str-two-way.h: Update.
1762 * gnulib/import/strchrnul.c: Update.
1763 * gnulib/import/strdup.c: Update.
1764 * gnulib/import/streq.h: Update.
1765 * gnulib/import/strerror-override.c: Update.
1766 * gnulib/import/strerror-override.h: Update.
1767 * gnulib/import/strerror.c: Update.
1768 * gnulib/import/string.in.h: Update.
1769 * gnulib/import/stripslash.c: Update.
1770 * gnulib/import/strnlen1.c: Update.
1771 * gnulib/import/strnlen1.h: Update.
1772 * gnulib/import/strstr.c: Update.
1773 * gnulib/import/strtok_r.c: Update.
1774 * gnulib/import/sys_stat.in.h: Update.
1775 * gnulib/import/sys_time.in.h: Update.
1776 * gnulib/import/sys_types.in.h: Update.
1777 * gnulib/import/tempname.c: Update.
1778 * gnulib/import/tempname.h: Update.
1779 * gnulib/import/time.in.h: Update.
1780 * gnulib/import/unistd--.h: Update.
1781 * gnulib/import/unistd-safer.h: Update.
1782 * gnulib/import/unistd.in.h: Update.
1783 * gnulib/import/unsetenv.c: Update.
1784 * gnulib/import/verify.h: Update.
1785 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1786 * gnulib/import/wchar.in.h: Update.
1787 * gnulib/import/wctype.in.h: Update.
1788 * gnulib/import/xalloc-oversized.h: Update.
1789 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1790 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1792 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1794 * record-btrace.c (get_thread_current_frame): Remove
1797 2018-09-10 Jerome Guitton <guitton@adacore.com>
1799 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1800 with check_tag to 1 if and only if the type is tagged and the
1801 component being searched cannot been found in the current
1802 view. Otherwise, always call ada_to_fixed_type with
1805 2018-09-10 Xavier Roirand <roirand@adacore.com>
1807 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1809 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1810 * ada-varobj.c (ada_varobj_get_number_of_children,
1811 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1813 2018-09-10 Xavier Roirand <roirand@adacore.com>
1815 * ada-valprint.c (ada_value_print): Use type instead of
1818 2018-09-10 Xavier Roirand <roirand@adacore.com>
1820 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1821 an array of access to unconstrained array.
1823 2018-09-10 Xavier Roirand <roirand@adacore.com>
1825 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1826 (ada_check_typedef): Use it.
1828 2018-09-10 Xavier Roirand <roirand@adacore.com>
1830 * ada-varobj.c (ada_varobj_describe_struct_child)
1831 (ada_varobj_describe_child): Handle union case like struct one.
1833 2018-09-10 Tom Tromey <tom@tromey.com>
1836 * python/python.c (_initialize_python): Make example in "python"
1837 help work in Python 3.
1839 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1841 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1842 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1843 $(EXEEXT) to the script, as it is not a program.
1845 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1847 * python/py-prettyprint.c (pretty_print_one_value): Return
1849 (print_string_repr): Adjust.
1850 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1851 * python/python-internal.h (apply_varobj_pretty_printer): Return
1853 * varobj.c (varobj_value_get_print_value): Adjust.
1855 2018-09-08 Tom Tromey <tom@tromey.com>
1858 * python/py-prettyprint.c (pretty_print_one_value): Check for
1861 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1863 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1864 replace_operator_with_call.
1866 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1868 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1870 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1872 * ada-typeprint.c (print_range): Print the bounds using TYPE
1873 rather than its TYPE_TARGET_TYPE.
1875 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1877 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1878 call to ada_to_fixed_value_create.
1880 2018-09-08 Jerome Guitton <guitton@adacore.com>
1882 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1884 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1886 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1889 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1891 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1892 Move update of loop variable "fi".
1894 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1896 * ada-lang.c (value_assign_to_component): In the case of
1897 big-endian targets, extract the bits of the given VAL
1898 using an src_offset of zero if container is not a scalar.
1900 2018-09-06 Simon Ser <contact@emersion.fr>
1903 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1904 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1905 * fbsd-tdep.c (fbsd_make_note_desc): New.
1906 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1907 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1908 * target.h (enum target_object) Add FreeBSD-specific
1909 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1911 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1913 * compile/compile-c.h (generate_c_for_variable_locations):
1914 Change reference to pointer.
1915 * compile/compile-c-support.c (compile_program) <compute>:
1917 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1918 (generate_c_for_for_one_variable): Likewise
1919 (generate_c_for_variable_locations): Likewise
1920 * compile/compile-c-types.c (compile_c_instance::convert_type):
1922 * compile/compile-cplus-symbols.c (convert_one_symbol):
1923 std::move the scope passed to enter_scope.
1924 * compile/compile-cplus-types.c
1925 (compile_cplus_instance::enter_scope): Make parameter
1927 (compile_cplus_instance::new_scope): Change reference to
1929 (compile_cplus_instance::convert_type): Likewise
1930 (compile_cplus_convert_typedef): std::move the scope passed to
1932 (compile_cplus_convert_struct_or_union): Likewise.
1933 (compile_cplus_convert_enum): Likewise.
1934 (compile_cplus_convert_namespace): Likewise.
1935 * compile/compile-cplus.h (compile_cplus_instance)
1936 <enter_scope>: Make parameter rvalue-reference.
1937 * compile/compile-internal.h (compile_instance)
1938 <get_cached_type>: Likewise
1939 * compile/compile-loc2c.c (push): Likewise
1943 (print_label): Likewise
1944 (pushf_register_address): Likewise
1945 (pushf_register): Likewise
1946 (do_compile_dwarf_expr_to_c): Likewise
1947 (compile_dwarf_expr_to_c): Likewise
1948 (compile_dwarf_bounds_to_c): Likewise
1949 * compile/compile.c (compile_instance::get_cached_type):
1951 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1952 (compile_dwarf_bounds_to_c): Likewise
1953 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1954 (dwarf2_compile_property_to_c): Likewise
1955 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1956 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1959 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1961 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1962 * tui/tui-data.c (init_content_element): Don't initialize it.
1964 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1966 * tui/tui-data.h (struct tui_win_info)
1967 <detail::opaque>: Remove.
1968 * tui/tui-data.c (init_win_info): Remove assignment.
1970 2018-09-05 Tom Tromey <tom@tromey.com>
1972 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1973 -Wformat-nonliteral.
1974 * target-float.c (host_float_ops<T>::to_string)
1975 (host_float_ops<T>::from_string): Use
1976 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1977 * configure: Rebuild.
1979 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
1981 * printcmd.c (printf_c_string): Use
1982 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
1983 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
1985 2018-09-05 Tom Tromey <tom@tromey.com>
1987 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
1989 2018-09-05 Tom de Vries <tdevries@suse.de>
1991 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
1992 with resolve_abstract_p == true.
1993 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
1994 defaulting to false. Propagate resolve_abstract_p to
1995 dwarf2_fetch_die_loc_sect_off.
1996 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
1997 parameter, defaulting to false.
1998 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
1999 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
2001 * dwarf2read.h (struct die_info): Forward-declare.
2002 (die_info_ptr): New typedef.
2003 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
2005 2018-09-05 Joel Brobecker <brobecker@adacore.com>
2009 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2010 Pedro Alves <palves@redhat.com>
2012 * gnulib/Makefile.in (aclocal_m4_deps): Move to
2013 "aclocal-m4-deps.mk". Include file here.
2014 $(srcdir)/aclocal.m4: Add "configure.ac".
2015 * gnulib/aclocal-m4-deps.mk: New file.
2016 * gnulib/update-gnulib.sh: Automatically update
2017 "aclocal-m4-deps.mk".
2019 2018-09-04 Tom Tromey <tom@tromey.com>
2021 * configure: Rebuild.
2022 * configure.ac: Remove multi-ice code.
2024 2018-09-04 Tom Tromey <tom@tromey.com>
2026 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
2027 (ada-exp.o): Update.
2029 2018-09-04 Tom Tromey <tom@tromey.com>
2031 * Makefile.in (printcmd.o, target-float.o): Remove.
2032 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
2034 2018-09-04 Tom Tromey <tom@tromey.com>
2036 * gnulib/Makefile.in: Remove obsolete comment.
2037 * Makefile.in: Remove obsolete comment.
2039 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2041 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
2044 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2046 * riscv-tdep.c: Add 'prologue-value.h' include.
2047 (struct riscv_unwind_cache): New struct.
2048 (riscv_debug_unwinder): New global.
2049 (riscv_scan_prologue): Update arguments, capture register details
2051 (riscv_skip_prologue): Reformat arguments line, move end of
2052 prologue calculation into riscv_scan_prologue.
2053 (riscv_frame_cache): Update return type, create
2054 riscv_unwind_cache, scan the prologue, and fill in remaining cache
2056 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
2057 (riscv_frame_prev_register): Use the trad_frame within the
2059 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
2062 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2064 * trad-frame.h (trad_frame_set_realreg): Declare.
2065 (trad_frame_set_addr): Declare.
2066 * trad-frame.c (trad_frame_set_realreg): Define new function.
2067 (trad_frame_set_addr): Define new function.
2068 (trad_frame_set_reg_realreg): Use new function.
2069 (trad_frame_set_reg_addr): Use new function.
2071 2018-09-01 Keith Seitz <keiths@redhat.com>
2073 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
2074 pulongest instead of "%lld".
2075 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
2078 2018-08-31 Tom Tromey <tom@tromey.com>
2080 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
2083 2018-08-31 Pedro Alves <palves@redhat.com>
2085 * gdbarch.h: Regenerate.
2087 2018-08-31 Pedro Alves <palves@redhat.com>
2089 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
2090 * target.h (Hardware watchpoint interfaces): Describe
2091 continuable/steppable/non-steppable watchpoints.
2092 * gdbarch.h, gdbarch.c: Regenerate.
2094 2018-08-31 Pedro Alves <palves@redhat.com>
2096 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
2099 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
2100 * target.h (target_ops::have_continuable_watchpoint): Delete.
2101 (target_have_continuable_watchpoint): Delete.
2102 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
2103 * target-delegates.c: Regenerate.
2105 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2107 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
2108 the files present in "gnulib/import/m4/".
2110 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2112 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
2113 c.sw, c.swsp, and c.sdsp.
2115 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2117 * riscv-tdep.c (struct riscv_inferior_data): Delete.
2118 (riscv_read_misa_reg): Don't cache value read into inferior data.
2119 (riscv_new_inferior_data): Delete.
2120 (riscv_inferior_data_cleanup): Delete.
2121 (riscv_inferior_data): Delete.
2122 (riscv_invalidate_inferior_data): Delete.
2123 (_initialize_riscv_tdep): Remove initialisation of inferior data.
2125 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
2127 * compile/compile-cplus-types.c
2128 (compile_cplus_instance::leave_scope): Take the address of scope
2130 (compile_cplus_instance::convert_qualified_base): Compare quals
2133 2018-08-30 Keith Seitz <keiths@redhat.com>
2135 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
2136 Use "%s" and host_address_to_string instead of "%p" in printf.
2138 2018-08-29 Keith Seitz <keiths@redhat.com>
2140 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
2141 and compile-cplus-types.c.
2142 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
2143 * c-lang.c (cplus_language_defn): Set C++ compile functions.
2144 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
2146 * compile/compile-c-support.c: Include compile-cplus.h.
2147 (load_libcompile): Templatize.
2148 (get_compile_context): "New" function.
2149 (c_get_compile_context): Use get_compile_context.
2150 (cplus_get_compile_context): New function.
2151 (cplus_push_user_expression, cplus_pop_user_expression)
2152 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
2153 (cplus_compute_program): Define new structs/functions.
2154 * compile/compile-cplus-symmbols.c: New file.
2155 * compile/compile-cplus-types.c: New file.
2156 * compile/compile-cplus.h: New file.
2157 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
2159 * compile/compile-object-load.c (get_out_value_type): Use
2160 strncmp_iw when comparing symbol names.
2161 (compile_object_load): Add mst_bss and mst_data.
2162 * compile/compile.c (_initialize_compile): Remove
2163 -Wno-implicit-function-declaration from `compile_args'.
2164 * compile/gcc-cp-plugin.h: New file.
2165 * NEWS: Mention C++ compile support and new debug options.
2167 2018-08-29 Keith Seitz <keiths@redhat.com>
2169 * linespec.c (collect_info::add_symbol): Make virtual.
2170 (struct symbol_searcher_collect_info): New struct.
2171 (symbol_searcher::find_all_symbols): New method.
2172 * symtab.h (class symbol_searcher): New class.
2174 2018-08-29 Keith Seitz <keiths@redhat.com>
2176 * linespec.c (struct linespec) <function_symbols, label_symbols>:
2177 Change to vector of block_symbol. Update all users.
2178 (struct collect_info) <symbols>: Likewise.
2179 (collect_info::add_symbol): Take block_symbol as argument.
2181 (decode_compound_collector) <m_symbols>: Change type to vector
2182 of block_symbol. Update all users.
2183 (decode_compound_collector::operator ()): Change parameter type
2185 (find_method, find_function_symbols, find_linespec_symbols)
2186 (find_label_symbols_in_block, find_label_symbols): Change symbol
2187 vectors to block_symbol vectors.
2188 * symtab.h (symbol_found_callback_ftype): Change parameter type to
2191 2018-08-29 Keith Seitz <keiths@redhat.com>
2193 * linespec.c (symbolp): Remove typedef and VEC definitions.
2194 (bound_minimal_symbol_d): Likewise.
2196 2018-08-29 Keith Seitz <keiths@redhat.com>
2198 * linespec.c (decode_compound_collector::decode_compound_collector):
2199 Remove initialization for `m_symtabs'.
2200 (decode_compound_collector::release_symbols): Change return type
2201 to std::vector. Update all callers.
2202 (class decode_compound_collector) <m_symbols>: Change type to
2204 (lookup_prefix_sym): Change return type to std::vector. Update all
2206 (compare_symbols): Remove.
2207 (std_compare_symbols): Rename to `compare_symbols'.
2208 (find_method): Change `sym_classes' parameter to std::vector.
2209 Update all callers. Use std::sort to sort sym_classes.
2210 (find_linespec_symbols): Remove cleanup.
2212 2018-08-29 Keith Seitz <keiths@redhat.com>
2214 * linespec.c (struct linespec) <minimal_symbols>: Change type to
2215 std::vector. Update all users.
2216 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
2217 (struct collect_info) <minimal_symbols>: Likewise.
2218 (compare_msymbols): Return bool. Change parameters to const
2219 bound_minimal_symbol references.
2220 (find_method, find_function_symbols, find_linespec_symbols): Change
2221 `minsyms' parameter to std::vector. Update all callers.
2223 2018-08-29 Keith Seitz <keiths@redhat.com>
2225 * linespec.c (struct linespec) <label_symbols>: Change type to
2226 std::vector. Update all users.
2227 (find_label_symbols_in_block): Change `result' parameter to
2228 std::vector. Update all callers.
2229 (find_label_symbols): Return std::vector. Update all callers.
2231 2018-08-29 Keith Seitz <keiths@redhat.com>
2233 * linespec.c (struct linespec) <function_symbols>: Change type to
2234 std::vector. Update all users.
2235 (struct collect_info) <function_symbols>: Likewise.
2236 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
2237 (std_compare_symbols): New function.
2238 (find_method, find_function_symbols, find_linespec_symbols)
2239 (find_label_symbols_in_block): Change `symbols' parameter to
2240 std::vector. Update all callers.
2241 (find_label_symbols): Likewise for `function_symbols' and
2244 2018-08-29 Keith Seitz <keiths@redhat.com>
2246 * linespec.c (symtab_vector_up): Define.
2247 (struct linespec) <file_symtabs>: Change type to std::vector *.
2249 (struct collect_info) <file_symtabs>: Likewise.
2250 (collect_symtabs_from_filename): Return symtab_vector_up.
2252 (decode_objc): Remove cleanup.
2253 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
2254 (symtab_collector::release_symtabs): Return symtab_vector_up.
2256 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
2258 (collect_symtabs_from_filename, symtabs_from_filename): Return
2259 symtab_vector_up. Update all callers.
2261 2018-08-29 Tom Tromey <tom@tromey.com>
2263 * csky-tdep.c (csky_analyze_prologue): Use
2264 core_addr_to_string_nz.
2266 2018-08-29 Tom Tromey <tom@tromey.com>
2268 * windows-nat.c (struct xlate_exception) <them>: Change type to
2270 (xlate): Fix formatting. Remove last entry.
2271 (struct xlate_exception, xlate): Comment out.
2272 (windows_nat_target::resume): Use ranged for.
2274 2018-08-29 Jim Wilson <jimw@sifive.com>
2276 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
2277 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
2279 (riscv_linux_nat_target::store_registers): Likewise.
2281 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2285 * gnulib/aclocal.m4: Regenerate.
2286 * gnulib/config.in: Regenerate.
2287 * gnulib/configure: Regenerate.
2288 * gnulib/import/Makefile.am: Update.
2289 * gnulib/import/Makefile.in: Update.
2290 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2291 * gnulib/import/_Noreturn.h: ... this.
2292 * gnulib/import/alloca.in.h: Update.
2293 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2294 * gnulib/import/arg-nonnull.h: ... this.
2295 * gnulib/import/assure.h: Update.
2296 * gnulib/import/at-func.c: Update.
2297 * gnulib/import/basename-lgpl.c: Update.
2298 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2299 * gnulib/import/c++defs.h: ... this.
2300 * gnulib/import/canonicalize-lgpl.c: Update.
2301 * gnulib/import/cdefs.h: Update.
2302 * gnulib/import/chdir-long.c: Update.
2303 * gnulib/import/chdir-long.h: Update.
2304 * gnulib/import/cloexec.c: Update.
2305 * gnulib/import/cloexec.h: Update.
2306 * gnulib/import/close.c: Update.
2307 * gnulib/import/closedir.c: Update.
2308 * gnulib/import/config.charset: Update.
2309 * gnulib/import/dirent-private.h: Update.
2310 * gnulib/import/dirent.in.h: Update.
2311 * gnulib/import/dirfd.c: Update.
2312 * gnulib/import/dirname-lgpl.c: Update.
2313 * gnulib/import/dirname.h: Update.
2314 * gnulib/import/dosname.h: Update.
2315 * gnulib/import/dup-safer-flag.c: Update.
2316 * gnulib/import/dup-safer.c: Update.
2317 * gnulib/import/dup.c: Update.
2318 * gnulib/import/dup2.c: Update.
2319 * gnulib/import/errno.in.h: Update.
2320 * gnulib/import/error.c: Update.
2321 * gnulib/import/error.h: Update.
2322 * gnulib/import/exitfail.c: Update.
2323 * gnulib/import/exitfail.h: Update.
2324 * gnulib/import/extra/update-copyright: Update.
2325 * gnulib/import/fchdir.c: Update.
2326 * gnulib/import/fcntl.c: Update.
2327 * gnulib/import/fcntl.in.h: Update.
2328 * gnulib/import/fd-hook.c: Update.
2329 * gnulib/import/fd-hook.h: Update.
2330 * gnulib/import/fd-safer-flag.c: Update.
2331 * gnulib/import/fd-safer.c: Update.
2332 * gnulib/import/fdopendir.c: Update.
2333 * gnulib/import/filename.h: Update.
2334 * gnulib/import/filenamecat-lgpl.c: Update.
2335 * gnulib/import/filenamecat.h: Update.
2336 * gnulib/import/flexmember.h: Update.
2337 * gnulib/import/float+.h: Update.
2338 * gnulib/import/float.c: Update.
2339 * gnulib/import/float.in.h: Update.
2340 * gnulib/import/fnmatch.c: Update.
2341 * gnulib/import/fnmatch.in.h: Update.
2342 * gnulib/import/fnmatch_loop.c: Update.
2343 * gnulib/import/fpucw.h: Update.
2344 * gnulib/import/frexp.c: Update.
2345 * gnulib/import/frexpl.c: Update.
2346 * gnulib/import/fstat.c: Update.
2347 * gnulib/import/fstatat.c: Update.
2348 * gnulib/import/getcwd-lgpl.c: Update.
2349 * gnulib/import/getcwd.c: Update.
2350 * gnulib/import/getdtablesize.c: Update.
2351 * gnulib/import/getlogin_r.c: Update.
2352 * gnulib/import/getprogname.c: Update.
2353 * gnulib/import/getprogname.h: Update.
2354 * gnulib/import/gettext.h: Update.
2355 * gnulib/import/gettimeofday.c: Update.
2356 * gnulib/import/glob-libc.h: Update.
2357 * gnulib/import/glob.c: Update.
2358 * gnulib/import/glob.in.h: Update.
2359 * gnulib/import/glob_internal.h: Update.
2360 * gnulib/import/glob_pattern_p.c: Update.
2361 * gnulib/import/globfree.c: Update.
2362 * gnulib/import/hard-locale.c: Update.
2363 * gnulib/import/hard-locale.h: Update.
2364 * gnulib/import/intprops.h: Update.
2365 * gnulib/import/inttypes.in.h: Update.
2366 * gnulib/import/isnan.c: Update.
2367 * gnulib/import/isnand-nolibm.h: Update.
2368 * gnulib/import/isnand.c: Update.
2369 * gnulib/import/isnanl-nolibm.h: Update.
2370 * gnulib/import/isnanl.c: Update.
2371 * gnulib/import/itold.c: Update.
2372 * gnulib/import/libc-config.h: Update.
2373 * gnulib/import/limits.in.h: Update.
2374 * gnulib/import/localcharset.c: Update.
2375 * gnulib/import/localcharset.h: Update.
2376 * gnulib/import/localtime-buffer.c: Update.
2377 * gnulib/import/localtime-buffer.h: Update.
2378 * gnulib/import/lstat.c: Update.
2379 * gnulib/import/m4/00gnulib.m4: Update.
2380 * gnulib/import/m4/__inline.m4: Update.
2381 * gnulib/import/m4/absolute-header.m4: Update.
2382 * gnulib/import/m4/alloca.m4: Update.
2383 * gnulib/import/m4/builtin-expect.m4: Update.
2384 * gnulib/import/m4/canonicalize.m4: Update.
2385 * gnulib/import/m4/chdir-long.m4: Update.
2386 * gnulib/import/m4/close.m4: Update.
2387 * gnulib/import/m4/closedir.m4: Update.
2388 * gnulib/import/m4/configmake.m4: Update.
2389 * gnulib/import/m4/d-ino.m4: Update.
2390 * gnulib/import/m4/d-type.m4: Update.
2391 * gnulib/import/m4/dirent_h.m4: Update.
2392 * gnulib/import/m4/dirfd.m4: Update.
2393 * gnulib/import/m4/dirname.m4: Update.
2394 * gnulib/import/m4/double-slash-root.m4: Update.
2395 * gnulib/import/m4/dup.m4: Update.
2396 * gnulib/import/m4/dup2.m4: Update.
2397 * gnulib/import/m4/eealloc.m4: Update.
2398 * gnulib/import/m4/environ.m4: Update.
2399 * gnulib/import/m4/errno_h.m4: Update.
2400 * gnulib/import/m4/error.m4: Update.
2401 * gnulib/import/m4/exponentd.m4: Update.
2402 * gnulib/import/m4/exponentl.m4: Update.
2403 * gnulib/import/m4/extensions.m4: Update.
2404 * gnulib/import/m4/extern-inline.m4: Update.
2405 * gnulib/import/m4/fchdir.m4: Update.
2406 * gnulib/import/m4/fcntl-o.m4: Update.
2407 * gnulib/import/m4/fcntl.m4: Update.
2408 * gnulib/import/m4/fcntl_h.m4: Update.
2409 * gnulib/import/m4/fdopendir.m4: Update.
2410 * gnulib/import/m4/filenamecat.m4: Update.
2411 * gnulib/import/m4/flexmember.m4: Update.
2412 * gnulib/import/m4/float_h.m4: Update.
2413 * gnulib/import/m4/fnmatch.m4: Update.
2414 * gnulib/import/m4/fnmatch_h.m4: Update.
2415 * gnulib/import/m4/fpieee.m4: Update.
2416 * gnulib/import/m4/frexp.m4: Update.
2417 * gnulib/import/m4/frexpl.m4: Update.
2418 * gnulib/import/m4/fstat.m4: Update.
2419 * gnulib/import/m4/fstatat.m4: Update.
2420 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2421 * gnulib/import/m4/getcwd-path-max.m4: Update.
2422 * gnulib/import/m4/getcwd.m4: Update.
2423 * gnulib/import/m4/getdtablesize.m4: Update.
2424 * gnulib/import/m4/getlogin.m4: Update.
2425 * gnulib/import/m4/getlogin_r.m4: Update.
2426 * gnulib/import/m4/getpagesize.m4: Update.
2427 * gnulib/import/m4/getprogname.m4: Update.
2428 * gnulib/import/m4/gettimeofday.m4: Update.
2429 * gnulib/import/m4/glibc21.m4: Update.
2430 * gnulib/import/m4/glob.m4: Update.
2431 * gnulib/import/m4/glob_h.m4: Update.
2432 * gnulib/import/m4/gnulib-cache.m4: Update.
2433 * gnulib/import/m4/gnulib-common.m4: Update.
2434 * gnulib/import/m4/gnulib-comp.m4: Update.
2435 * gnulib/import/m4/gnulib-tool.m4: Update.
2436 * gnulib/import/m4/hard-locale.m4: Update.
2437 * gnulib/import/m4/include_next.m4: Update.
2438 * gnulib/import/m4/inttypes-pri.m4: Update.
2439 * gnulib/import/m4/inttypes.m4: Update.
2440 * gnulib/import/m4/isnand.m4: Update.
2441 * gnulib/import/m4/isnanl.m4: Update.
2442 * gnulib/import/m4/largefile.m4: Update.
2443 * gnulib/import/m4/limits-h.m4: Update.
2444 * gnulib/import/m4/localcharset.m4: Update.
2445 * gnulib/import/m4/locale-fr.m4: Update.
2446 * gnulib/import/m4/locale-ja.m4: Update.
2447 * gnulib/import/m4/locale-zh.m4: Update.
2448 * gnulib/import/m4/localtime-buffer.m4: Update.
2449 * gnulib/import/m4/longlong.m4: Update.
2450 * gnulib/import/m4/lstat.m4: Update.
2451 * gnulib/import/m4/malloc.m4: Update.
2452 * gnulib/import/m4/malloca.m4: Update.
2453 * gnulib/import/m4/math_h.m4: Update.
2454 * gnulib/import/m4/mbrtowc.m4: Update.
2455 * gnulib/import/m4/mbsinit.m4: Update.
2456 * gnulib/import/m4/mbsrtowcs.m4: Update.
2457 * gnulib/import/m4/mbstate_t.m4: Update.
2458 * gnulib/import/m4/memchr.m4: Update.
2459 * gnulib/import/m4/memmem.m4: Update.
2460 * gnulib/import/m4/mempcpy.m4: Update.
2461 * gnulib/import/m4/memrchr.m4: Update.
2462 * gnulib/import/m4/mkdir.m4: Update.
2463 * gnulib/import/m4/mkstemp.m4: Update.
2464 * gnulib/import/m4/mmap-anon.m4: Update.
2465 * gnulib/import/m4/mode_t.m4: Update.
2466 * gnulib/import/m4/msvc-inval.m4: Update.
2467 * gnulib/import/m4/msvc-nothrow.m4: Update.
2468 * gnulib/import/m4/multiarch.m4: Update.
2469 * gnulib/import/m4/nocrash.m4: Update.
2470 * gnulib/import/m4/off_t.m4: Update.
2471 * gnulib/import/m4/onceonly.m4: Update.
2472 * gnulib/import/m4/open-cloexec.m4: Update.
2473 * gnulib/import/m4/open.m4: Update.
2474 * gnulib/import/m4/openat.m4: Update.
2475 * gnulib/import/m4/opendir.m4: Update.
2476 * gnulib/import/m4/pathmax.m4: Update.
2477 * gnulib/import/m4/rawmemchr.m4: Update.
2478 * gnulib/import/m4/readdir.m4: Update.
2479 * gnulib/import/m4/readlink.m4: Update.
2480 * gnulib/import/m4/realloc.m4: Update.
2481 * gnulib/import/m4/rename.m4: Update.
2482 * gnulib/import/m4/rewinddir.m4: Update.
2483 * gnulib/import/m4/rmdir.m4: Update.
2484 * gnulib/import/m4/save-cwd.m4: Update.
2485 * gnulib/import/m4/secure_getenv.m4: Update.
2486 * gnulib/import/m4/setenv.m4: Update.
2487 * gnulib/import/m4/signal_h.m4: Update.
2488 * gnulib/import/m4/ssize_t.m4: Update.
2489 * gnulib/import/m4/stat-time.m4: Update.
2490 * gnulib/import/m4/stat.m4: Update.
2491 * gnulib/import/m4/std-gnu11.m4: Update.
2492 * gnulib/import/m4/stdbool.m4: Update.
2493 * gnulib/import/m4/stddef_h.m4: Update.
2494 * gnulib/import/m4/stdint.m4: Update.
2495 * gnulib/import/m4/stdio_h.m4: Update.
2496 * gnulib/import/m4/stdlib_h.m4: Update.
2497 * gnulib/import/m4/strchrnul.m4: Update.
2498 * gnulib/import/m4/strdup.m4: Update.
2499 * gnulib/import/m4/strerror.m4: Update.
2500 * gnulib/import/m4/string_h.m4: Update.
2501 * gnulib/import/m4/strstr.m4: Update.
2502 * gnulib/import/m4/strtok_r.m4: Update.
2503 * gnulib/import/m4/sys_socket_h.m4: Update.
2504 * gnulib/import/m4/sys_stat_h.m4: Update.
2505 * gnulib/import/m4/sys_time_h.m4: Update.
2506 * gnulib/import/m4/sys_types_h.m4: Update.
2507 * gnulib/import/m4/tempname.m4: Update.
2508 * gnulib/import/m4/time_h.m4: Update.
2509 * gnulib/import/m4/unistd-safer.m4: Update.
2510 * gnulib/import/m4/unistd_h.m4: Update.
2511 * gnulib/import/m4/warn-on-use.m4: Update.
2512 * gnulib/import/m4/wchar_h.m4: Update.
2513 * gnulib/import/m4/wchar_t.m4: Update.
2514 * gnulib/import/m4/wctype_h.m4: Update.
2515 * gnulib/import/m4/wint_t.m4: Update.
2516 * gnulib/import/malloc.c: Update.
2517 * gnulib/import/malloc/scratch_buffer.h: Update.
2518 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2519 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2520 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2521 * gnulib/import/malloca.c: Update.
2522 * gnulib/import/malloca.h: Update.
2523 * gnulib/import/malloca.valgrind: Update.
2524 * gnulib/import/math.in.h: Update.
2525 * gnulib/import/mbrtowc.c: Update.
2526 * gnulib/import/mbsinit.c: Update.
2527 * gnulib/import/mbsrtowcs-impl.h: Update.
2528 * gnulib/import/mbsrtowcs-state.c: Update.
2529 * gnulib/import/mbsrtowcs.c: Update.
2530 * gnulib/import/memchr.c: Update.
2531 * gnulib/import/memmem.c: Update.
2532 * gnulib/import/mempcpy.c: Update.
2533 * gnulib/import/memrchr.c: Update.
2534 * gnulib/import/mkdir.c: Update.
2535 * gnulib/import/mkstemp.c: Update.
2536 * gnulib/import/msvc-inval.c: Update.
2537 * gnulib/import/msvc-inval.h: Update.
2538 * gnulib/import/msvc-nothrow.c: Update.
2539 * gnulib/import/msvc-nothrow.h: Update.
2540 * gnulib/import/open.c: Update.
2541 * gnulib/import/openat-die.c: Update.
2542 * gnulib/import/openat-priv.h: Update.
2543 * gnulib/import/openat-proc.c: Update.
2544 * gnulib/import/openat.c: Update.
2545 * gnulib/import/openat.h: Update.
2546 * gnulib/import/opendir.c: Update.
2547 * gnulib/import/pathmax.h: Update.
2548 * gnulib/import/pipe-safer.c: Update.
2549 * gnulib/import/rawmemchr.c: Update.
2550 * gnulib/import/readdir.c: Update.
2551 * gnulib/import/readlink.c: Update.
2552 * gnulib/import/realloc.c: Update.
2553 * gnulib/import/ref-add.sin: Update.
2554 * gnulib/import/ref-del.sin: Update.
2555 * gnulib/import/rename.c: Update.
2556 * gnulib/import/rewinddir.c: Update.
2557 * gnulib/import/rmdir.c: Update.
2558 * gnulib/import/same-inode.h: Update.
2559 * gnulib/import/save-cwd.c: Update.
2560 * gnulib/import/save-cwd.h: Update.
2561 * gnulib/import/scratch_buffer.h: Update.
2562 * gnulib/import/secure_getenv.c: Update.
2563 * gnulib/import/setenv.c: Update.
2564 * gnulib/import/signal.in.h: Update.
2565 * gnulib/import/stat-time.c: Update.
2566 * gnulib/import/stat-time.h: Update.
2567 * gnulib/import/stat-w32.c: Update.
2568 * gnulib/import/stat-w32.h: Update.
2569 * gnulib/import/stat.c: Update.
2570 * gnulib/import/stdbool.in.h: Update.
2571 * gnulib/import/stddef.in.h: Update.
2572 * gnulib/import/stdint.in.h: Update.
2573 * gnulib/import/stdio.in.h: Update.
2574 * gnulib/import/stdlib.in.h: Update.
2575 * gnulib/import/str-two-way.h: Update.
2576 * gnulib/import/strchrnul.c: Update.
2577 * gnulib/import/strdup.c: Update.
2578 * gnulib/import/streq.h: Update.
2579 * gnulib/import/strerror-override.c: Update.
2580 * gnulib/import/strerror-override.h: Update.
2581 * gnulib/import/strerror.c: Update.
2582 * gnulib/import/string.in.h: Update.
2583 * gnulib/import/stripslash.c: Update.
2584 * gnulib/import/strnlen1.c: Update.
2585 * gnulib/import/strnlen1.h: Update.
2586 * gnulib/import/strstr.c: Update.
2587 * gnulib/import/strtok_r.c: Update.
2588 * gnulib/import/sys_stat.in.h: Update.
2589 * gnulib/import/sys_time.in.h: Update.
2590 * gnulib/import/sys_types.in.h: Update.
2591 * gnulib/import/tempname.c: Update.
2592 * gnulib/import/tempname.h: Update.
2593 * gnulib/import/time.in.h: Update.
2594 * gnulib/import/unistd--.h: Update.
2595 * gnulib/import/unistd-safer.h: Update.
2596 * gnulib/import/unistd.in.h: Update.
2597 * gnulib/import/unsetenv.c: Update.
2598 * gnulib/import/verify.h: Update.
2599 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2600 * gnulib/import/wchar.in.h: Update.
2601 * gnulib/import/wctype.in.h: Update.
2602 * gnulib/import/xalloc-oversized.h: Update.
2603 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2604 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2606 2018-08-16 Gary Benson <gbenson@redhat.com>
2609 * gdb/main.c (captured_main_1): Exit with nonzero status
2610 in batch mode if the last command to be executed failed.
2611 * NEWS: Mention the above.
2613 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2615 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2616 end of warning message.
2618 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2621 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2622 (aarch64_extract_return_value): Use
2623 aapcs_is_vfp_call_or_return_candidate.
2624 (aarch64_return_in_memory): Likewise.
2625 (aarch64_store_return_value): Likewise.
2627 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2630 (aapcs_is_vfp_call_or_return_candidate): Make static
2631 (pass_in_v_or_stack): Remove function.
2632 (pass_in_v_vfp_candidate): New function.
2633 (aarch64_push_dummy_call): Check for float register candidates.
2635 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2637 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2638 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2639 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2641 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2644 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2645 (struct ipa_sym_addresses): Rename to...
2646 (struct ipa_sym_addresses_common): ... this.
2647 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2649 2018-08-28 Tom Tromey <tom@tromey.com>
2651 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2652 (token_fifo): Now a std::vector.
2653 (yylex, c_parse): Update.
2654 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2655 (token_fifo): Now a std::vector.
2656 (yylex, d_parse): Update.
2657 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2658 (token_fifo): Now a std::vector.
2659 (yylex, go_parse): Update.
2661 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2663 * parser-defs.h (struct type_stack) <elements>: Change type to
2664 std::vector<union type_stack_elt>.
2665 <depth, size>: Remove.
2666 * parse.c (parse_exp_in_context_1): Adjust.
2667 (type_stack_reserve): Remove.
2668 (check_type_stack_depth): Remove.
2669 (insert_into_type_stack): Adjust to std::vector.
2670 (insert_type): Likewise.
2671 (push_type): Likewise.
2672 (push_type_int): Likewise.
2673 (insert_type_address_space): Likewise.
2674 (pop_type): Likewise.
2675 (pop_type_int): Likewise.
2676 (pop_typelist): Likewise.
2677 (pop_type_stack): Likewise.
2678 (append_type_stack): Likewise.
2679 (push_type_stack): Likewise.
2680 (get_type_stack): Likewise.
2681 (type_stack_cleanup): Likewise.
2682 (push_typelist): Likewise.
2683 (follow_types): Likewise.
2684 (_initialize_parse): Likewise.
2686 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2688 * NEWS: Mention csky target.
2690 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2691 Hafiz Abid Qadeer <abidh@codesourcery.com>
2692 Don Breazeal <donb@codesourcery.com>
2694 * csky-linux-tdep.c: New file.
2695 * csky-tdep.c: Likewise.
2696 * csky-tdep.h: Likewise.
2697 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2699 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2700 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2701 * configure.tgt: Add csky support.
2703 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2705 * python/py-framefilter.c (py_print_frame): Print frame architecture
2706 when printing on an MI output.
2708 2018-08-27 Tom Tromey <tom@tromey.com>
2711 * configure: Rebuild.
2712 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2714 2018-08-27 Tom Tromey <tom@tromey.com>
2716 * aarch64-linux-tdep.c
2717 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2720 2018-08-27 Tom Tromey <tom@tromey.com>
2722 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2724 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2725 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2726 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2727 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2730 2018-08-27 Tom Tromey <tom@tromey.com>
2732 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2733 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2735 2018-08-27 Tom Tromey <tom@tromey.com>
2737 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2738 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2740 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2742 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2744 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2745 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2746 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2748 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2749 (ppc64_linux_sigaction_tramp_frame)
2750 (ppc32_linux_sighandler_tramp_frame)
2751 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2752 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2753 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2754 * mn10300-linux-tdep.c (am33_linux_sigframe)
2755 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2756 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2757 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2758 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2759 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2760 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2761 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2762 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2763 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2764 * microblaze-linux-tdep.c
2765 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2766 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2767 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2768 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2769 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2770 * common/common-types.h (ULONGEST_MAX): New define.
2771 (CORE_ADDR_MAX): Fix formatting.
2772 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2773 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2774 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2775 (arm_linux_rt_sigreturn_tramp_frame)
2776 (arm_eabi_linux_sigreturn_tramp_frame)
2777 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2778 (thumb2_eabi_linux_sigreturn_tramp_frame)
2779 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2780 (arm_linux_restart_syscall_tramp_frame)
2781 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2782 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2783 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2785 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2787 2018-08-27 Tom Tromey <tom@tromey.com>
2789 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2791 * mips-tdep.c (mips_deal_with_atomic_sequence)
2792 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2793 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2794 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2795 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2797 * aarch64-tdep.c (aarch64_software_single_step): Use
2800 2018-08-27 Tom Tromey <tom@tromey.com>
2802 * linespec.c (complete_linespec_component): Add cast to "char".
2803 * completer.c (completion_tracker::build_completion_result): Add
2806 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2808 * solist.h (struct solist, struct target_so_ops): Fix
2811 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2813 * ada-tasks.c (ada_task_info_s): Remove typedef.
2814 (DEF_VEC_O(ada_task_info_s)): Remove.
2815 (struct ada_tasks_inferior_data): Initialize fields.
2816 <task_list>: Make an std::vector.
2817 (get_ada_tasks_inferior_data): Allocate with new.
2818 (ada_get_task_number): Adjust.
2819 (get_task_number_from_id): Likewise.
2820 (valid_task_id): Likewise.
2821 (ada_get_task_info_from_ptid): Likewise.
2822 (iterate_over_live_ada_tasks): Likewise.
2823 (add_ada_task): Likewise.
2824 (read_known_tasks): Likewise.
2825 (ada_build_task_list): Likewise.
2826 (print_ada_task_info): Likewise.
2827 (info_task): Likewise.
2828 (task_command_1): Likewise.
2830 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2832 * ada-lang.c (add_angle_brackets): Return std::string.
2834 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2836 * python/py-threadevent.c (py_get_event_thread): Initialize
2839 2018-08-24 Pedro Alves <palves@redhat.com>
2841 * python/py-bpevent.c (create_breakpoint_event_object): Use
2842 copy-initialization.
2843 * python/py-continueevent.c (emit_continue_event): Use
2844 copy-initialization.
2845 * python/py-exitedevent.c (create_exited_event_object): Return a
2847 (emit_exited_event): Use copy-initialization.
2848 * python/py-inferior.c (python_new_inferior)
2849 (python_inferior_deleted, add_thread_object): Use
2850 copy-initialization.
2851 * python/py-infevents.c (create_inferior_call_event_object)
2852 (create_register_changed_event_object)
2853 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2854 (emit_inferior_call_event, emit_memory_changed_event)
2855 (emit_register_changed_event): Use copy-initialization.
2856 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2857 Return a gdbpy_ref<>.
2858 (emit_new_objfile_event): Use copy-initialization.
2859 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2860 (emit_clear_objfiles_event): Use copy-initialization.
2861 * python/py-signalevent.c (create_signal_event_object): Use
2862 copy-initialization.
2863 * python/py-threadevent.c (create_thread_event_object): Use
2864 copy-initialization.
2866 2018-08-24 Pedro Alves <palves@redhat.com>
2867 Simon Marchi <simon.marchi@ericsson.com>
2870 * python/py-continueevent.c: Include "gdbthread.h".
2871 (create_continue_event_object): Add intro comment. Add 'ptid'
2872 parameter. Use it to find thread to pass to
2873 create_thread_event_object.
2874 (emit_continue_event): Pass PTID down to
2875 create_continue_event_object.
2876 * python/py-event.h (py_get_event_thread): Declare.
2877 (create_thread_event_object): Remove default from 'thread'
2879 * python/py-stopevent.c (create_stop_event_object): Use
2880 py_get_event_thread.
2881 * python/py-threadevent.c (get_event_thread): Rename to ...
2882 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2883 and use it to find the thread.
2884 (create_thread_event_object): Assert that THREAD isn't null.
2885 Don't find the event thread here.
2887 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2889 * block.h (blockrange, blockranges): New struct declarations.
2890 (struct block): Add new field named `ranges'.
2891 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2892 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2893 macros for accessing ranges in struct block.
2894 (make_blockranges): New declaration.
2895 block.c (make_blockranges): New function.
2896 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2898 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2899 * blockframe.c (cache_pc_function_block): New static global.
2900 (clear_pc_function_cache): Clear cache_pc_function_block.
2901 (find_pc_partial_function): Move comment to symtab.h. Add
2902 support for non-contiguous blocks.
2903 * cli/cli-cmds.c (block.h): Include.
2904 (print_disassembly): Handle printing of non-contiguous blocks.
2905 (disassemble_current_function): Likewise.
2906 (disassemble_command): Likewise.
2908 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2910 * blockframe.c (get_pc_function_start): Likewise.
2911 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2912 (gcc_symbol_address): Likewise.
2913 * compile/compile-object-run.c (compile_object_run): Likewise.
2914 * compile/compile.c (get_expr_block_and_pc): Likewise.
2915 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2916 (func_addr_to_tail_call_list): Likewise.
2917 * findvar.c (default_read_var_value): Likewise.
2918 * inline-frame.c (inline_frame_this_id): Likewise.
2919 (skip-inline_frames): Likewise.
2920 * infcmd.c (until_next_command): Likewise.
2921 * linespec.c (convert_linespec_to_sals): Likewise.
2922 * parse.c (parse_exp_in_context_1): Likewise.
2923 * printcmd.c (build_address_symbolic): likewise.
2924 (info_address_command): Likewise.
2925 symtab.c (find_function_start_sal): Likewise.
2926 (skip_prologue_sal): Likewise.
2927 (find_function_alias_target): Likewise.
2928 (find_gnu_ifunc): Likewise.
2929 * stack.c (find_frame_funname): Likewise.
2930 * symtab.c (fixup_symbol_section): Likewise.
2931 (find_function_start_sal): Likewise.
2932 (skip_prologue_sal): Likewsie.
2933 (find_function_alias_target): Likewise.
2934 (find_gnu_ifunc): Likewise.
2935 * tracepoint.c (info_scope_command): Likewise.
2936 * value.c (value_fn_field): Likewise.
2938 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2939 in place of find_pc_partial_function.
2940 * blockframe.c (find_function_entry_range_from_pc): New function.
2941 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2942 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2943 for each range in a block.
2946 2018-08-23 Xavier Roirand <roirand@adacore.com>
2948 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2951 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2953 * solib-svr4.c (read_program_headers_from_bfd): Return
2954 gdb::optional<gdb::byte_vector>.
2955 (svr4_exec_displacement): Adjust.
2957 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2959 * solib-svr4.c (read_program_header): Return
2960 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2961 (find_program_interpreter): Return
2962 gdb::optional<gdb::byte_vector>.
2963 (scan_dyntag_auxv): Adjust.
2964 (enable_break): Adjust.
2965 (svr4_exec_displacement): Adjust.
2967 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2969 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2970 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2972 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2974 * guile/scm-string.c (gdbscm_scm_from_printf): Use
2976 * guile/scm-utils.c (gdbscm_printf): Likewise.
2977 * serial.c (serial_printf): Likewise.
2978 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
2980 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
2982 * stack.c (print_frame): Print frame architecture when printing on
2984 * NEWS: Mention new "arch" attribute in frame output.
2986 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2988 * arch/aarch64.h (aarch64_regnum): Update comment.
2990 2018-08-21 Alan Hayward <alan.hayward@arm.com>
2992 * NEWS: Add SVE to 8.2 section.
2994 2018-08-21 Pedro Alves <palves@redhat.com>
2996 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
2997 out from gdbscm_parse_function_args.
2998 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
2999 gdbscm_parse_function_args_1.
3001 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
3004 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
3007 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
3009 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
3011 2018-08-19 Michael Spang <spang@google.com>
3014 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
3015 for PT_TLS segments.
3017 2018-08-18 Kevin Buettner <kevinb@redhat.com>
3019 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
3020 dwarf_variable_value.
3021 * dwarf2-frame.c (class dwarf_expr_executor):
3022 Add override for dwarf_variable_value.
3023 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
3024 (class symbol_needs_eval_context): Likewise.
3025 (indirect_synthetic_pointer): Add forward declaration.
3026 (sect_variable_value): New function.
3027 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
3028 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
3029 for DW_OP_GNU_variable_value.
3031 2018-08-16 Tom Tromey <tom@tromey.com>
3033 * top.c (read_command_file): Update.
3034 (command_line_input): Remove "repeat" argument.
3035 * ada-lang.c (get_selections): Update.
3036 * linespec.c (decode_line_2): Update.
3037 * defs.h (command_line_input): Remove argument.
3038 * cli/cli-script.c (read_next_line): Update.
3039 * python/py-gdb-readline.c: Update.
3041 2018-08-17 Tom Tromey <tom@tromey.com>
3043 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
3046 2018-08-15 Tom Tromey <tom@tromey.com>
3048 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
3050 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
3052 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
3053 If used, use find_pc_partial_function to find address range
3055 * mi/mi-main.c (mi_cmd_list_features): Report
3056 "data-disassemble-a-option" feature.
3057 * NEWS: Mention new -data-disassemble option -a.
3059 2018-08-13 Tom Tromey <tom@tromey.com>
3061 * common/common-defs.h (_FORTIFY_SOURCE): Define.
3063 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3065 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
3066 (aarch64_linux_collect_sve_regset): Likewise.
3067 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
3068 * regcache.h (regcache_map_entry_size): New function.
3070 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3072 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
3073 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
3074 (SVE_HEADER_VL_LENGTH): Likewise.
3075 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
3076 (SVE_HEADER_FLAGS_LENGTH): Likewise.
3077 (SVE_HEADER_RESERVED_LENGTH): Likewise.
3078 (SVE_HEADER_SIZE_OFFSET): Likewise.
3079 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
3080 (SVE_HEADER_VL_OFFSET): Likewise.
3081 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
3082 (SVE_HEADER_FLAGS_OFFSET): Likewise.
3083 (SVE_HEADER_RESERVED_OFFSET): Likewise.
3084 (SVE_HEADER_SIZE): Likewise.
3085 (aarch64_linux_core_read_vq): Add function.
3086 (aarch64_linux_core_read_description): Check for SVE section.
3088 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3090 * aarch64-fbsd-tdep.c
3091 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
3093 * aarch64-linux-tdep.c
3094 (aarch64_linux_iterate_over_regset_sections): Likewise.
3095 * alpha-linux-tdep.c
3096 (alpha_linux_iterate_over_regset_sections):
3098 (alphanbsd_iterate_over_regset_sections): Likewise.
3100 (amd64fbsd_iterate_over_regset_sections): Likewise.
3101 * amd64-linux-tdep.c
3102 (amd64_linux_iterate_over_regset_sections): Likewise.
3104 (armbsd_iterate_over_regset_sections): Likewise.
3106 (arm_fbsd_iterate_over_regset_sections): Likewise.
3108 (arm_linux_iterate_over_regset_sections): Likewise.
3109 * corelow.c (get_core_registers_cb): Likewise.
3110 (core_target::fetch_registers): Likewise.
3111 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3112 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
3113 * gdbarch.h (void): Regenerate.
3114 * gdbarch.sh: Add supply_size and collect_size.
3115 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
3116 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
3117 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
3118 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
3119 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
3120 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
3121 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
3122 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
3123 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
3124 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
3125 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
3126 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
3127 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
3128 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
3129 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
3130 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
3131 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
3132 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
3133 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
3134 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
3135 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
3136 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
3137 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
3138 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
3139 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
3140 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
3141 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
3142 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
3143 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
3144 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
3146 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
3148 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
3151 2018-08-10 Keith Seitz <keiths@redhat.com>
3153 * compile/compile-c-support.c (add_code_header, add_code_footer):
3154 Move into policy class.
3155 (c_push_user_expression, pop_user_expression_nop)
3156 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
3157 (compile_program): New host class.
3158 (c_compile_program): New typedef.
3159 (c_compute_porgram): Use c_compile_program.
3161 2018-08-10 Keith Seitz <keiths@redhat.com>
3163 * compile/compile-internal.h (compile_instance::~compile_instance):
3164 Remove calls to htab_delete.
3165 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
3166 * compile.c (compile_instance::compile_instance): Initialize
3167 htab unique pointers.
3168 (compile_instance::get_cached_type, compile_instance::insert_type)
3169 (compile_instance::error_symbol_once): Update for unique_ptr.
3171 2018-08-10 Keith Seitz <keiths@redhat.com>
3173 * compile/compile-c-symbols.c (struct symbol_error)
3174 (hash_symbol_error, eq_symbol_error, del_symbol_error)
3175 (compile_instance::insert_symbol_error)
3176 (compile_instance::error_symbol_once): Move to ...
3177 * compile/compile.c: ... here.
3179 2018-08-10 Keith Seitz <keiths@redhat.com>
3181 * compile/compile-c-support.c (c_get_compile_context): Use `new'
3182 instead of `new_compile_instance'.
3183 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
3185 If the symbol error map is not initialized, create it.
3186 (generate_c_for_for_one_symbol): Do not check/initialize
3187 the symbol error map.
3188 * compile/compile-c-types.c (compile_c_instance): Make a class.
3190 (compile_instance::compile_instance): Initialize the type cache.
3191 (get_cached_type): New function.
3192 (insert_type): Update description.
3193 (compile_c_instance::m_default_cflags): Define.
3194 (convert_type): Update description. Use get_cached_type.
3195 (delete_instance): Moved to destructor.
3196 (new_compile_instance): Moved to constructor.
3197 * compile/compile-c.h (compile_c_instance): Make class inheriting
3198 from compile_instance.
3199 <base>: Remove field.
3200 <type_map, symbol_err_map>: Move to base class.
3201 <c_plugin>: Rename to `m_plugin' and remove pointer type.
3202 * compile/compile-internal.h (compile_instance): Make class.
3203 <type_map_t, symbol_err_map_t>: Define.
3204 <fe>: Rename to `m_gcc_fe'.
3205 <scope, block, gcc_target_options>: Add `m_' prefix.
3206 <m_type_map, m_symbol_err_map>: New fields, moved from
3209 (convert_type, new_compile_instance): Remove.
3210 * compile/compile.c (cleanup_compile_instance): Remove.
3211 (compile_to_object): Use unique_ptr to eliminate cleanups.
3212 (compile_instance::set_print_callback, compile_instance::version)
3213 (compile_instance::set_verbose)
3214 (compile_instance::set_driver_filename)
3215 (compile_instance::set_triplet_regexp)
3216 (compile_instance::set_arguments)
3217 (compile_instance::set_source_file)
3218 (compile_instance::compile): Define.
3220 2018-08-10 Keith Seitz <keiths@redhat.com>
3222 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
3223 * compile/compile-c-types.c: Define GCC_METHODN macros and include
3224 gcc-c-fe.def to define C plugin.
3225 (delete_instance): Delete `c_plugin'.
3226 (new_compile_instance): Initialize `c_plugin'.
3227 * compile/compile-c.h: Include gcc_c_plugin.h.
3228 (struct compile_c_instance) <c_plugin>: New member.
3229 * gcc-c-plugin.h: New file.
3230 Update all callers with API change.
3232 2018-08-10 Keith Seitz <keiths@redhat.com>
3234 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
3235 (HFILES_NO_SRCDIR): ... to here.
3236 Add compile-internal.h and compile-c.h.
3237 * compile/compile-c-support.c: Include compile-c.h.
3238 * compile/compile-c-symbols.c: Include compile-c.h.
3239 (generate_c_for_variable_locations): Update comment.
3240 * compile/compile-c-types.c: Include compile-c.h.
3241 * compile/compile-c.h: New file -- moved C language declarations
3242 from other files here.
3243 * compile/compile-internal.h: Do not include hashtab.h or
3244 common/enum-flags.h.
3245 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
3246 (gcc_convert_symbol, gcc_symbol_address)
3247 (generate_c_for_variable_locations, c_get_mode_for_size)
3248 (c_get_range_decl_name): Definitions moved to compile-c.h.
3249 * compile/compile-loc2c.c: Include compile-c.h.
3251 2018-08-10 Keith Seitz <keiths@redhat.com>
3253 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
3254 (c_symbol_substitution_name): ... this.
3257 2018-08-10 Keith Seitz <keiths@redhat.com>
3259 * compile/compile-c-support.c (c_compute_program): Use
3260 unique_xmalloc_ptr to eliminate cleanup.
3261 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
3262 Return a unique_xmalloc_ptr and eliminate cleanup.
3263 * compile/compile-internal.h (generate_c_for_variable_locations):
3264 Return unique_xmalloc_ptr and update description.
3266 2018-08-10 Alan Hayward <alan.hayward@arm.com>
3268 * corelow.c (core_target::get_core_register_section): Rename
3269 min_size to section_min_size.
3271 2018-08-09 Jim Wilson <jimw@sifive.com>
3273 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
3274 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
3275 * NEWS: Mention new GNU/Linux RISC-V target.
3276 * configure.host: Add riscv*-*-linux*.
3277 * configure.nat: Add riscv*.
3278 * configure.tgt: Add riscv*-*-linux*.
3279 * riscv-linux-nat.c: New file.
3280 * riscv-linux-tdep.c: New file.
3282 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3284 * infrun.c (resume): Make static, add forward declaration.
3285 (proceed): Update header comment.
3286 * infrun.h (resume): Delete declaration.
3288 2018-08-09 Tom Tromey <tom@tromey.com>
3290 * riscv-tdep.h: Minor formatting fixes.
3292 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
3294 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
3295 * dwarf-index-cache.c (create_dir_and_check): Likewise.
3296 (test_mkdir_recursive): Likewise.
3297 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
3299 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3301 * valarith.c (value_subscripted_rvalue): If an array is not in
3302 memory, and we don't know the upper bound, then we can't know that
3303 the requested element exists or not.
3305 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
3307 * target.c (str_comma_list_concat_elem): Fix typo in comment.
3308 (target_options_to_string): Add comment.
3310 2018-08-08 Tom Tromey <tom@tromey.com>
3312 * unittests/scoped_mmap-selftests.c: Check result of "write".
3314 2018-08-08 Jim Wilson <jimw@sifive.com>
3316 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
3317 (decode_register_index_short): New.
3318 (decode_j_type_insn, decode_cj_type_insn): New.
3319 (decode_b_type_insn, decode_cb_type_insn): New.
3320 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
3321 local xlen. Check xlen when decoding ambiguous compressed insns. In
3322 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
3323 is_c_sw_insn instead of is_sw_insn.
3324 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
3325 (riscv_software_single_step): New.
3326 * riscv-tdep.h (riscv_software_single_step): Declare.
3328 * riscv-tdep.c (riscv_isa_xlen): Drop static.
3329 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
3331 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
3334 * target.c (dispose_inferior): Don't dispose of inferiors that are
3337 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3339 * remote.c (remote_target::download_tracepoint): Change char* to
3342 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3344 * target.h (target_options_to_string): Return an std::string.
3345 * target.c (str_comma_list_concat_elem): Return void, use
3347 (do_option): Likewise.
3348 (target_options_to_string): Return an std::string.
3349 * linux-nat.c (linux_nat_target::wait): Adjust.
3350 * target-debug.h (target_debug_print_options): Adjust.
3352 2018-08-07 Tom Tromey <tom@tromey.com>
3354 * Makefile.in (CPPFLAGS): New variable.
3355 (INTERNAL_CPPFLAGS): Use it.
3357 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3359 * NEWS: Mention the index cache.
3361 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3363 * common/pathstuff.h (get_standard_cache_dir): New.
3364 * common/pathstuff.c (get_standard_cache_dir): New.
3365 * build-id.h (build_id_to_string): New.
3366 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
3367 DEBUG_STR_SUFFIX): Move to here.
3368 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
3369 DEBUG_STR_SUFFIX): Move from there.
3370 (write_psymtabs_to_index): Make non-static, add basename
3371 parameter. Write to temporary files, rename when done.
3372 (save_gdb_index_command): Adjust call to
3373 write_psymtabs_to_index.
3374 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
3376 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
3377 (get_gdb_index_contents_from_cache): New.
3378 (get_gdb_index_contents_from_cache_dwz): New.
3379 (dwarf2_initialize_objfile): Read index from cache.
3380 (dwarf2_build_psymtabs): Save to index.
3381 * dwarf-index-cache.h: New file.
3382 * dwarf-index-cache.c: New file.
3383 * dwarf-index-write.h: New file.
3385 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3387 * gnulib/aclocal.m4: Re-generate.
3388 * gnulib/config.in: Re-generate.
3389 * gnulib/configure: Re-generate.
3390 * gnulib/import/Makefile.am: Re-generate.
3391 * gnulib/import/Makefile.in: Re-generate.
3392 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3393 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3394 * gnulib/import/m4/mkdir.m4: New file.
3395 * gnulib/import/mkdir.c: New file.
3396 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
3399 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3401 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
3402 * common/scoped_mmap.c: New file.
3403 * common/scoped_mmap.h (destroy): New method.
3404 (~scoped_mmap, reset): Use destroy.
3405 (scoped_mmap): New move constructor.
3406 (mmap_file): New declaration.
3407 * unittests/scoped_mmap-selftests.c (test_normal,
3408 test_invalid_filename, run_tests): New functions.
3409 (_initialize_scoped_mmap_selftests): Register selftest.
3411 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3413 * dwarf2read.c (read_gdb_index_from_section): Rename to...
3414 (read_gdb_index_from_buffer): ... this. Remove section
3415 parameter, add buffer parameter.
3416 (get_gdb_index_contents_ftype,
3417 get_gdb_index_contents_dwz_ftype): New typedefs.
3418 (dwarf2_read_gdb_index): Add callback parameters to get the
3420 (get_gdb_index_contents_from_section): New.
3421 (dwarf2_initialize_objfile): Update call to
3422 dwarf2_read_gdb_index.
3424 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3426 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3427 (gdb_open_cloexec): Likewise.
3428 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3429 (commandline_from_pid): Likewise.
3430 (linux_xfer_osdata_threads): Likewise.
3431 (linux_xfer_osdata_fds): Likewise.
3432 * ada-lang.c (is_package_name): Likewise.
3433 * auxv.c (procfs_xfer_auxv): Likewise.
3434 * breakpoint.c (print_one_breakpoint_location): Use
3436 (print_one_catch_solib): Use string_printf.
3437 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3438 (add_pe_forwarded_sym): Likewise.
3439 * dwarf2read.c (create_type_unit_group): Likewise.
3440 (build_error_marker_type): Likewise.
3441 * infcall.c (get_function_name): Likewise.
3442 * valprint.c (print_converted_chars_to_obstack): Likewise.
3443 * xtensa-tdep.c (xtensa_register_type): Likewise.
3445 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3447 * remote.c (remote_target::download_tracepoint): Fix format
3450 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3452 * tracefile.c: Include common/byte-vector.h.
3453 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3454 with trace_regblock_size if needed. Update uses of buf.
3456 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3458 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3459 std::vector<unsigned char>.
3460 * tracepoint.c (collection_list::collection_list): Remove
3461 m_regs_mask initializer from initializer list. Resize
3462 m_regs_mask using the largest remote register number.
3463 (collection_list::add_remote_register): Remove size check on
3464 m_regs_mask. Use at to access element.
3465 (collection_list::stringify): Change type of temp_buf to
3466 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3467 stringify the register mask. Use pack_hex_byte for the register
3470 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3472 * tracepoint.h (class collection_list) <add_register>: Remove.
3473 <add_remote_register, add_ax_registers, add_local_register>:
3475 <add_memrange>: Add scope parameter.
3476 * tracepoint.c (encode_actions_1): Likewise.
3477 (collection_list::add_register): Rename to ...
3478 (collection_list::add_remote_register): ... this. Update
3480 (collection_list::add_ax_registers, add_local_register): New
3482 (collection_list::add_memrange): Add scope parameter. Call
3483 add_local_register instead of add_register.
3484 (finalize_tracepoint_aexpr): New function.
3485 (collection_list::collect_symbol): Update calls to add_memrange.
3486 Call add_local_register instead of add_register. Call
3487 add_ax_registers. Call finalize_tracepoint_aexpr.
3488 (encode_actions_1): Get remote regnos for $reg action. Call
3489 add_remote_register, add_ax_registers, and add_local_register.
3490 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3491 (validate_actionline): Call finalize_tracepoint_aexpr.
3493 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3495 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3496 Replace array buf with gdb::char_vector buf, of size
3497 get_remote_packet_size (). Replace references to buf and
3498 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3499 and xsnprintf with snprintf. Raise errors if the buffer is too
3502 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3504 * remote.c (remote_target::download_tracepoint): Fix the has_more
3505 predicate in the QTDP action list iteration.
3507 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3509 * remote.c (remote_target::download_tracepoint): Fix indentation
3512 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3514 * proc-api.c (_initialize_proc_api): Remove c, unused.
3515 * procfs.c (procfs_init_inferior): Remove signals, unused.
3516 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3519 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3520 Andrew Burgess <andrew.burgess@embecosm.com>
3522 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3523 'W_STOPCODE (0)' as this could be ambiguous.
3525 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3527 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3528 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3531 2018-08-02 Tom Tromey <tom@tromey.com>
3534 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3536 (process_structure_scope): Likewise.
3538 2018-08-02 Xavier Roirand <roirand@adacore.com>
3541 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3544 2018-08-02 Tom Tromey <tom@tromey.com>
3546 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3547 (darwin_suspend_inferior, darwin_resume_inferior)
3548 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3549 (darwin_check_new_threads): Check result of get_darwin_inferior.
3551 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3555 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3557 * varobj.c (varobj_get_path_expr_parent): Report an error if
3558 parent is a dynamic varobj.
3560 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3562 * gnulib/aclocal.m4: Re-generate.
3563 * gnulib/config.in: Re-generate.
3564 * gnulib/configure: Re-generate.
3565 * gnulib/import/Makefile.in: Re-generate.
3566 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3567 * gnulib/import/m4/onceonly.m4: Re-generate.
3569 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3571 * target-descriptions.c (struct xml_test_tdesc): New.
3572 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3573 (record_xml_tdesc): Update.
3574 (maintenance_check_xml_descriptions): Update.
3575 * target-descriptions.h (record_xml_tdesc): Update comment.
3577 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3579 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3580 checking array bounds are defined.
3582 2018-07-30 Tom Tromey <tom@tromey.com>
3584 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3585 irreflexivity violation.
3587 2018-07-30 Tom Tromey <tom@tromey.com>
3589 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3590 * value.c (unpack_long): Remove lint code.
3591 * valops.c (value_ind): Remove lint code.
3592 * valarith.c (value_x_binop, value_x_unop, value_equal)
3593 (value_pos): Remove lint code.
3595 2018-07-28 Tom de Vries <tdevries@suse.de>
3597 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3598 with undefined upper bound as <optimized out>.
3600 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3602 * gcore.in: Rename variable "name" to "prefix". Expand
3605 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3607 * windows-nat.c (windows_nat_target::create_inferior): Update to
3608 call close() in global namespace.
3610 2018-07-26 Tom Tromey <tom@tromey.com>
3612 * dwarf-index-write.c (add_address_entry): Don't add objfile
3614 * dbxread.c (find_stab_function): Rename from
3615 find_stab_function_addr. Return a bound_minimal_symbol.
3616 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3617 Don't add objfile offsets.
3618 (end_psymtab): Use raw_text_low, raw_text_high,
3619 MSYMBOL_VALUE_RAW_ADDRESS.
3620 (read_ofile_symtab): Update.
3621 (process_one_symbol): Update.
3622 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3624 (dw2_relocate): Remove.
3625 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3627 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3629 (process_psymtab_comp_unit_reader, add_partial_symbol)
3630 (add_partial_subprogram, dwarf2_ranges_read): Update.
3631 (load_partial_dies): Update.
3632 (add_address_entry): Don't add objfile offsets.
3633 (dwarf2_build_include_psymtabs): Update.
3634 (create_addrmap_from_aranges): Don't add objfile offsets.
3635 (dw2_find_pc_sect_compunit_symtab): Update.
3636 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3637 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3639 (parse_partial_symbols): Don't add objfile offsets. Use
3640 raw_text_low, raw_text_high. Update.
3641 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3642 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3643 or call 'relocate' quick function. Clear psymbol_map.
3644 * psympriv.h (struct partial_symbol) <address>: Add section
3646 <set_unrelocated_address>: Rename from set_address.
3647 <raw_text_low, raw_text_high>: New methods.
3648 <text_low, text_high>: Add objfile parameter.
3649 (add_psymbol_to_bcache): Add 'section' parameter. Call
3650 set_unrelocated_address.
3651 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3652 (find_pc_psymbol): Update.
3653 (fixup_psymbol_section, relocate_psymtabs): Remove.
3654 (dump_psymtab, psym_functions): Update.
3655 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3657 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3658 (start_psymtab_common): Update.
3659 * symfile-debug.c (debug_qf_relocate): Remove.
3660 (debug_sym_quick_functions): Update.
3661 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3662 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3665 2018-07-26 Tom Tromey <tromey@redhat.com>
3667 * dbxread.c (end_psymtab): Use text_high_valid and
3669 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3670 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3671 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3673 <text_low_valid, text_high_valid>: New fields.
3674 <set_text_low, set_text_high>: Update.
3675 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3677 2018-07-26 Tom Tromey <tom@tromey.com>
3679 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3681 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3682 textlow and texthigh fields.
3683 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3685 * mdebugread.c (parse_lines, parse_partial_symbols)
3686 (psymtab_to_symtab_1): Update.
3687 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3688 Rename fields. Update comment. Now private.
3689 <text_low, text_high, set_text_low, set_text_high>: New methods.
3690 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3691 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3692 (start_psymtab_common, maintenance_info_psymtabs)
3693 (maintenance_check_psymtabs): Update.
3694 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3696 (scan_xcoff_symtab): Update.
3698 2018-07-26 Tom Tromey <tromey@redhat.com>
3700 * psympriv.h (struct partial_symbol) <unrelocated_address,
3701 address, set_address>: New methods.
3702 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3703 (fixup_psymbol_section, relocate_psymtabs): Update.
3704 (print_partial_symbols): Add 'objfile' parameter. Update.
3705 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3708 2018-07-26 Tom Tromey <tom@tromey.com>
3710 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3711 (debug_names::write_psymbols): Update.
3712 * psympriv.h (struct partial_symbol): Derive from
3713 general_symbol_info.
3714 <obj_section>: New method.
3715 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3716 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3717 (find_pc_sect_psymbol, fixup_psymbol_section)
3718 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3719 (print_partial_symbols, recursively_search_psymtabs)
3720 (compare_psymbols, psymbol_hash, psymbol_compare)
3721 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3722 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3724 2018-07-26 Tom Tromey <tromey@redhat.com>
3726 * dbxread.c (end_psymtab): Remove dead code.
3728 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3730 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3731 DWARF unwinders are disabled.
3732 * dwarf2-frame.c: Add dwarf2read.h include.
3733 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3735 (dwarf2_frame_unwinders_enabled_p): Define.
3736 (show_dwarf_unwinders_enabled_p): New function.
3737 (_initialize_dwarf2_frame): Register switch to control DWARF
3739 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3740 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3741 (show_dwarf_cmdlist): Remove static keyword.
3742 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3743 (show_dwarf_cmdlist): Declare.
3744 * NEWS: Document new feature.
3746 2018-07-26 Tom de Vries <tdevries@suse.de>
3748 PR breakpoints/23366
3749 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3751 2018-07-26 Tom de Vries <tdevries@suse.de>
3753 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3754 DW_AT_count can't be translated to a dynamic prop.
3756 2018-07-25 Tom de Vries <tdevries@suse.de>
3758 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3761 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3763 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3765 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3767 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3769 2018-07-24 Keith Seitz <keiths@redhat.comt
3772 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3773 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3774 instead of add_symbol_to_list.
3775 (read_file_scope): Call prepare_one_comp_unit before reading
3778 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3780 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3782 2018-07-24 Tom Tromey <tom@tromey.com>
3784 * utils.c (malloc, realloc, free): Don't declare.
3785 * configure, config.in: Rebuild.
3786 * configure.ac: Don't check for declarations of free, malloc, or
3789 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3791 * aarch64-linux-nat.c
3792 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3794 * arm-linux-nat.c (fetch_regs): Likewise.
3795 (store_regs): Likewise.
3796 (fetch_vfp_regs): Likewise.
3797 (store_vfp_regs): Likewise.
3798 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3799 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3800 (arm_linux_nat_target::insert_watchpoint): Likewise.
3801 (arm_linux_nat_target::remove_watchpoint): Likewise.
3802 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3804 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3806 * ppc-linux-nat.c (fetch_register): Likewise.
3807 (fetch_all_gp_regs): Likewise.
3808 (fetch_ppc_registers): Likewise.
3809 (store_all_gp_regs): Likewise.
3810 (store_ppc_registers): Likewise.
3811 (hwdebug_insert_point): Likewise.
3812 (can_use_watchpoint_cond_accel): Likewise.
3813 * remote-sim.c (gdb_os_write_stdout): Likewise.
3815 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3816 Tom Tromey <tom@tromey.com>
3818 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3820 * configure: Rebuild.
3822 2018-07-22 Tom Tromey <tom@tromey.com>
3824 * regformats/regdat.sh: Define xmltarget_${name} inside
3825 #ifndef IN_PROCESS_AGENT.
3827 2018-07-22 Tom Tromey <tom@tromey.com>
3829 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3831 2018-07-22 Tom Tromey <tom@tromey.com>
3833 * symfile.c (reread_symbols): Notify iter, not objfile.
3835 2018-07-22 Tom Tromey <tom@tromey.com>
3837 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3839 (ravenscar_thread_target::prepare_to_store): Likewise.
3841 2018-07-22 Tom Tromey <tom@tromey.com>
3843 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3844 unused variable. Call value_fetch_lazy when needed.
3845 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3846 Remove unused variable. Call value_fetch_lazy when needed.
3848 2018-07-22 Tom Tromey <tom@tromey.com>
3850 * m32c-tdep.c (mark_dma): Return void.
3851 (make_regs): Remove unused declarations.
3853 2018-07-22 Tom Tromey <tom@tromey.com>
3855 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3856 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3857 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3858 bkscm_get_valid_block_smob_arg_unsafe for effect.
3860 2018-07-22 Tom Tromey <tom@tromey.com>
3862 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3865 2018-07-22 Tom Tromey <tom@tromey.com>
3867 * windows-nat.c (saved_context): Conditionally define.
3868 * remote.c (remote_target::remote_btrace_maybe_reopen):
3869 Conditionally declare "warned".
3870 * inflow.c (sigquit_ours): Conditionally define.
3871 (new_tty): Move "tty" declaration inside #if.
3872 * guile/guile.c (guile_datadir): Conditionally define.
3873 * charset.c (set_be_le_names): Move some declarations inside #if.
3874 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3876 (parse_xml_btrace_conf): Likewise.
3878 2018-07-22 Tom Tromey <tom@tromey.com>
3880 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3882 2018-07-22 Tom Tromey <tom@tromey.com>
3884 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3885 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3886 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3887 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3888 * stack.c (frame_apply_level_command): Remove unused variable.
3889 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3890 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3891 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3893 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3894 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3895 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3897 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3898 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3900 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3901 Remove unused variable.
3902 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3904 * common/tdesc.c (print_xml_feature::visit): Remove unused
3906 * compile/compile-object-load.c (store_regs): Remove unused
3908 * complaints.c (clear_complaints): Remove unused variable.
3909 * corelow.c (core_target_open): Remove unused variable.
3910 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3912 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3914 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3916 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3918 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3920 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3922 * ia64-tdep.c (examine_prologue): Remove unused variable.
3923 * infcall.c (run_inferior_call): Remove unused variable.
3924 * inferior.c (exit_inferior): Remove unused variable.
3925 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3926 * linespec.c (decode_line_2): Remove unused variable.
3927 * linux-nat.c (super_close): Remove.
3928 * linux-tdep.c (linux_info_proc): Remove unused variable.
3929 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3930 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3931 Remove unused variable.
3932 * parse.c (find_minsym_type_and_address): Remove unused variable.
3933 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3935 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3937 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3939 * record-btrace.c (record_btrace_target::store_registers): Remove
3941 (cmd_show_record_btrace_cpu): Remove unused variable.
3942 * riscv-tdep.c (riscv_register_reggroup_p)
3943 (riscv_push_dummy_call, riscv_return_value): Remove unused
3945 * rust-exp.y (literal): Remove unused variable.
3946 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3948 <STRUCTOP_ANONYMOUS>: Likewise.
3949 * s390-linux-tdep.c (s390_linux_init_abi_31)
3950 (s390_linux_init_abi_64): Remove unused variable.
3951 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3952 (file_select_thread, net_windows_open, _initialize_ser_windows):
3953 Remove unused variables.
3954 * symtab.c (find_pc_sect_line): Remove unused variable.
3955 * target-memory.c (compute_garbled_blocks): Remove unused
3957 (target_write_memory_blocks): Remove unused variable.
3958 * target.c (target_stack::unpush): Remove unused variables.
3959 * tracepoint.c (start_tracing, all_tracepoint_actions)
3960 (merge_uploaded_trace_state_variables)
3961 (print_one_static_tracepoint_marker): Remove unused variable.
3962 * unittests/basic_string_view/element_access/char/1.cc (test01):
3963 Remove unused variable.
3964 * windows-nat.c (windows_continue, windows_add_all_dlls)
3965 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3966 Remove unused variables.
3968 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3970 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3971 attr_profile in HAVE_ELF.
3972 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
3975 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
3977 * frame.c (frame_register_unwind): Change parameter name.
3978 (frame_unwind_register): Likewise.
3979 (frame_unwind_register_value): Likewise.
3980 (frame_unwind_register_signed): Likewise.
3981 (frame_unwind_register_unsigned): Likewise.
3982 * frame.h (frame_register_unwind): Likewise.
3983 (frame_unwind_register): Likewise.
3984 (frame_unwind_register_value): Likewise.
3985 (frame_unwind_register_signed): Likewise.
3986 (frame_unwind_register_unsigned): Likewise.
3987 (frame_unwind_arch): Likewise.
3989 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3991 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
3994 2018-07-20 Maciej W. Rozycki <macro@mips.com>
3996 * mips-linux-nat.c (mips_linux_nat_target::read_description):
3997 Call `get_ptrace_pid' rather than extracting the ptrace PID by
4000 2018-07-20 Keith Seitz <keiths@redhat.com>
4002 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
4003 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
4004 m_compunit_symtab, m_language>: Add "m_" prefix.
4006 * buildsym.c: Update all uses.
4008 2018-07-20 Tom Tromey <tom@tromey.com>
4010 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
4011 * buildsym.h (record_line_ftype): Remove typedef.
4013 2018-07-20 Tom Tromey <tom@tromey.com>
4015 * buildsym-legacy.h (augment_type_symtab): Don't declare.
4016 (end_expandable_symtab): Likewise.
4017 (end_symtab_get_static_block): Likewise.
4018 (end_symtab_from_static_block): Likewise.
4019 * buildsym-legacy.c (augment_type_symtab): Remove.
4020 (end_expandable_symtab): Remove.
4021 (end_symtab_get_static_block): Remove.
4022 (end_symtab_from_static_block): Remove.
4024 2018-07-20 Tom Tromey <tom@tromey.com>
4026 * dwarf2read.c: Include buildsym.h.
4027 (struct dwarf2_cu) <builder>: New method.
4028 (fixup_go_packaging): Update.
4029 (process_full_comp_unit, process_full_type_unit): Update. Don't
4030 use scoped_free_pendings.
4031 (using_directives): Add "cu" parameter, remove "language".
4032 (read_import_statement, setup_type_unit_groups, )
4033 (read_func_scope, read_lexical_block_scope)
4034 (dwarf2_record_block_ranges, read_namespace): Update.
4035 (lnp_state_machine::lnp_state_machine): Add cu parameter.
4036 (lnp_state_machine::handle_end_sequence): Update.
4037 (class lnp_state_machine) <m_cu>: New member.
4038 <m_record_line_callback>: Remove.
4039 <m_currently_recording_lines>: New member.
4040 (lnp_state_machine::handle_set_file): Update.
4041 (noop_record_line): Remove.
4042 (dwarf_record_line_p): Add cu parameter.
4043 (dwarf_record_line_1, dwarf_finish_line): Likewise.
4044 (lnp_state_machine::record_line)
4045 (lnp_state_machine::lnp_state_machine)
4046 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4047 (dwarf_decode_lines): Update.
4048 (dwarf2_start_subfile): Add cu parameter.
4049 (dwarf2_start_symtab, new_symbol): Update.
4050 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
4051 Remove dwarf2_per_objfile parameter.
4052 (dwarf_decode_macros): Update.
4054 2018-07-20 Tom Tromey <tom@tromey.com>
4056 * stabsread.c (define_symbol): Update.
4057 * buildsym-legacy.h (get_buildsym_compunit): Declare.
4058 * dwarf2read.c (new_symbol): Update.
4059 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
4060 * cp-namespace.c: Include buildsym.h.
4061 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
4062 * buildsym-legacy.c (get_buildsym_compunit): New function.
4064 2018-07-20 Tom Tromey <tom@tromey.com>
4066 * xcoffread.c: Include buildsym-legacy.h.
4067 * windows-nat.c: Include buildsym-legacy.h.
4068 * stabsread.c: Include buildsym-legacy.h.
4069 * mdebugread.c: Include buildsym-legacy.h.
4070 * buildsym-legacy.h: New file.
4071 * buildsym-legacy.c: New file, from buildsym.c.
4072 * go32-nat.c: Include buildsym-legacy.h.
4073 * dwarf2read.c: Include buildsym-legacy.h.
4074 * dbxread.c: Include buildsym-legacy.h.
4075 * cp-namespace.c: Include buildsym-legacy.h.
4076 * coffread.c: Include buildsym-legacy.h.
4077 * buildsym.h: Move some contents to buildsym-legacy.h.
4078 * buildsym.c: Include buildsym-legacy.h. Move many functions to
4080 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
4082 2018-07-20 Tom Tromey <tom@tromey.com>
4084 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
4085 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
4086 (buildsym_compunit::buildsym_compunit)
4087 (buildsym_compunit::~buildsym_compunit)
4088 (buildsym_compunit::get_macro_table): Define.
4090 2018-07-20 Tom Tromey <tom@tromey.com>
4092 * buildsym.c (reset_symtab_globals): Remove.
4093 (buildsym_compunit::end_symtab_from_static_block): Update.
4094 (buildsym_compunit::augment_type_symtab): Update.
4095 (end_symtab_from_static_block): Call free_buildsym_compunit.
4096 (augment_type_symtab, end_symtab, end_expandable_symtab):
4099 2018-07-20 Tom Tromey <tom@tromey.com>
4101 * arch-utils.c: Do not include buildsym.h.
4102 * mipsread.c: Do not include buildsym.h.
4103 * machoread.c: Do not include buildsym.h.
4104 * elfread.c: Do not include buildsym.h.
4106 2018-07-20 Tom Tromey <tom@tromey.com>
4108 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
4110 (buildsym_compunit): Add new constructor.
4111 (struct buildsym_compunit) <get_last_source_file, finish_block,
4112 record_block_range, start_subfile, patch_subfile_names,
4113 push_subfile, pop_subfile, record_line, get_compunit_symtab,
4114 set_last_source_start_addr, get_last_source_start_addr,
4115 get_local_using_directives, set_local_using_directives,
4116 get_global_using_directives, outermost_context_p,
4117 get_current_context_stack, get_context_stack_depth,
4118 get_current_subfile, get_local_symbols, get_file_symbols,
4119 get_global_symbols, record_debugformat, record_producer,
4120 push_context, pop_context, end_symtab_get_static_block,
4121 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
4123 <record_pending_block, finish_block_internal, make_blockvector,
4124 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
4128 2018-05-22 Tom Tromey <tom@tromey.com>
4130 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4132 (finish_block_internal): Update.
4134 2018-07-20 Tom Tromey <tom@tromey.com>
4136 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4138 (finish_block_internal): Update.
4140 2018-07-20 Tom Tromey <tom@tromey.com>
4142 * buildsym.h (EXTERN): Don't define or undef.
4143 * buildsym.c (EXTERN): Don't define.
4145 2018-07-20 Tom Tromey <tom@tromey.com>
4147 * buildsym.c: Remove TODO comment.
4149 2018-07-20 Tom Tromey <tom@tromey.com>
4151 * coffread.c (coff_symtab_read): Update.
4152 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4153 (xcoff_new_init): Update.
4154 * mipsread.c (mipscoff_new_init): Update.
4155 * mdebugread.c (mdebug_build_psymtabs): Update.
4156 * elfread.c (elf_new_init): Update.
4157 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4159 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
4160 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4161 (stabsect_build_psymtabs): Update.
4162 * buildsym.h (buildsym_init): Don't declare.
4163 * buildsym.c: Update comment.
4164 (prepare_for_building): Remove.
4165 (start_symtab, restart_symtab): Update.
4166 (reset_symtab_globals): Update comment.
4167 (buildsym_init): Remove.
4169 2018-07-20 Tom Tromey <tom@tromey.com>
4171 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
4172 * stabsread.c (patch_block_stabs, define_symbol, read_type)
4173 (read_enum_type, common_block_start, common_block_end)
4174 (cleanup_undefined_types_1, finish_global_stabs): Update.
4175 * mdebugread.c (psymtab_to_symtab_1): Update.
4176 * dwarf2read.c (fixup_go_packaging, read_func_scope)
4177 (read_lexical_block_scope, new_symbol): Update.
4178 * dbxread.c (process_one_symbol): Update.
4179 * coffread.c (coff_symtab_read, process_coff_symbol)
4180 (coff_read_enum_type): Update.
4181 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
4183 (get_local_symbols, get_file_symbols, get_global_symbols): New
4185 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
4187 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
4188 (~scoped_free_pendings): Update.
4189 (finish_block, prepare_for_building, reset_symtab_globals)
4190 (end_symtab_get_static_block, end_symtab_with_blockvector)
4191 (augment_type_symtab, push_context): Update.
4192 (get_local_symbols, get_file_symbols, get_global_symbols): New
4194 (buildsym_init): Update.
4196 2018-07-20 Tom Tromey <tom@tromey.com>
4198 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
4199 (process_full_type_unit): Likewise.
4200 (dwarf2_start_symtab): Set list_in_scope.
4202 2018-07-20 Tom Tromey <tom@tromey.com>
4204 * dwarf2read.c (process_psymtab_comp_unit_reader)
4205 (build_type_psymtabs_reader): Do not set list_in_scope.
4207 2018-07-20 Tom Tromey <tom@tromey.com>
4209 * buildsym.c (free_pendings): Remove.
4210 (add_symbol_to_list, scoped_free_pendings)
4211 (finish_block_internal, buildsym_init): Update.
4213 2018-07-20 Tom Tromey <tom@tromey.com>
4215 * xcoffread.c (read_xcoff_symtab): Update.
4216 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
4218 * dbxread.c (process_one_symbol): Update.
4219 * coffread.c (coff_symtab_read): Update.
4220 * buildsym.h (finish_block): Update.
4221 * buildsym.c (finish_block): Remove "listhead" argument.
4222 (end_symtab_get_static_block): Update.
4224 2018-07-20 Tom Tromey <tom@tromey.com>
4226 * buildsym.h (class scoped_free_pendings): Remove constructor.
4227 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
4229 <m_pending_block_obstack, m_pending_blocks>: New members.
4230 (pending_block_obstack, pending_blocks): Remove.
4231 (scoped_free_pendings::scoped_free_pendings): Default.
4232 (~scoped_free_pendings): Update.
4233 (free_pending_blocks): Remove.
4234 (finish_block_internal, record_pending_block, make_blockvector)
4235 (end_symtab_get_static_block, augment_type_symtab, push_context)
4236 (buildsym_init): Update.
4238 2018-07-20 Tom Tromey <tom@tromey.com>
4240 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
4241 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
4243 (pending_addrmap, pending_addrmap_obstack)
4244 (pending_addrmap_interesting): Remove.
4245 (scoped_free_pendings, record_block_range, make_blockvector)
4246 (prepare_for_building, reset_symtab_globals, buildsym_init):
4249 2018-07-20 Tom Tromey <tom@tromey.com>
4251 * xcoffread.c (process_linenos): Update.
4252 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
4253 * mdebugread.c (psymtab_to_symtab_1): Update.
4254 * dwarf2read.c (setup_type_unit_groups)
4255 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
4256 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
4257 * dbxread.c (process_one_symbol): Update.
4258 * coffread.c (coff_symtab_read, enter_linenos)
4259 (process_coff_symbol): Update.
4260 * buildsym.h (current_subfile): Don't declare.
4261 (get_current_subfile): Declare.
4262 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
4264 (start_subfile, free_buildsym_compunit, push_subfile)
4265 (prepare_for_building, start_symtab): Update.
4266 (get_current_subfile): New function.
4268 2018-07-20 Tom Tromey <tom@tromey.com>
4270 * coffread.c (coff_symtab_read): Update.
4271 * xcoffread.c (read_xcoff_symtab): Update.
4272 * dwarf2read.c (new_symbol): Update.
4273 (read_func_scope, read_lexical_block_scope): Update.
4274 * dbxread.c (process_one_symbol): Update.
4275 * buildsym.h (context_stack, context_stack_depth): Don't declare.
4276 (outermost_context_p): Remove macro.
4277 (outermost_context_p, get_current_context_stack)
4278 (get_context_stack_depth): Declare.
4279 (pop_context): Return struct context_stack.
4280 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
4282 (context_stack_size): Remove.
4283 (INITIAL_CONTEXT_STACK_SIZE): Remove.
4284 (prepare_for_building, end_symtab_get_static_block)
4285 (augment_type_symtab, push_context): Update.
4286 (pop_context): Return struct context_stack.
4287 (outermost_context_p, get_current_context_stack)
4288 (get_context_stack_depth): New functions.
4289 (buildsym_init): Update.
4291 2018-07-20 Tom Tromey <tom@tromey.com>
4293 * rust-exp.y: Now a pure parser. Update all rules.
4294 (%union): Move earlier.
4295 (current_parser, work_obstack): Remove globals.
4296 (rust_parser, ~rust_parser): Update.
4297 (class rust_parser) <copy_name, concat3, crate_name, super_name,
4298 lex_character, lex_number, lex_string, lex_identifier,
4299 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
4300 convert_name, convert_params_to_expression,
4301 convert_ast_to_expression, ast_basic_type, ast_operation,
4302 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
4303 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
4304 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
4305 ast_array_type, ast_slice_type, ast_reference_type,
4306 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
4307 (rust_parse): Update.
4308 (rustyyerror, rustyylex): Add parser parameter.
4309 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
4310 (rust_lex_stringish_test, rust_lex_test_sequence)
4311 (rust_lex_test_trailing_dot, rust_lex_test_completion)
4312 (rust_lex_test_push_back, rust_lex_tests): Update.
4314 2018-07-19 Pedro Alves <palves@redhat.com>
4316 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
4317 gdb::unique_xmalloc_ptr.
4318 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
4319 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
4320 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
4321 copy-initialization.
4322 * guile/scm-pretty-print.c (ppscm_print_children): Use
4323 gdb::unique_xmalloc_ptr instead of cleanups.
4324 (gdbscm_apply_val_pretty_printer): Remove cleanups.
4325 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
4326 gdb::unique_xmalloc_ptr.
4327 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4328 Adjust to use gdb::unique_xmalloc_ptr.
4329 * guile/scm-utils.c (extract_arg): Adjust.
4330 * guile/scm-value.c (gdbscm_value_field): Adjust to use
4331 gdb::unique_xmalloc_ptr instead of a cleanup.
4333 2018-07-19 Tom Tromey <tom@tromey.com>
4335 * utils.c (do_value_free_to_mark)
4336 (make_cleanup_value_free_to_mark): Remove.
4337 * utils.h (make_cleanup_value_free_to_mark): Remove.
4339 2018-07-19 Pedro Alves <palves@redhat.com>
4341 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
4342 forwarding reference.
4344 2018-07-18 Pedro Alves <palves@redhat.com>
4346 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
4347 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
4350 2018-07-18 Pedro Alves <palves@redhat.com>
4352 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
4354 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
4356 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
4357 directly instead of a cleanup.
4358 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
4359 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
4360 (vlscm_binop_gdbthrow): New, factored out from ...
4361 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
4362 (vlscm_rich_compare): Use gdbscm_wrap.
4363 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
4364 instead of a cleanup.
4365 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
4367 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4368 Use xfree directly instead of a cleanup.
4369 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
4370 Adjust to use gdbscm_wrap and scoped_value_mark.
4371 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
4372 (gdbscm_value_address, gdbscm_value_dereference)
4373 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
4375 (gdbscm_value_dynamic_type): Use scoped_value_mark.
4376 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
4378 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
4379 gdbscm_wrap and scoped_value_mark.
4380 (gdbscm_value_to_string): Use xfree directly instead of a
4381 cleanup. Move 'buffer' unique_ptr to TRY scope.
4382 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
4383 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
4385 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
4386 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
4388 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
4391 2018-07-18 Tom de Vries <tdevries@suse.de>
4393 * findvar.c (default_read_var_value): Also resolve dynamic type for
4394 LOC_OPTIMIZED_OUT vars.
4396 2018-07-18 Maciej W. Rozycki <macro@mips.com>
4398 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
4401 2018-07-17 Tom Tromey <tom@tromey.com>
4403 * guile/scm-param.c (pascm_set_func, pascm_show_func)
4404 (compute_enum_list, pascm_set_param_value_x)
4405 (gdbscm_parameter_value): Update.
4406 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
4407 (gdbscm_scm_to_host_string): Update.
4408 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
4410 * guile/scm-cmd.c (cmdscm_add_completion): Update.
4411 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
4412 * guile/scm-string.c (gdbscm_scm_to_string): Return
4414 (gdbscm_scm_to_host_string): Likewise.
4416 2018-07-17 Tom Tromey <tom@tromey.com>
4418 * guile/guile.c (gdbscm_eval_from_control_command): Update.
4419 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
4420 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
4421 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
4424 2018-07-17 Tom Tromey <tom@tromey.com>
4426 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4427 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4429 * guile/scm-cmd.c (cmdscm_function): Update.
4430 * guile/scm-pretty-print.c
4431 (ppscm_print_exception_unless_memory_error): Update.
4432 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4433 Return unique_xmalloc_ptr.
4435 2018-07-17 Tom Tromey <tom@tromey.com>
4437 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4440 2018-07-17 Jim Wilson <jimw@sifive.com>
4442 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4443 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4444 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4445 unecessary braces after EF_RISCV_RVC test. Delete call to
4446 set_gdbarch_decr_pc_after_break.
4448 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4449 RISCV_LAST_FP_REGNUM + 1.
4450 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4452 2018-07-17 Tom Tromey <tom@tromey.com>
4454 * configure.ac: Remove --disable-gdbcli.
4455 * configure: Rebuild.
4456 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4457 (SUBDIR_CLI_CFLAGS): Remove.
4458 (SFILES): Use SUBDIR_CLI_SRCS.
4459 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4461 2018-07-17 Tom Tromey <tom@tromey.com>
4464 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4466 2018-07-16 Jim Wilson <jimw@sifive.com>
4468 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4470 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4472 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4474 (libunwind_frame_sniffer): Likewise.
4475 (libunwind_frame_prev_register): Likewise.
4476 (libunwind_sigtramp_frame_sniffer): Likewise.
4477 * ia64-tdep.c (ia64_access_reg): Likewise.
4478 (ia64_access_rse_reg): Likewise.
4479 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4480 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4482 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4484 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4486 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4488 * remote-sim.c (gdbsim_target::close,
4489 gdbsim_target::mourn_inferior): Remove unused variables.
4491 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4493 * ia64-tdep.c (ktab_buf): New global.
4494 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4495 (get_kernel_table): Adjust.
4497 2018-07-16 Tom Tromey <tom@tromey.com>
4499 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4500 * dwarf2read.c (using_directives, new_symbol): Use
4501 outermost_context_p.
4502 * dbxread.c (process_one_symbol): Use outermost_context_p.
4503 * coffread.c (coff_symtab_read): Use outermost_context_p.
4505 2018-07-16 Tom Tromey <tom@tromey.com>
4507 * dwarf2read.c (using_directives, read_func_scope)
4508 (read_lexical_block_scope): Update.
4509 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4510 * buildsym.h (local_using_directives, global_using_directives):
4512 (get_local_using_directives, set_local_using_directives)
4513 (get_global_using_directives): Declare.
4514 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4515 m_global_using_directives>: New members.
4516 (finish_block_internal, prepare_for_building)
4517 (reset_symtab_globals, end_symtab_get_static_block)
4518 (push_context): Update.
4519 (get_local_using_directives, set_local_using_directives)
4520 (get_global_using_directives): New functions.
4521 (buildsym_init): Update.
4523 2018-07-16 Tom Tromey <tom@tromey.com>
4525 * xcoffread.c (xcoff_initial_scan): Don't call
4526 free_pending_blocks.
4527 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4528 * buildsym.h (class scoped_free_pendings): Add constructor.
4529 (free_pending_blocks): Don't declare.
4530 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4531 (free_pending_blocks): Now static.
4533 2018-07-16 Tom Tromey <tom@tromey.com>
4535 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4536 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4538 (struct subfile_stack): Remove.
4539 (subfile_stack): Remove.
4540 (push_subfile, pop_subfile, buildsym_init): Update.
4542 2018-07-16 Tom Tromey <tom@tromey.com>
4544 * buildsym.c (push_subfile): Use gdb_assert.
4545 (pop_subfile): Use gdb_assert.
4547 2018-07-16 Tom Tromey <tom@tromey.com>
4549 * buildsym.h (merge_symbol_lists): Remove.
4550 * buildsym.c (merge_symbol_lists): Remove.
4552 2018-07-16 Tom Tromey <tom@tromey.com>
4554 * stabsread.c (scan_file_globals): Update comment.
4555 * stabsread.h (scan_file_globals): Move from buildsym.h.
4556 * buildsym.h (scan_file_globals): Move to stabsread.h.
4558 2018-07-16 Tom Tromey <tom@tromey.com>
4560 * xcoffread.c (xcoff_new_init): Update.
4561 * mipsread.c (mipscoff_new_init): Update.
4562 * mdebugread.c (mdebug_build_psymtabs): Update.
4563 * elfread.c (elf_new_init): Update.
4564 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4565 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4566 * buildsym.h (buildsym_new_init): Don't declare.
4567 * buildsym.c (buildsym_new_init): Remove.
4569 2018-07-16 Tom Tromey <tom@tromey.com>
4571 * stabsread.h (within_function): Move from buildsym.h.
4572 * stabsread.c (start_stabs): Clear within_function.
4573 * coffread.c (coff_start_symtab): Clear within_function.
4574 * buildsym.h (within_function): Move to stabsread.h.
4575 * buildsym.c (prepare_for_building): Update.
4577 2018-07-16 Tom Tromey <tom@tromey.com>
4579 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4580 * dwarf2read.c (dwarf2_start_symtab): Don't set
4581 processing_gcc_compilation.
4582 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4584 2018-07-16 Tom Tromey <tom@tromey.com>
4586 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4587 (next_symbol_text_func): Move from buildsym.h.
4588 * stabsread.c (hashname): Move from buildsym.c.
4589 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4590 (next_symbol_text_func, hashname): Move to stabsread.h.
4591 * buildsym.c: Don't include bcache.h
4592 (hashname): Move to stasbread.c.
4594 2018-07-16 Tom Tromey <tom@tromey.com>
4596 * buildsym.h (context_stack_size): Don't declare.
4597 * buildsym.c (context_stack_size): New global.
4599 2018-07-16 Tom Tromey <tom@tromey.com>
4601 * dbxread.c (processing_acc_compilation): New global.
4602 * buildsym.h (processing_acc_compilation): Don't declare.
4604 2018-07-16 Tom Tromey <tom@tromey.com>
4606 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4607 * dbxread.c (read_ofile_symtab): Update.
4608 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4609 * buildsym.h (last_source_start_addr): Remove.
4610 (set_last_source_start_addr, get_last_source_start_addr):
4612 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4614 (struct buildsym_compunit) <m_last_source_start_addr>: New
4616 (prepare_for_building): Remove start_addr parameter.
4617 (start_symtab, restart_symtab, end_symtab_get_static_block)
4618 (end_symtab_with_blockvector): Update.
4619 (set_last_source_start_addr, get_last_source_start_addr): New
4622 2018-07-16 Tom Tromey <tom@tromey.com>
4624 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4626 (have_line_numbers): Remove.
4627 (record_line, prepare_for_building, end_symtab_get_static_block)
4628 (augment_type_symtab): Update.
4630 2018-07-16 Tom Tromey <tom@tromey.com>
4632 * buildsym.c (~buildsym_compunit): Free the macro table.
4633 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4635 <m_pending_macros>: New member.
4636 (pending_macros): Remove.
4637 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4638 (reset_symtab_globals, end_symtab_get_static_block)
4639 (end_symtab_with_blockvector, augment_type_symtab)
4640 (buildsym_init): Update.
4642 2018-07-16 Tom Tromey <tom@tromey.com>
4644 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4646 (buildsym_compunit::set_last_source_file): New method.
4647 <m_last_source_file>: New member.
4648 (prepare_for_building): Remove "name" parameter.
4649 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4650 (last_source_file): Remove.
4651 (set_last_source_file, get_last_source_file): Update.
4653 2018-07-16 Tom Tromey <tom@tromey.com>
4655 * buildsym.c (prepare_for_building): Add assert.
4657 2018-07-16 Tom Tromey <tom@tromey.com>
4659 * buildsym.c (~buildsym_compunit): Update.
4660 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4661 (start_subfile, patch_subfile_names)
4662 (end_symtab_with_blockvector): Update.
4664 2018-07-16 Tom Tromey <tom@tromey.com>
4666 * buildsym.c (struct buildsym_compunit): Add constructor,
4667 destructor, initializers.
4668 (start_buildsym_compunit): Remove.
4669 (free_buildsym_compunit): Use "delete".
4670 (start_symtab, restart_symtab): Use "new".
4672 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4674 * symfile.c (set_objfile_default_section_offset): Remove struct
4677 2018-07-14 Stafford Horne <shorne@gmail.com>
4679 * (Responsible Maintainers): Add myself as or1k maintainer.
4681 2018-07-13 Tom Tromey <tom@tromey.com>
4683 * symfile.c (set_objfile_default_section_offset): Use extra braces
4686 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4688 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4691 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4693 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4694 unittests/cli-utils-selftests.c
4695 * unittests/cli-utils-selftests.c: New file.
4697 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4699 * NEWS: Mention new commands. Mention change to 'thread apply'.
4701 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4703 * thread.c (thr_try_catch_cmd): New function.
4704 (thread_apply_all_command): Handle qcs flags.
4705 (thread_apply_command): Handle qcs flags.
4706 (taas_command): New function.
4707 (tfaas_command): New function.
4708 (_initialize_thread): Update to setup the new commands 'taas
4709 and 'tfaas'. Change doc string for 'thread apply'.
4711 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4713 * stack.c: (trailing_outermost_frame): New function, mostly
4714 extracted from backtrace_command_1.
4715 (leading_innermost_frame): New function.
4716 (backtrace_command_1): Update to call trailing_outermost_frame.
4717 (frame_apply_command_count): New function.
4718 (frame_apply_level_command): New function.
4719 (frame_apply_all_command): New function.
4720 (frame_apply_command): New function.
4721 (faas_command): New function.
4722 (frame_cmd_list): New variable.
4723 (_initialize_stack): Update to setup the new commands 'frame apply'
4726 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4728 * cli-utils.c (number_or_range_parser::get_number): Only handle
4729 numbers or convenience var as numbers.
4730 (parse_flags): New function.
4731 (parse_flags_qcs): New function.
4732 (number_or_range_parser::finished): Ensure parsing end is detected
4733 before end of string.
4734 * cli-utils.h (parse_flags): New function.
4735 (parse_flags_qcs): New function.
4736 (number_or_range_parser): Remove m_finished bool.
4737 (number_or_range_parser::skip_range): Set m_in_range to false.
4739 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4741 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4744 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4745 Jan Kratochvil <jan.kratochvil@redhat.com>
4746 Paul Fertser <fercerpav@gmail.com>
4747 Tsutomu Seki <sekiriki@gmail.com>
4748 Pedro Alves <palves@redhat.com>
4750 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4751 'unittests/parse-connection-spec-selftests.c'.
4752 (COMMON_SFILES): Add 'common/netstuff.c'.
4753 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4754 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4755 * common/netstuff.c: New file.
4756 * common/netstuff.h: New file.
4757 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4758 (wait_for_connect): Update comment. New parameter
4759 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4760 Use 'sock' directly instead of 'scb->fd'.
4761 (try_connect): New function, with code from 'net_open'.
4762 (net_open): Rewrite main loop to deal with multiple
4763 sockets/addresses. Handle IPv6-style hostnames; implement
4764 support for IPv6 connections.
4765 * unittests/parse-connection-spec-selftests.c: New file.
4767 2018-07-11 Pedro Alves <palves@redhat.com>
4770 * remote.c (remote_target::remote_detach_pid): Call
4771 set_current_process.
4773 2018-07-11 Pedro Alves <palves@redhat.com>
4775 * h8300-tdep.c (h8300_gdbarch_init): Remove
4776 set_gdbarch_ecoff_reg_to_regnum calls.
4778 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4781 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4782 offsets/sizes for static members of a class/struct.
4784 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4786 * target-descriptions.c (tdesc_register_bitsize): Rename.
4787 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4788 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4789 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4791 2018-07-10 Tom Tromey <tom@tromey.com>
4793 * breakpoint.c (moribund_locations): Now static and a
4795 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4796 (build_bpstat_chain, update_global_location_list)
4797 (breakpoint_retire_moribund): Update.
4798 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4801 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4803 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4804 (riscv_register_reggroup_p): Use new function, remove unneeded
4806 (riscv_push_dummy_call): Extend assert to compare against xlen or
4807 flen based on register type.
4809 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4811 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4813 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4815 * remote.c (show_hardware_watchpoint_limit): New function.
4816 (show_hardware_watchpoint_length_limit): New function.
4817 (show_hardware_breakpoint_limit): New function.
4818 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4819 where appropriate, update help text.
4821 2018-07-09 Tom Tromey <tom@tromey.com>
4823 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4824 (CLIBS): Don't mention NAT_CLIBS.
4826 2018-07-09 Tom Tromey <tom@tromey.com>
4828 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4829 (LIBGDB_OBS, clean mostlyclean): Update.
4830 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4832 2018-07-09 Tom Tromey <tom@tromey.com>
4834 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4835 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4836 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4838 2018-07-09 Tom Tromey <tom@tromey.com>
4840 * Makefile.in (ALLDEPFILES): Remove exec.c.
4841 (COMMON_OBS): Remove exec.o.
4842 (COMMON_SFILES): Add exec.c.
4844 2018-07-09 Tom Tromey <tom@tromey.com>
4846 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4848 2018-07-09 Tom Tromey <tom@tromey.com>
4850 * Makefile.in (clean mostlyclean): Remove stamp-version.
4851 (version.c): Depend on stamp-version.
4852 (stamp-version): New rule, from version.c rule.
4854 2018-07-09 Tom Tromey <tom@tromey.com>
4856 * Makefile.in (init.c): Depend on stamp-init.
4857 (stamp-init): New rule, from init.c rule.
4858 (clean mostlyclean): Remove stamp-init.
4860 2018-07-09 Tom Tromey <tom@tromey.com>
4862 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4863 SUBDIR_GCC_COMPILE_SRCS.
4865 2018-07-09 Tom Tromey <tom@tromey.com>
4867 * Makefile.in (init.c): Remove some unused sed rules.
4869 2018-07-09 Tom Tromey <tom@tromey.com>
4871 * Makefile.in (TSOBS): Remove.
4872 (INIT_FILES): Update.
4873 (LIBGDB_OBS): Update.
4874 (COMMON_SFILES): Add inflow.c.
4875 (SFILES): Remove inflow.c.
4877 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4879 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4881 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4883 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4884 get_saveloc_name, is_signal_frame_name, step_name,
4885 init_remote_name, create_addr_space_name,
4886 destroy_addr_space_name, search_unwind_table_name,
4887 find_dyn_list_name): Constify.
4889 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4891 * darwin-nat.c (darwin_pthread_kill): New function.
4892 (darwin_resume_thread): Use darwin_pthread_kill.
4894 2018-07-05 Tom de Vries <tdevries@suse.de>
4896 * macroexp.c (macro_buffer) <operator=>: New member function.
4898 2018-07-04 Tom Tromey <tom@tromey.com>
4900 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4902 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4904 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4905 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4906 * maint.c: Likewise.
4909 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4911 * NEWS: Create a new section for the next release branch.
4912 Rename the section of the current branch, now that it has
4915 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4917 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4918 * version.in: Bump version to 8.2.50.DATE-git.
4920 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4921 Pedro Alves <palves@redhat.com>
4923 * linux-nat.c (linux_init_ptrace): Rename to ...
4924 (linux_init_ptrace_procfs): ... this. Call
4925 linux_proc_init_warnings.
4926 (linux_nat_target::post_attach)
4927 (linux_nat_target::post_startup_inferior): Adjust.
4928 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4929 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4931 2018-07-04 Tom de Vries <tdevries@suse.de>
4933 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4935 (read_comp_unit_head): ... here.
4937 2018-07-03 Tom Tromey <tom@tromey.com>
4939 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4940 (stop_tracing, tstatus_command)
4941 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4942 (print_one_static_tracepoint_marker): Update.
4943 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4945 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4947 (all_tracepoints, static_tracepoints_here): Return std::vector.
4949 2018-07-03 Tom Tromey <tom@tromey.com>
4951 * common/ptid.c (ptid_equal): Remove.
4952 * common/ptid.h (ptid_equal): Don't declare.
4953 * ada-tasks.c: Update.
4954 * breakpoint.c: Update.
4955 * common/agent.c: Update.
4956 * corelow.c: Update.
4957 * darwin-nat-info.c: Update.
4958 * darwin-nat.c: Update.
4960 * dtrace-probe.c: Update.
4961 * dummy-frame.c: Update.
4962 * fbsd-nat.c: Update.
4964 * gdbthread.h: Update.
4965 * gnu-nat.c: Update.
4966 * go32-nat.c: Update.
4967 * inf-loop.c: Update.
4968 * inf-ptrace.c: Update.
4969 * infcall.c: Update.
4973 * linux-fork.c: Update.
4974 * linux-nat.c: Update.
4975 * linux-thread-db.c: Update.
4976 * mi/mi-cmd-var.c: Update.
4977 * mi/mi-interp.c: Update.
4978 * mi/mi-main.c: Update.
4979 * nto-procfs.c: Update.
4980 * ppc-linux-tdep.c: Update.
4982 * python/py-inferior.c: Update.
4983 * python/py-record-btrace.c: Update.
4984 * python/py-record.c: Update.
4985 * ravenscar-thread.c: Update.
4986 * regcache.c: Update.
4987 * remote-sim.c: Update.
4989 * sol-thread.c: Update.
4992 * tui/tui-stack.c: Update.
4994 * windows-nat.c: Update.
4995 * windows-tdep.c: Update.
4997 2018-07-03 Tom Tromey <tom@tromey.com>
4999 * common/ptid.c (ptid_match): Remove.
5000 * common/ptid.h (ptid_match): Don't declare.
5001 * fbsd-nat.c: Update.
5004 * linux-nat.c: Update.
5005 * record-btrace.c: Update.
5006 * regcache.c: Update.
5009 2018-07-03 Tom Tromey <tom@tromey.com>
5011 * common/ptid.c (ptid_tid_p): Remove.
5012 * common/ptid.h (ptid_tid_p): Don't declare.
5013 * sol-thread.c: Update.
5015 2018-07-03 Tom Tromey <tom@tromey.com>
5017 * common/ptid.c (ptid_lwp_p): Remove.
5018 * common/ptid.h (ptid_lwp_p): Don't declare.
5019 * fbsd-nat.c: Update.
5020 * linux-nat.c: Update.
5021 * nat/linux-procfs.c: Update.
5022 * nat/x86-linux-dregs.c: Update.
5023 * sol-thread.c: Update.
5025 2018-07-03 Tom Tromey <tom@tromey.com>
5027 * common/ptid.c (ptid_is_pid): Remove.
5028 * common/ptid.h (ptid_is_pid): Don't declare.
5030 * linux-nat.c: Update.
5031 * mi/mi-interp.c: Update.
5035 2018-07-03 Tom Tromey <tom@tromey.com>
5037 * common/ptid.c (ptid_get_tid): Remove.
5038 * common/ptid.h (ptid_get_tid): Don't declare.
5039 * ada-tasks.c: Update.
5040 * aix-thread.c: Update.
5041 * bsd-uthread.c: Update.
5042 * darwin-nat.c: Update.
5043 * fbsd-nat.c: Update.
5044 * i386-darwin-nat.c: Update.
5046 * linux-tdep.c: Update.
5047 * nto-procfs.c: Update.
5048 * ppc-ravenscar-thread.c: Update.
5049 * python/py-infthread.c: Update.
5050 * ravenscar-thread.c: Update.
5051 * sol-thread.c: Update.
5052 * sparc-ravenscar-thread.c: Update.
5053 * windows-nat.c: Update.
5055 2018-07-03 Tom Tromey <tom@tromey.com>
5057 * common/ptid.c (ptid_get_lwp): Remove.
5058 * common/ptid.h (ptid_get_lwp): Don't declare.
5059 * aarch64-linux-nat.c: Update.
5060 * ada-tasks.c: Update.
5061 * aix-thread.c: Update.
5062 * amd64-linux-nat.c: Update.
5063 * arm-linux-nat.c: Update.
5064 * corelow.c: Update.
5065 * fbsd-nat.c: Update.
5066 * fbsd-tdep.c: Update.
5067 * gnu-nat.c: Update.
5068 * i386-cygwin-tdep.c: Update.
5069 * i386-gnu-nat.c: Update.
5070 * i386-linux-nat.c: Update.
5071 * ia64-linux-nat.c: Update.
5072 * inf-ptrace.c: Update.
5074 * linux-fork.c: Update.
5075 * linux-nat.c: Update.
5076 * linux-tdep.c: Update.
5077 * linux-thread-db.c: Update.
5078 * mips-linux-nat.c: Update.
5079 * nat/aarch64-linux-hw-point.c: Update.
5080 * nat/aarch64-linux.c: Update.
5081 * nat/linux-btrace.c: Update.
5082 * nat/linux-osdata.c: Update.
5083 * nat/linux-procfs.c: Update.
5084 * nat/x86-linux-dregs.c: Update.
5085 * obsd-nat.c: Update.
5086 * ppc-fbsd-nat.c: Update.
5087 * ppc-linux-nat.c: Update.
5089 * python/py-infthread.c: Update.
5090 * ravenscar-thread.c: Update.
5092 * s390-linux-nat.c: Update.
5093 * sol-thread.c: Update.
5094 * sol2-tdep.c: Update.
5095 * spu-linux-nat.c: Update.
5096 * x86-linux-nat.c: Update.
5097 * xtensa-linux-nat.c: Update.
5099 2018-07-03 Tom Tromey <tom@tromey.com>
5101 * common/ptid.c (ptid_get_pid): Remove.
5102 * common/ptid.h (ptid_get_pid): Don't declare.
5103 * aarch64-linux-nat.c: Update.
5104 * ada-lang.c: Update.
5105 * aix-thread.c: Update.
5106 * alpha-bsd-nat.c: Update.
5107 * amd64-fbsd-nat.c: Update.
5108 * amd64-linux-nat.c: Update.
5109 * arm-linux-nat.c: Update.
5110 * arm-nbsd-nat.c: Update.
5112 * break-catch-syscall.c: Update.
5113 * breakpoint.c: Update.
5114 * bsd-uthread.c: Update.
5115 * corelow.c: Update.
5117 * darwin-nat.c: Update.
5118 * fbsd-nat.c: Update.
5119 * fbsd-tdep.c: Update.
5121 * gnu-nat.c: Update.
5122 * hppa-nbsd-nat.c: Update.
5123 * hppa-obsd-nat.c: Update.
5124 * i386-fbsd-nat.c: Update.
5125 * ia64-linux-nat.c: Update.
5126 * inf-ptrace.c: Update.
5128 * inferior.c: Update.
5129 * inferior.h: Update.
5132 * linux-fork.c: Update.
5133 * linux-nat.c: Update.
5134 * linux-tdep.c: Update.
5135 * linux-thread-db.c: Update.
5136 * m68k-bsd-nat.c: Update.
5137 * mi/mi-interp.c: Update.
5138 * mi/mi-main.c: Update.
5139 * mips-linux-nat.c: Update.
5140 * mips-nbsd-nat.c: Update.
5141 * mips64-obsd-nat.c: Update.
5142 * nat/aarch64-linux-hw-point.c: Update.
5143 * nat/aarch64-linux.c: Update.
5144 * nat/linux-btrace.c: Update.
5145 * nat/linux-osdata.c: Update.
5146 * nat/linux-procfs.c: Update.
5147 * nat/x86-linux-dregs.c: Update.
5148 * nto-procfs.c: Update.
5149 * obsd-nat.c: Update.
5150 * ppc-linux-nat.c: Update.
5151 * ppc-nbsd-nat.c: Update.
5152 * ppc-obsd-nat.c: Update.
5153 * proc-service.c: Update.
5155 * python/py-inferior.c: Update.
5156 * python/py-infthread.c: Update.
5157 * ravenscar-thread.c: Update.
5159 * remote-sim.c: Update.
5161 * rs6000-nat.c: Update.
5162 * s390-linux-nat.c: Update.
5163 * sh-nbsd-nat.c: Update.
5164 * sol-thread.c: Update.
5165 * sparc-nat.c: Update.
5166 * sparc64-tdep.c: Update.
5167 * spu-linux-nat.c: Update.
5168 * spu-tdep.c: Update.
5169 * target-debug.h: Update.
5172 * tid-parse.c: Update.
5173 * tracefile-tfile.c: Update.
5174 * vax-bsd-nat.c: Update.
5175 * windows-nat.c: Update.
5176 * x86-linux-nat.c: Update.
5177 * x86-nat.c: Update.
5179 2018-07-03 Tom Tromey <tom@tromey.com>
5181 * common/ptid.c (pid_to_ptid): Remove.
5182 * common/ptid.h (pid_to_ptid): Don't declare.
5183 * aix-thread.c: Update.
5184 * arm-linux-nat.c: Update.
5185 * common/ptid.c: Update.
5186 * common/ptid.h: Update.
5187 * corelow.c: Update.
5189 * darwin-nat.c: Update.
5190 * fbsd-nat.c: Update.
5191 * fork-child.c: Update.
5192 * gnu-nat.c: Update.
5193 * go32-nat.c: Update.
5194 * inf-ptrace.c: Update.
5196 * inferior.c: Update.
5198 * linux-fork.c: Update.
5199 * linux-nat.c: Update.
5200 * nat/aarch64-linux-hw-point.c: Update.
5201 * nat/fork-inferior.c: Update.
5202 * nat/x86-linux-dregs.c: Update.
5203 * nto-procfs.c: Update.
5204 * obsd-nat.c: Update.
5206 * progspace.c: Update.
5208 * rs6000-nat.c: Update.
5209 * s390-linux-nat.c: Update.
5210 * sol-thread.c: Update.
5211 * spu-linux-nat.c: Update.
5214 * tracefile-tfile.c: Update.
5215 * windows-nat.c: Update.
5217 2018-07-03 Tom Tromey <tom@tromey.com>
5219 * common/ptid.h (ptid_build): Don't declare.
5220 * common/ptid.c (ptid_build): Remove.
5221 * aix-thread.c: Update.
5222 * bsd-kvm.c: Update.
5223 * bsd-uthread.c: Update.
5224 * common/agent.c: Update.
5225 * common/ptid.c: Update.
5226 * common/ptid.h: Update.
5227 * corelow.c: Update.
5228 * darwin-nat.c: Update.
5229 * fbsd-nat.c: Update.
5230 * gnu-nat.c: Update.
5231 * linux-fork.c: Update.
5232 * linux-nat.c: Update.
5233 * linux-thread-db.c: Update.
5234 * nat/linux-osdata.c: Update.
5235 * nat/linux-procfs.c: Update.
5236 * nto-procfs.c: Update.
5237 * obsd-nat.c: Update.
5238 * proc-service.c: Update.
5240 * ravenscar-thread.c: Update.
5241 * remote-sim.c: Update.
5243 * sol-thread.c: Update.
5245 * windows-nat.c: Update.
5247 2018-07-03 Tom Tromey <tom@tromey.com>
5249 * infrun.c (follow_exec): Use exit_inferior_silent.
5250 * inferior.c (exit_inferior_num_silent): Remove.
5251 * inferior.h (exit_inferior_num_silent): Don't declare.
5253 2018-07-03 Tom Tromey <tom@tromey.com>
5256 * darwin-nat.c (darwin_attach_pid): Reset inferior and
5257 inferior_ptid on error.
5259 2018-07-02 Maciej W. Rozycki <macro@mips.com>
5260 Simon Marchi <simon.marchi@polymtl.ca>
5263 * disasm.h (gdb_disassembler): Add
5264 `m_disassembler_options_holder'. member
5265 * disasm.c (get_all_disassembler_options): New function.
5266 (gdb_disassembler::gdb_disassembler): Use it.
5267 (gdb_buffered_insn_length_init_dis): Likewise.
5268 (gdb_buffered_insn_length): Adjust accordingly.
5269 (set_disassembler_options): Handle options with arguments.
5270 (show_disassembler_options_sfunc): Likewise. Add a leading new
5271 line if showing options with descriptions.
5272 (disassembler_options_completer): Adapt to using the
5273 `disasm_options_and_args_t' structure.
5274 * mips-tdep.c (mips_disassembler_options): New variable.
5275 (mips_disassembler_options_o32): Likewise.
5276 (mips_disassembler_options_n32): Likewise.
5277 (mips_disassembler_options_n64): Likewise.
5278 (gdb_print_insn_mips): Don't set `disassembler_options'.
5279 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
5281 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
5282 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
5283 `gdbarch_disassembler_options_implicit' and
5284 `gdbarch_valid_disassembler_options'.
5285 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
5286 `disasm_options_and_args_t' structure.
5287 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
5289 (valid_disassembler_options): Switch from `disasm_options_t' to
5290 the `disasm_options_and_args_t' structure.
5291 * NEWS: Document `set disassembler-options' support for the MIPS
5293 * gdbarch.h: Regenerate.
5294 * gdbarch.c: Regenerate.
5296 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5298 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
5300 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5302 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
5303 parameter in call to amd64_target_description.
5304 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5305 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
5306 (amd64fbsd_init_abi): Likewise.
5307 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5308 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5309 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5310 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
5312 2018-06-29 Pedro Alves <palves@redhat.com>
5314 * gdb/amd64-tdep.h (amd64_create_target_description): Add
5315 "segments" parameter.
5316 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
5317 (_initialize_amd64_tdep): Update call to
5318 amd64_create_target_description.
5319 (amd64_target_description): Add "segments" parameter. Adjust
5320 the implementation to use it.
5321 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
5322 call to amd64_create_target_description.
5323 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
5324 * gdb/arch/amd64.h (amd64_create_target_description): Add
5325 "segments" register.
5326 * gdb/arch/amd64.c (amd64_create_target_description): Add
5327 "segments" parameter. Call create_feature_i386_64bit_segments
5328 only if SEGMENTS is true.
5329 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
5330 call to amd64_create_target_description.
5332 2018-06-29 Pedro Alves <palves@redhat.com>
5334 * thread.c (thread_target_id_str): New, factored out from ...
5335 (print_thread_info_1): ... here. Use it to compute the max
5336 "Target Id" column width.
5338 2018-06-29 Pedro Alves <palves@redhat.com>
5340 * remote.c (remote_target::extra_thread_info): Delete
5341 'display_buf' and 'n' locals. from the cache, regardless of
5342 packet mechanims is in use. Use cache for qThreadExtra and qP
5345 2018-06-29 Pedro Alves <palves@redhat.com>
5347 * blockframe.c (find_pc_sect_containing_function): New function.
5348 * breakpoint.c (print_breakpoint_location): Don't call
5349 find_pc_sect_function.
5350 * linespec.c (create_sals_line_offset): Record the location's
5352 * linespec.c (convert_address_location_to_sals): Fill in sal's
5353 symbol with find_pc_sect_containing_function.
5354 * symtab.c (find_function_start_sal): Rename to ...
5355 (find_function_start_sal_1): ... this.
5356 (find_function_start_sal): Reimplement as wrapper around
5357 find_function_start_sal_1, and use
5358 find_pc_sect_containing_function to fill in the sal's symbol.
5359 (find_function_start_sal(symbol*, bool)): Adjust.
5360 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
5362 (find_pc_sect_containing_function): Declare.
5364 2018-06-29 Pedro Alves <palves@redhat.com>
5366 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
5367 true if the the location has no symbol.
5369 2018-06-28 Tom Tromey <tom@tromey.com>
5371 * NEWS: Mention --enable-codesign.
5372 * silent-rules.mk (ECHO_SIGN): New variable.
5373 * configure.ac: Add --enable-codesign.
5374 * configure: Rebuild.
5375 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
5376 (gdb$(EXEEXT)): Optionally invoke codesign.
5378 2018-06-28 Pedro Alves <palves@redhat.com>
5380 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
5382 (switch_to_thread_no_regs): Adjust comment.
5383 * infcmd.c (stop_pc): Delete.
5384 (post_create_inferior, info_program_command): Replace references
5385 to stop_pc with references to thread_info->suspend.stop_pc.
5386 * inferior.h (stop_pc): Delete declaration.
5387 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
5388 (handle_inferior_event_1, handle_signal_stop)
5389 (process_event_stop_test, keep_going_stepped_thread)
5390 (handle_step_into_function, handle_step_into_function_backward)
5391 (print_stop_location): Replace references to stop_pc with
5392 references to thread_info->suspend.stop_pc.
5393 (struct infcall_suspend_state) <stop_pc>: Delete field.
5394 (save_infcall_suspend_state, restore_infcall_suspend_state):
5395 Remove references to inf_stat->stop_pc.
5396 * linux-fork.c (fork_load_infrun_state): Likewise.
5397 * record-btrace.c (record_btrace_set_replay): Likewise.
5398 * record-full.c (record_full_goto_entry): Likewise.
5399 * remote.c (print_one_stopped_thread): Likewise.
5400 * target.c (target_resume): Extend comment.
5401 * thread.c (set_executing_thread): New.
5402 (set_executing): Use it.
5403 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
5404 Remove references to stop_pc.
5406 2018-06-28 Pedro Alves <palves@redhat.com>
5408 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
5409 Moving fetching stop_pc until after ecs->event_thread is refreshed.
5411 2018-06-28 Tom Tromey <tom@tromey.com>
5413 * coffread.c (coff_symfile_finish): Update.
5414 * xcoffread.c (xcoff_symfile_finish): Update.
5415 * elfread.c (elf_symfile_finish): Update.
5416 * symfile.h (dwarf2_free_objfile): Don't declare.
5417 * dwarf2read.c (_initialize_dwarf2_read): Use
5418 register_objfile_data_with_cleanup.
5419 (dwarf2_free_objfile): Now static. Change signature.
5421 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5423 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
5424 option "-o" to add-symbol-file-load to add an offset to each
5425 section's load address.
5426 * symfile.c (set_objfile_default_section_offset): New function.
5428 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5430 * symfile.c (add_symbol_file_command): Make sure that sections
5431 with the same name are sorted in the same order.
5433 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5435 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5436 require the second argument. If omitted, load sections at the
5437 addresses specified in the file.
5439 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5441 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5442 (_initialize_symfile): Add option "-o" to symbol-file to add an
5443 offset to each section of the symbol file.
5445 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5447 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5449 2018-06-27 Tom Tromey <tom@tromey.com>
5451 * stack.c (_initialize_stack): Update "func" help text.
5453 2018-06-27 Tom Tromey <tom@tromey.com>
5455 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5457 (unwind_infopy_str, pyuw_create_unwind_info)
5458 (unwind_infopy_add_saved_register, pyuw_sniffer)
5459 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5461 (struct saved_reg): Add constructor.
5462 <value>: Now a gdbpy_ref<>.
5464 2018-06-27 Tom Tromey <tom@tromey.com>
5466 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5468 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5470 * gdb-gdb.py.in: Format using autopep8.
5472 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5474 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5475 (type_lookup_function): Recognize CORE_ADDR values.
5477 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5479 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5482 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5484 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5487 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5489 * gdb-gdb.py: Move to...
5490 * gdb-gdb.py.in: ... here.
5491 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5492 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5494 (distclean): Remove gdb-gdb.py when cleaning.
5495 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5496 * configure: Re-generate.
5498 2018-06-27 Pedro Alves <palves@redhat.com>
5500 * proc-service.c (get_ps_regcache): New.
5501 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5502 (ps_lsetfpregs): Use it.
5504 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5507 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5508 (dwarf_decode_lines_1): Adjust.
5510 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5512 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5514 <info_proc>: Likewise.
5516 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5518 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5519 to windows_fetch_one_register, and only handle the case of
5520 fetching one register. Move the code that reloads the context
5521 and iterates over all registers if R is negative to...
5522 (windows_nat_target::fetch_registers): ... here.
5523 (do_windows_store_inferior_registers): Rename to
5524 windows_store_one_register, and only handle the case of storing
5525 one register. Move the code that handles the case where r is
5527 (windows_nat_target::store_registers) ... here.
5529 2018-06-26 Tom Tromey <tom@tromey.com>
5532 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5533 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5535 (rust_internal_print_type): Add podata parameter.
5536 (rust_print_type): Update.
5538 2018-06-26 Tom Tromey <tom@tromey.com>
5540 * typeprint.h (struct print_offset_data) <update, finish,
5541 maybe_print_hole>: New methods.
5542 <indentation>: New constant.
5543 * typeprint.c (print_offset_data::indentation): Define.
5544 (print_offset_data::maybe_print_hole, print_offset_data::update)
5545 (print_offset_data::finish): Move from c-typeprint.c and rename.
5546 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5547 (print_spaces_filtered_with_print_options): Update.
5548 (c_print_type_union_field_offset, maybe_print_hole)
5549 (c_print_type_struct_field_offset): Move to typeprint.c and
5551 (c_type_print_base_struct_union): Update.
5553 2018-06-25 Pedro Alves <palves@redhat.com>
5555 * gdbthread.h (thread_info_ref, delete_thread)
5556 (delete_thread_silent, first_thread_of_inferior)
5557 (any_thread_of_inferior, switch_to_thread)
5558 (enable_thread_stack_temporaries)
5559 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5560 (get_last_thread_stack_temporary)
5561 (value_in_thread_stack_temporaries, can_access_registers_thread):
5562 Spell out "struct thread_info" instead of just "thread_info".
5563 * inferior.h (notice_new_inferior): Likewise.
5565 2018-06-25 Pedro Alves <palves@redhat.com>
5567 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5568 pass thread_info pointer to delete_thread.
5569 (windows_nat_target::detach): Pass inferior pointer to
5571 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5573 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5574 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5575 and pass a thread_info pointer to delete_thread.
5576 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5577 pass thread_info pointer to delete_thread.
5578 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5579 delete_thread_silent call.
5580 * procfs.c (procfs_target::detach): Pass inferior pointer to
5582 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5583 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5584 delete_thread_silent call.
5585 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5586 pass thread_info pointer to delete_thread.
5587 (windows_nat_target::detach): Pass inferior pointer to
5590 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5592 * regcache.c (readable_regcache::read_part): Fix asserts.
5593 (reg_buffer::raw_collect_part): New function.
5594 (regcache::write_part): Fix asserts.
5595 (reg_buffer::raw_supply_part): New function.
5596 (regcache::transfer_regset_register): New helper function.
5597 (regcache::transfer_regset): Call new functions.
5598 (regcache_supply_regset): Use gdb_byte*.
5599 (regcache::supply_regset): Likewise.
5600 (regcache_collect_regset): Likewise.
5601 (regcache::collect_regset): Likewise.
5602 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5603 (reg_buffer::raw_supply_part): Likewise.
5604 (regcache::transfer_regset_register): Likewise.
5605 (regcache::transfer_regset): Use gdb_byte*.
5607 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5609 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5611 2018-06-21 Pedro Alves <palves@redhat.com>
5613 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5614 instead of a ptid_t. All callers adjusted.
5615 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5617 (print_ada_task_info, display_current_task_id, task_command_1):
5619 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5621 (breakpoint_kind): Adjust.
5622 (remove_breakpoints_pid): Rename to ...
5623 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5624 pointer. All callers adjusted.
5625 (bpstat_clear_actions): Use inferior_thread.
5626 (get_bpstat_thread): New.
5627 (bpstat_do_actions): Use it.
5628 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5629 to take a thread_info pointer. All callers adjusted.
5630 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5631 (breakpoint_re_set_thread): Use inferior_thread.
5632 * breakpoint.h (struct inferior): Forward declare.
5633 (bpstat_stop_status): Update.
5634 (remove_breakpoints_pid): Delete.
5635 (remove_breakpoints_inf): New.
5636 * bsd-uthread.c (bsd_uthread_target::wait)
5637 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5638 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5639 (maint_btrace_packet_history_cmd)
5640 (maint_btrace_clear_packet_history_cmd): Adjust.
5641 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5643 * cli/cli-interp.c: Include "inferior.h".
5644 * common/refcounted-object.h (struct
5645 refcounted_object_ref_policy): New.
5646 * compile/compile-object-load.c: Include gdbthread.h.
5647 (store_regs): Use inferior_thread.
5648 * corelow.c (core_target::close): Use current_inferior.
5649 (core_target_open): Adjust to use first_thread_of_inferior and use
5650 the current inferior.
5651 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5652 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5653 <thread>: ... this new field. All references adjusted.
5654 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5655 Take a thread_info pointer instead of a ptid_t.
5656 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5657 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5658 thread_info pointer instead of a ptid_t.
5659 * elfread.c: Include "inferior.h".
5660 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5661 Use inferior_thread.
5662 * eval.c (evaluate_subexp): Likewise.
5663 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5665 * gdb_proc_service.h (struct thread_info): Forward declare.
5666 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5667 <thread>: ... this new field. All references adjusted.
5668 * gdbarch.h, gdbarch.c: Regenerate.
5669 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5670 'thread' parameter. All implementations and callers adjusted.
5671 * gdbthread.h (thread_info) <set_running>: New method.
5672 (delete_thread, delete_thread_silent): Take a thread_info pointer
5674 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5675 (first_thread_of_process): Delete, replaced by ...
5676 (first_thread_of_inferior): ... this new function. All callers
5678 (any_live_thread_of_process): Delete, replaced by ...
5679 (any_live_thread_of_inferior): ... this new function. All callers
5681 (switch_to_thread, switch_to_no_thread): Declare.
5682 (is_executing): Delete.
5683 (enable_thread_stack_temporaries): Update comment.
5684 <enable_thread_stack_temporaries>: Take a thread_info pointer
5685 instead of a ptid_t. Incref the thread.
5686 <~enable_thread_stack_temporaries>: Decref the thread.
5689 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5690 (get_last_thread_stack_temporary)
5691 (value_in_thread_stack_temporaries, can_access_registers_thread):
5692 Take a thread_info pointer instead of a ptid_t. All callers
5694 * infcall.c (get_call_return_value): Use inferior_thread.
5695 (run_inferior_call): Work with thread pointers instead of ptid_t.
5696 (call_function_by_hand_dummy): Work with thread pointers instead
5697 of ptid_t. Use thread_info_ref.
5698 * infcmd.c (proceed_thread_callback): Access thread's state
5700 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5701 access thread's state directly.
5702 (continue_command): Use inferior_thread.
5703 (info_program_command): Use find_thread_ptid and access thread
5705 (proceed_after_attach_callback): Use thread state directly.
5706 (notice_new_inferior): Take a thread_info pointer instead of a
5707 ptid_t. All callers adjusted.
5708 (exit_inferior): Take an inferior pointer instead of a pid. All
5710 (exit_inferior_silent): New.
5711 (detach_inferior): Delete.
5712 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5713 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5714 (detach_inferior_command, kill_inferior_command): Use
5715 find_inferior_id instead of valid_gdb_inferior_id and
5716 gdb_inferior_id_to_pid.
5717 (inferior_command): Use inferior and thread pointers.
5718 * inferior.h (struct thread_info): Forward declare.
5719 (notice_new_inferior): Take a thread_info pointer instead of a
5720 ptid_t. All callers adjusted.
5721 (detach_inferior): Delete declaration.
5722 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5723 instead of a pid. All callers adjusted.
5724 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5725 (valid_gdb_inferior_id): Delete.
5726 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5727 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5728 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5730 <inf>: ... this new field.
5731 <step_ptid>: Delete, replaced by ...
5732 <step_thread>: ... this new field.
5733 (get_displaced_stepping_state): Take an inferior pointer instead
5734 of a pid. All callers adjusted.
5735 (displaced_step_in_progress_any_inferior): Adjust.
5736 (displaced_step_in_progress_thread): Take a thread pointer instead
5737 of a ptid_t. All callers adjusted.
5738 (displaced_step_in_progress, add_displaced_stepping_state): Take
5739 an inferior pointer instead of a pid. All callers adjusted.
5740 (get_displaced_step_closure_by_addr): Adjust.
5741 (remove_displaced_stepping_state): Take an inferior pointer
5742 instead of a pid. All callers adjusted.
5743 (displaced_step_prepare_throw, displaced_step_prepare)
5744 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5745 All callers adjusted.
5746 (start_step_over): Adjust.
5747 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5748 displaced step queue.
5749 (do_target_resume): Adjust.
5750 (fetch_inferior_event): Use inferior_thread.
5751 (context_switch, get_inferior_stop_soon): Take an
5752 execution_control_state pointer instead of a ptid_t. All callers
5754 (switch_to_thread_cleanup): Delete.
5755 (stop_all_threads): Use scoped_restore_current_thread.
5756 * inline-frame.c: Include "gdbthread.h".
5757 (inline_state) <inline_state>: Take a thread pointer instead of a
5758 ptid_t. All callers adjusted.
5759 <ptid>: Delete, replaced by ...
5760 <thread>: ... this new field.
5761 (find_inline_frame_state): Take a thread pointer instead of a
5762 ptid_t. All callers adjusted.
5763 (skip_inline_frames, step_into_inline_frame)
5764 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5765 pointer instead of a ptid_t. All callers adjusted.
5766 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5767 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5768 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5770 * linux-nat.c (get_detach_signal): Likewise.
5771 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5772 (thread_db_notice_clone): Adjust.
5773 (thread_db_find_new_threads_silently)
5774 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5775 a thread pointer instead of a ptid_t. All callers adjusted.
5776 * mi/mi-cmd-var.c: Include "inferior.h".
5777 (mi_cmd_var_update_iter): Update to use thread pointers.
5778 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5780 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5782 (mi_output_running): ... this new function.
5783 (mi_on_resume_1): Adjust to use it.
5784 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5785 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5787 (interrupt_thread_callback): : Adjust to use thread and inferior
5789 * proc-service.c: Include "gdbthread.h".
5790 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5791 * progspace-and-thread.c: Include "inferior.h".
5792 * progspace.c: Include "inferior.h".
5793 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5794 hold a reference to an inferior_object.
5795 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5797 * python/py-inferior.c (struct inferior_object): Give the type a
5798 tag name instead of a typedef.
5799 (python_on_normal_stop): No need to check if the current thread is
5801 (inferior_to_inferior_object): Change return type to
5802 inferior_object. All callers adjusted.
5803 (find_thread_object): Delete, bits factored out to ...
5804 (thread_to_thread_object): ... this new function.
5805 * python/py-infthread.c (create_thread_object): Use
5806 inferior_to_inferior_object.
5807 (thpy_is_stopped): Use thread pointer directly.
5808 (gdbpy_selected_thread): Use inferior_thread.
5809 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5810 field, replaced with ...
5811 <thread>: ... this new field. All users adjusted.
5812 (btpy_insn_or_gap_new): Drop const.
5813 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5815 * python/py-record.c: Include "gdbthread.h".
5816 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5817 a ptid_t. All callers adjusted.
5818 (gdbpy_current_recording): Use inferior_thread.
5819 * python/py-record.h (recpy_record_object) <ptid>: Delete
5820 field, replaced with ...
5821 <thread>: ... this new field. All users adjusted.
5822 (recpy_element_object) <ptid>: Delete
5823 field, replaced with ...
5824 <thread>: ... this new field. All users adjusted.
5825 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5826 a ptid_t. All callers adjusted.
5827 * python/py-threadevent.c: Include "gdbthread.h".
5828 (get_event_thread): Use thread_to_thread_object.
5829 * python/python-internal.h (struct inferior_object): Forward
5831 (find_thread_object, find_inferior_object): Delete declarations.
5832 (thread_to_thread_object, inferior_to_inferior_object): New
5834 * record-btrace.c: Include "inferior.h".
5835 (require_btrace_thread): Use inferior_thread.
5836 (record_btrace_frame_sniffer)
5837 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5838 (get_thread_current_frame): Use scoped_restore_current_thread and
5840 (get_thread_current_frame): Use thread pointer directly.
5841 (record_btrace_replay_at_breakpoint): Use thread's inferior
5843 * record-full.c: Include "inferior.h".
5844 * regcache.c: Include "gdbthread.h".
5845 (get_thread_arch_regcache): Use the inferior's address space
5847 (get_thread_regcache, registers_changed_thread): New.
5848 * regcache.h (get_thread_regcache(thread_info *thread)): New
5850 (registers_changed_thread): New.
5851 (remote_target) <remote_detach_1>: Swap order of parameters.
5852 (remote_add_thread): <remote_add_thread>: Return the new thread.
5853 (get_remote_thread_info(ptid_t)): New overload.
5854 (remote_target::remote_notice_new_inferior): Use thread pointers
5856 (remote_target::process_initial_stop_replies): Use
5857 thread_info::set_running.
5858 (remote_target::remote_detach_1, remote_target::detach)
5859 (extended_remote_target::detach): Adjust.
5860 * stack.c (frame_show_address): Use inferior_thread.
5861 * target-debug.h (target_debug_print_thread_info_pp): New.
5862 * target-delegates.c: Regenerate.
5863 * target.c (default_thread_address_space): Delete.
5864 (memory_xfer_partial_1): Use current_inferior.
5865 (target_detach): Use current_inferior.
5866 (target_thread_address_space): Delete.
5867 (generic_mourn_inferior): Use current_inferior.
5868 * target.h (struct target_ops) <thread_address_space>: Delete.
5869 (target_thread_address_space): Delete.
5870 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5872 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5873 thread pointer instead of a ptid_t. Adjust all callers.
5874 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5875 (first_thread_of_process): Delete, replaced by ...
5876 (first_thread_of_inferior): ... this new function. All callers
5878 (any_thread_of_process): Rename to ...
5879 (any_thread_of_inferior): ... this, and take an inferior pointer.
5880 (any_live_thread_of_process): Rename to ...
5881 (any_live_thread_of_inferior): ... this, and take an inferior
5883 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5884 (value_in_thread_stack_temporaries)
5885 (get_last_thread_stack_temporary): Take a thread pointer instead
5886 of a ptid_t. Adjust all callers.
5887 (thread_info::set_running): New.
5888 (validate_registers_access): Use inferior_thread.
5889 (can_access_registers_ptid): Rename to ...
5890 (can_access_registers_thread): ... this, and take a thread
5892 (print_thread_info_1): Adjust to compare thread pointers instead
5894 (switch_to_no_thread, switch_to_thread): Make extern.
5895 (scoped_restore_current_thread::~scoped_restore_current_thread):
5896 Use m_thread pointer directly.
5897 (scoped_restore_current_thread::scoped_restore_current_thread):
5898 Use inferior_thread.
5899 (thread_command): Use thread pointer directly.
5900 (thread_num_make_value_helper): Use inferior_thread.
5901 * top.c (execute_command): Use inferior_thread.
5902 * tui/tui-interp.c: Include "inferior.h".
5903 * varobj.c (varobj_create): Use inferior_thread.
5904 (value_of_root_1): Use find_thread_global_id instead of
5905 global_thread_id_to_ptid.
5907 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5909 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5911 (regcache::write_part): Likewise.
5912 (readable_regcache::cooked_read_part): Update comment.
5913 (readable_regcache::cooked_write_part): Likewise.
5914 * regcache.h: (readable_regcache::read_part): Likewise.
5915 (regcache::write_part): Likewise.
5917 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5918 Dirk Schubert <dirk.schubert@arm.com>
5920 * aarch64-linux-nat.c (post_attach): New.
5921 (aarch64_linux_nat_target::post_attach): Override post_attach to
5922 record the number of hardware debug registers.
5924 2018-06-20 Tom Tromey <tom@tromey.com>
5926 * python/py-param.c (add_setshow_generic): Make parameters const.
5927 (parmpy_init): Update.
5929 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5931 * regcache.h (regcache_cooked_read_ftype): Rename to...
5932 (register_read_ftype): ...this, change type to function_view.
5933 (class reg_buffer) <save>: Remove src parameter.
5934 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5935 parameter non-const in first overload. Remove src parameter in
5937 * regcache.c (do_cooked_read): Remove.
5938 (readonly_detached_regcache::readonly_detached_regcache): Make
5939 parameter non-const, adjust call to other constructor.
5940 (reg_buffer::save): Remove src parameter.
5941 * frame.c (do_frame_register_read): Remove.
5942 (frame_save_as_regcache): Use lambda function.
5943 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5944 parameter to ppu2spu_data *.
5945 (ppu2spu_sniffer): Use lambda function.
5947 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5949 * record-full.c (record_full_target::insert_breakpoint): Remove
5950 "struct" keyword, add const.
5952 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5954 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5955 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5956 * configure.ac: Remove AC_PREREQ, add missing quoting.
5957 * gnulib/configure.ac: Modernize usage of
5958 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5959 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5960 (AUTOMAKE_VERSION): Bump to 1.15.1.
5961 * configure: Re-generate.
5962 * config.in: Re-generate.
5963 * aclocal.m4: Re-generate.
5964 * gnulib/aclocal.m4: Re-generate.
5965 * gnulib/config.in: Re-generate.
5966 * gnulib/configure: Re-generate.
5967 * gnulib/import/Makefile.in: Re-generate.
5969 2018-06-19 Pedro Alves <palves@redhat.com>
5971 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5972 (lookup_minimal_symbol_by_pc_section): ... here with
5973 gdb_assert_not_reached added.
5975 2018-06-19 Pedro Alves <palves@redhat.com>
5977 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
5978 parameter with a block parameter. Compare location's block symbol
5979 with the frame's block instead of addresses.
5980 (skip_inline_frames): Pass the current block instead of the
5981 frame's address. Break out as soon as we determine the frame
5982 should not be skipped.
5984 2018-06-18 Tom Tromey <tom@tromey.com>
5986 * solib-aix.c (solib_aix_get_section_offsets): Return
5988 (solib_aix_solib_create_inferior_hook): Update.
5990 2018-06-18 Tom Tromey <tom@tromey.com>
5992 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
5994 2018-06-18 Tom Tromey <tom@tromey.com>
5996 * solib-frv.c (frv_relocate_main_executable): Use
5998 * solib-dsbt.c (dsbt_relocate_main_executable): Use
6001 2018-06-18 Tom Tromey <tom@tromey.com>
6003 * objfiles.h (inhibit_section_map_updates): Update.
6004 (resume_section_map_updates, resume_section_map_updates_cleanup):
6006 * solib-svr4.c (svr4_handle_solib_event): Update.
6007 * objfiles.c (inhibit_section_map_updates): Return
6008 scoped_restore_tmpl<int>.
6009 (resume_section_map_updates, resume_section_map_updates_cleanup):
6012 2018-06-18 Tom Tromey <tom@tromey.com>
6014 * valprint.h (read_string): Update.
6015 * valprint.c (read_string): Change type of "buffer".
6016 (val_print_string): Update.
6017 * python/py-value.c (valpy_string): Update.
6018 * language.h (struct language_defn) <la_get_string>: Change
6020 (default_get_string, c_get_string): Update.
6021 * language.c (default_get_string): Change type of "buffer".
6022 * guile/scm-value.c (gdbscm_value_to_string): Update.
6023 * c-lang.c (c_get_string): Change type of "buffer".
6025 2018-06-18 Tom Tromey <tom@tromey.com>
6027 * ser-mingw.c (struct pipe_state_destroyer): New.
6028 (pipe_state_up): New typedef.
6029 (cleanup_pipe_state): Remove.
6030 (pipe_windows_open): Use pipe_state_up. Don't release argv.
6032 2018-06-18 Tom Tromey <tom@tromey.com>
6034 * rust-lang.h (rust_yyerror): Don't declare.
6035 * rust-lang.c (rust_language_defn): Update.
6036 * rust-exp.y (yyerror): Now static.
6037 * parse.c (parse_exp_in_context_1): Update.
6038 * p-lang.h (p_yyerror): Don't declare.
6039 * p-lang.c (p_language_defn): Update.
6040 * p-exp.y (yyerror): Now static.
6041 * opencl-lang.c (opencl_language_defn): Update.
6042 * objc-lang.c (objc_language_defn): Update.
6043 * m2-lang.h (m2_yyerror): Don't declare.
6044 * m2-lang.c (m2_language_defn): Update.
6045 * m2-exp.y (yyerror): Now static.
6046 * language.h (struct language_defn) <la_error>: Remove.
6047 * language.c (unk_lang_error): Remove.
6048 (unknown_language_defn, auto_language_defn): Remove.
6049 * go-lang.h (go_yyerror): Don't declare.
6050 * go-lang.c (go_language_defn): Update.
6051 * go-exp.y (yyerror): Now static.
6052 * f-lang.h (f_yyerror): Don't declare.
6053 * f-lang.c (f_language_defn): Update.
6054 * f-exp.y (yyerror): Now static.
6055 * d-lang.h (d_yyerror): Don't declare.
6056 * d-lang.c (d_language_defn): Update.
6057 * d-exp.y (yyerror): Now static.
6058 * c-lang.h (c_yyerror): Don't declare.
6059 * c-lang.c (c_language_defn, cplus_language_defn)
6060 (asm_language_defn, minimal_language_defn): Update.
6061 * c-exp.y (yyerror): Now static.
6062 * ada-lang.h (ada_yyerror): Don't declare.
6063 * ada-lang.c (ada_language_defn): Update.
6064 * ada-exp.y (yyerror): Now static.
6066 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6068 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
6069 (store_sveregs_to_thread): Likewise.
6070 (aarch64_linux_fetch_inferior_registers): Check for SVE.
6071 (aarch64_linux_store_inferior_registers): Likewise.
6072 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
6074 (aarch64_sve_regs_copy_to_regcache): Likewise.
6075 (aarch64_sve_regs_copy_from_regcache): Likewise.
6076 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
6078 (aarch64_sve_regs_copy_to_regcache): Likewise.
6079 (aarch64_sve_regs_copy_from_regcache): Likewise.
6080 (sve_context): Structure from Linux headers.
6081 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
6082 (SVE_SIG_ZREG_SIZE): Likewise.
6083 (SVE_SIG_PREG_SIZE): Likewise.
6084 (SVE_SIG_FFR_SIZE): Likewise.
6085 (SVE_SIG_REGS_OFFSET): Likewise.
6086 (SVE_SIG_ZREGS_OFFSET): Likewise.
6087 (SVE_SIG_ZREG_OFFSET): Likewise.
6088 (SVE_SIG_ZREGS_SIZE): Likewise.
6089 (SVE_SIG_PREGS_OFFSET): Likewise.
6090 (SVE_SIG_PREG_OFFSET): Likewise.
6091 (SVE_SIG_PREGS_SIZE): Likewise.
6092 (SVE_SIG_FFR_OFFSET): Likewise.
6093 (SVE_SIG_REGS_SIZE): Likewise.
6094 (SVE_SIG_CONTEXT_SIZE): Likewise.
6095 (SVE_PT_REGS_MASK): Likewise.
6096 (SVE_PT_REGS_FPSIMD): Likewise.
6097 (SVE_PT_REGS_SVE): Likewise.
6098 (SVE_PT_VL_INHERIT): Likewise.
6099 (SVE_PT_VL_ONEXEC): Likewise.
6100 (SVE_PT_REGS_OFFSET): Likewise.
6101 (SVE_PT_FPSIMD_OFFSET): Likewise.
6102 (SVE_PT_FPSIMD_SIZE): Likewise.
6103 (SVE_PT_SVE_ZREG_SIZE): Likewise.
6104 (SVE_PT_SVE_PREG_SIZE): Likewise.
6105 (SVE_PT_SVE_FFR_SIZE): Likewise.
6106 (SVE_PT_SVE_FPSR_SIZE): Likewise.
6107 (SVE_PT_SVE_FPCR_SIZE): Likewise.
6108 (__SVE_SIG_TO_PT): Likewise.
6109 (SVE_PT_SVE_OFFSET): Likewise.
6110 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
6111 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
6112 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
6113 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
6114 (SVE_PT_SVE_PREG_OFFSET): Likewise.
6115 (SVE_PT_SVE_PREGS_SIZE): Likewise.
6116 (SVE_PT_SVE_FFR_OFFSET): Likewise.
6117 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
6118 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
6119 (SVE_PT_SVE_SIZE): Likewise.
6120 (SVE_PT_SIZE): Likewise.
6121 (HAS_SVE_STATE): New define.
6123 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6125 * nat/aarch64-sve-linux-sigcontext.h: New file.
6126 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
6128 (SVE_VQ_MIN): Likewise.
6129 (SVE_VQ_MAX): Likewise.
6130 (SVE_VL_MIN): Likewise.
6131 (SVE_VL_MAX): Likewise.
6132 (SVE_NUM_ZREGS): Likewise.
6133 (SVE_NUM_PREGS): Likewise.
6134 (sve_vl_valid): Likewise.
6135 (struct user_sve_header): Likewise.
6137 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6138 Richard Bunt <Richard.Bunt@arm.com>
6140 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
6141 was requested by GDB.
6143 2018-06-15 Tom de Vries <tdevries@suse.de>
6145 * MAINTAINERS (Write After Approval): Add Tom de Vries.
6147 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
6149 * gnulib/update-gnulib.sh: Print expected versions of
6152 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
6154 * arch-utils.c (default_type_align): Use type_length_units.
6155 * gdbtypes.c (type_align): Use type_length_units.
6157 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6159 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
6160 of 'define' command.
6162 2018-06-14 Tom de Vries <tdevries@suse.de>
6165 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
6166 get_no_prettyformat_print_options.
6168 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
6170 * sparc-nat.h: Include target.h.
6171 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
6172 <fetch_registers>: Remove this argument in function call.
6173 <store_registers>: Remove this argument in function call, remove
6175 <low_forget_process>: Call sparc64_forget_process instead of
6176 sparc_forget_process.
6178 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6180 * procfs.c (_initialize_procfs): Use add_inf_child_target.
6181 (procfs_target::make_corefile_notes): Adjust to new
6182 target_read_alloc return type.
6184 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6185 Stephen Roberts <stephen.roberts@arm.com>
6188 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
6189 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
6190 Move should_notify_stop local into more inner scope.
6192 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6193 Stephen Roberts <stephen.roberts@arm.com>
6196 * infrun.c (resume_1): Add call to mark_async_event_handler.
6198 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6200 * infrun.c (do_target_wait): Change old version of $pc printed.
6202 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
6204 * dwarf2read.c (read_index_from_section): Rename to...
6205 (read_gdb_index_from_section): ... this, update all callers.
6206 (dwarf2_read_index): Rename to...
6207 (dwarf2_read_gdb_index): ... this, update all callers.
6209 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
6211 * gdb/hppa-linux-nat.c
6212 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
6213 hppa_linux_nat_target::fetch_registers.
6215 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6217 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
6218 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
6219 (AARCH64_DWARF_SVE_FFR): Likewise.
6220 (AARCH64_DWARF_SVE_P0): Likewise.
6221 (AARCH64_DWARF_SVE_Z0): Likewise.
6223 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6225 * common/common-regcache.h (raw_compare): New function.
6226 * regcache.c (regcache::raw_compare): Likewise.
6227 * regcache.h (regcache::raw_compare): New declaration.
6229 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6231 * common/common-regcache.h (reg_buffer_common): New structure.
6232 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
6233 (reg_buffer::raw_supply): Likewise.
6234 (reg_buffer::raw_supply_integer): Likewise.
6235 (reg_buffer::raw_supply_zeroed): Likewise.
6236 (reg_buffer::raw_collect): Likewise.
6237 (reg_buffer::raw_collect_integer): Likewise.
6238 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
6239 (reg_buffer::raw_supply): Likewise.
6240 (reg_buffer::raw_supply_integer): Likewise.
6241 (reg_buffer::raw_supply_zeroed): Likewise.
6242 (reg_buffer::raw_collect): Likewise.
6243 (reg_buffer::raw_collect_integer): Likewise.
6245 2018-06-10 Tom Tromey <tom@tromey.com>
6247 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
6248 (class remote_state) <stop_reply_queue>: Now std::vector.
6249 (remote_state::~remote_state)
6250 (remote_target::stop_reply_queue_length): Update.
6251 (struct queue_iter_param, remove_child_of_pending_fork)
6252 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
6253 (check_pending_event_prevents_wildcard_vcont_callback)
6254 (remove_stop_reply_for_inferior)
6255 (remove_stop_reply_of_remote_state)
6256 (remote_notif_remove_once_on_match)
6257 (stop_reply_match_ptid_and_ws)
6258 (remote_kill_child_of_pending_fork): Remove.
6259 (remote_target::remove_new_fork_children)
6260 (remote_target::check_pending_events_prevent_wildcard_vcont)
6261 (remote_target::discard_pending_stop_replies)
6262 (remote_target::discard_pending_stop_replies_in_queue)
6263 (remote_target::remote_notif_remove_queued_reply)
6264 (remote_target::queued_stop_reply)
6265 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
6266 (remote_target::wait, remote_target::kill_new_fork_children)
6267 (remote_target::async): Update.
6269 2018-06-10 Tom Tromey <tom@tromey.com>
6271 * record-full.c (record_full_arch_list_cleanups): Remove.
6272 (record_full_message): Use try/catch.
6273 (record_full_wait_cleanups): Remove.
6274 (record_full_wait_1): Use try/catch.
6275 (record_full_restore): Likewise.
6277 2018-06-10 Tom Tromey <tom@tromey.com>
6279 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
6280 declare VEC. Add constructor.
6281 <in_target_beneath>: Now bool.
6282 (record_full_breakpoints): Now a std::vector, static.
6283 (record_full_sync_record_breakpoints)
6284 (record_full_init_record_breakpoints)
6285 (record_full_target::insert_breakpoint)
6286 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
6288 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6290 * dwarf2read.c (process_cu_includes): Remove struct keyword.
6291 * serial.c (serial_interface_lookup): Remove struct keyword.
6293 2018-06-10 Tom Tromey <tom@tromey.com>
6295 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
6297 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
6299 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
6301 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
6302 "beneath" as a method.
6303 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
6304 Use "beneath" as a method.
6306 2018-06-10 Tom Tromey <tom@tromey.com>
6308 * tracefile.c (struct trace_file_writer_deleter): New.
6309 <operator()>: Rename from trace_file_writer_xfree.
6310 (trace_file_writer_up): New typedef.
6311 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
6313 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6315 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
6316 <m_registers, m_register_status>: Change type to
6318 * regcache.c (reg_buffer::reg_buffer): Use new instead of
6321 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6323 * common/common-regcache.h (enum register_status): Add
6324 underlying type "signed char".
6325 * regcache.h (reg_buffer) <m_register_status>: Change type to
6327 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
6328 register_status instead of signed char.
6329 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
6330 (reg_buffer::get_register_status): Remove cast.
6331 (readable_regcache::raw_read): Remove cast.
6332 (readable_regcache::cooked_read): Remove cast.
6334 2018-06-09 Tom Tromey <tom@tromey.com>
6336 * source.c (reverse_search_command, forward_search_command): Use
6339 2018-06-09 Tom Tromey <tom@tromey.com>
6341 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
6342 (serial_ops_list): Now static, std::vector.
6343 (serial_interface_lookup, serial_add_interface): Update.
6345 2018-06-09 Tom Tromey <tom@tromey.com>
6347 * dwarf2read.c (process_cu_includes): Update.
6348 (process_full_comp_unit): Update.
6349 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
6352 2018-06-08 Paul Koning <paul_koning@dell.com>
6356 * python/python.c (do_start_initialization):
6357 Avoid call to internal Python API.
6358 (init__gdb_module): New function.
6360 2018-06-08 Gary Benson <gbenson@redhat.com>
6362 * linux-thread-db.c (valprint.h): New include.
6363 (struct check_thread_db_info): New structure.
6364 (check_thread_db_on_load, tdb_testinfo): New static globals.
6365 (check_thread_db, check_thread_db_callback): New functions.
6366 (try_thread_db_load_1): Run integrity checks if requested.
6367 (maintenance_check_libthread_db): New function.
6368 (_initialize_thread_db): Register "maint check libthread-db"
6369 and "maint set/show check-libthread-db".
6370 * NEWS: Mention the above new commands.
6372 2018-06-08 Tom Tromey <tom@tromey.com>
6374 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
6377 2018-06-08 Tom Tromey <tom@tromey.com>
6379 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
6381 2018-06-08 Tom Tromey <tom@tromey.com>
6383 * common/btrace-common.h (struct btrace_data): Add constructor,
6384 destructor, move assignment operator.
6385 <empty, clear, fini>: New methods.
6386 <format>: Initialize.
6387 (btrace_data_init, btrace_data_fini, btrace_data_clear)
6388 (btrace_data_empty): Don't declare.
6389 * common/btrace-common.c (btrace_data_init): Remove.
6390 (btrace_data::fini): Rename from btrace_data_fini.
6391 (btrace_data::empty): Rename from btrace_data_empty.
6392 (btrace_data::clear): Rename from btrace_data_clear. Return
6394 * btrace.h (make_cleanup_btrace_data): Don't declare.
6395 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
6396 (parse_xml_btrace): Update.
6397 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
6398 (maint_btrace_clear_packet_history_cmd): Update.
6400 2018-06-07 Pedro Alves <palves@redhat.com>
6402 * target.h (target_ops) <beneath>: Now a method. All references
6404 (class target_stack): New.
6405 * target.c (g_target_stack): New.
6406 (g_current_top_target): Delete.
6407 (current_top_target): Get the top target out of g_target_stack.
6408 (target_stack::push, target_stack::unpush): New.
6409 (push_target, unpush_target): Reimplement.
6410 (target_is_pushed): Reimplement in terms of g_target_stack.
6411 (target_ops::beneath, target_stack::find_beneath): New.
6413 2018-06-07 Pedro Alves <palves@redhat.com>
6415 * target.h (find_target_beneath): Delete declaration.
6416 * target.c (find_target_beneath): Delete definition.
6417 * aix-thread.c: All callers of find_target_beneath adjusted to
6418 call target_ops::beneath instead.
6419 * bsd-uthread.c: Likewise.
6420 * linux-thread-db.c: Likewise.
6421 * ravenscar-thread.c: Likewise.
6422 * sol-thread.c: Likewise.
6423 * spu-multiarch.c: Likewise.
6425 2018-06-07 Pedro Alves <palves@redhat.com>
6427 * target.h (target_ops) <beneath>: Now a method. All references
6429 (target_ops) <m_beneath>: New.
6430 * target.c (target_ops::beneath): New.
6431 * corelow.c: Adjust all references to target_ops::beneath.
6432 * linux-thread-db.c: Likewise.
6433 * make-target-delegates: Likewise.
6434 * record-btrace.c: Likewise.
6435 * record-full.c: Likewise.
6436 * remote.c: Likewise.
6437 * target.c: Likewise.
6438 * target-delegates.c: Regenerate.
6440 2018-06-07 Pedro Alves <palves@redhat.com>
6442 * target.h (target_stack): Delete.
6443 (current_top_target): Declare function.
6444 * target.c (target_stack): Delete.
6445 (g_current_top_target): New.
6446 (current_top_target): New function.
6447 * auxv.c: Use current_top_target instead of target_stack
6449 * avr-tdep.c: Likewise.
6450 * breakpoint.c: Likewise.
6451 * corefile.c: Likewise.
6452 * elfread.c: Likewise.
6454 * exceptions.c: Likewise.
6455 * frame.c: Likewise.
6456 * gdbarch-selftests.c: Likewise.
6457 * gnu-v3-abi.c: Likewise.
6458 * ia64-tdep.c: Likewise.
6459 * ia64-vms-tdep.c: Likewise.
6460 * infcall.c: Likewise.
6461 * infcmd.c: Likewise.
6462 * infrun.c: Likewise.
6463 * linespec.c: Likewise.
6464 * linux-tdep.c: Likewise.
6465 * minsyms.c: Likewise.
6466 * ppc-linux-nat.c: Likewise.
6467 * ppc-linux-tdep.c: Likewise.
6468 * procfs.c: Likewise.
6469 * regcache.c: Likewise.
6470 * remote.c: Likewise.
6471 * rs6000-tdep.c: Likewise.
6472 * s390-linux-nat.c: Likewise.
6473 * s390-tdep.c: Likewise.
6474 * solib-aix.c: Likewise.
6475 * solib-darwin.c: Likewise.
6476 * solib-dsbt.c: Likewise.
6477 * solib-spu.c: Likewise.
6478 * solib-svr4.c: Likewise.
6479 * solib-target.c: Likewise.
6480 * sparc-tdep.c: Likewise.
6481 * sparc64-tdep.c: Likewise.
6482 * spu-tdep.c: Likewise.
6483 * symfile.c: Likewise.
6484 * symtab.c: Likewise.
6485 * target-descriptions.c: Likewise.
6486 * target-memory.c: Likewise.
6487 * target.c: Likewise.
6488 * target.h: Likewise.
6489 * tracefile-tfile.c: Likewise.
6490 * tracepoint.c: Likewise.
6491 * valops.c: Likewise.
6492 * valprint.c: Likewise.
6493 * value.c: Likewise.
6494 * windows-tdep.c: Likewise.
6495 * mi/mi-main.c: Likewise.
6497 2018-06-07 Tom Tromey <tom@tromey.com>
6499 * valprint.h (build_address_symbolic): Declare.
6500 * printcmd.c (print_address_symbolic): Update.
6501 (build_address_symbolic): Change "name" and "filename" to
6503 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6505 * defs.h (build_address_symbolic): Remove declaration.
6507 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6509 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6510 (aarch64_vnv_type): Add function.
6511 (aarch64_pseudo_register_name): Add V regs for SVE.
6512 (aarch64_pseudo_register_type): Likewise.
6513 (aarch64_pseudo_register_reggroup_p): Likewise.
6514 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6515 (aarch64_pseudo_read_value): Add V regs for SVE.
6516 (aarch64_pseudo_write_2): Use V0 offset for SVE
6517 (aarch64_pseudo_write): Add V regs for SVE.
6518 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6520 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6522 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6523 (sve_vl_from_vq): Likewise.
6525 2018-06-05 Tom Tromey <tom@tromey.com>
6527 * cli/cli-cmds.c (show_version): Update.
6528 * top.c (print_gdb_version): Add "interactive" parameter.
6530 * main.c (captured_main_1): Update.
6531 * top.h (print_gdb_version): Add "interactive" parameter and a
6534 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6536 * common/enum-flags.h: Add trailing semicolon to example in
6539 2018-06-05 Tom Tromey <tom@tromey.com>
6542 * NEWS: Add entry about pager.
6543 * utils.c (pagination_disabled_for_command): New global.
6544 (prompt_for_continue): Allow "c" response to prompt.
6545 (reinitialize_more_filter): Clear
6546 pagination_disabled_for_command.
6547 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6549 2018-06-04 Tom Tromey <tom@tromey.com>
6551 * ada-lang.h (ada_lookup_symbol_list): Update.
6552 * ada-lang.c (resolve_subexp): Update.
6553 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6555 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6556 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6557 results parameter to std::vector.
6558 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6560 * ada-exp.y (block_lookup): Update.
6561 (select_possible_type_sym): Change type of syms. Remove nsyms
6563 (write_var_or_type, write_name_assoc): Update.
6565 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6567 * windows-nat.c (windows_nat_target::xfer_partial): Return
6568 TARGET_XFER_E_IO if we need to delegate to the target beneath
6569 but BENEATH is NULL.
6571 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6573 * Makefile.in (config.status): Add configure.nat as a
6576 2018-06-04 Tom Tromey <tom@tromey.com>
6578 * cp-name-parser.y (cpname_state): Add method declarations.
6579 (HANDLE_QUAL): Update.
6580 (cpname_state::d_grab, cpname_state::fill_comp)
6581 (cpname_state::make_operator, cpname_state::make_dtor)
6582 (cpname_state::make_builtin_type, cpname_state::make_name)
6583 (cpname_state::d_qualify, cpname_state::d_int_type)
6584 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6585 (%union): Move earlier.
6587 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6589 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6591 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6593 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6594 (aarch64_pseudo_write_1): Likewise.
6595 (aarch64_pseudo_read_value): Use helper.
6596 (aarch64_pseudo_write): Likewise.
6598 2018-06-04 Pedro Alves <palves@redhat.com>
6600 * darwin-nat.c (darwin_ops): Delete.
6601 (darwin_attach_pid): Use get_native_target.
6603 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6605 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6606 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6608 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6610 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6611 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6612 (aarch64_gdbarch_init): Check for SVE.
6613 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6615 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6617 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6618 * aarch64-tdep.h (aarch64_read_description): Likewise.
6619 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6620 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6621 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6622 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6623 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6625 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6627 * value.c (value_fetch_lazy_bitfield): New.
6628 (value_fetch_lazy_memory): New.
6629 (value_fetch_lazy_register): New.
6630 (value_fetch_lazy): Factor out to smaller functions.
6632 2018-06-01 Tom Tromey <tom@tromey.com>
6634 * cp-name-parser.y (backslashable, represented): Now const.
6636 2018-06-01 Tom Tromey <tom@tromey.com>
6638 * cp-name-parser.y: Include parser-defs.h.
6639 (parser_fprintf): Remove declaration.
6641 2018-06-01 Tom Tromey <tom@tromey.com>
6643 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6645 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6646 (global_result): Remove globals.
6647 (struct cpname_state): New.
6648 (yyparse): Don't declare.
6649 (yylex, yyerror): Move declarations after %union.
6650 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6651 (make_name): Add state parameter.
6653 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6655 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6657 (yylex): Add lvalp, state parameters.
6658 (yyerror): Add state parameter.
6659 (cp_demangled_name_to_comp): Update.
6661 2018-06-01 Tom Tromey <tom@tromey.com>
6663 * cp-name-parser.y (parser_fprintf): Declare.
6664 (GDB_YY_REMAP_PREFIX): Define.
6665 Include yy-remap.h. Don't redefine yy* identifiers.
6667 2018-06-01 Tom Tromey <tom@tromey.com>
6669 * python/py-type.c (typy_legacy_template_argument): Update.
6670 * cp-support.h (cp_demangled_name_to_comp): Update.
6671 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6672 parameter to be a "std::string *".
6675 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6677 * ada-lex.l: Include "diagnostics.h" instead of
6678 "common/diagnostics.h".
6679 * unittests/environ-selftests.c: Likewise.
6680 * common/diagnostics.h: Moved to ../include.
6682 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6684 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6685 to language_mode_manual while calling breakpoint_re_set_one.
6687 2018-06-01 Tom Tromey <tom@tromey.com>
6689 * valops.c (value_cast_structs, destructor_name_p): Update.
6690 * symtab.c (gdb_mangle_name): Update.
6691 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6693 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6694 (pascal_object_print_value_fields, pascal_object_print_value):
6696 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6697 * linespec.c (find_methods): Update.
6698 * gdbtypes.h (type_name_no_tag): Remove.
6699 (type_name_or_error): Rename from type_name_no_tag_or_error.
6700 * gdbtypes.c (type_name_no_tag): Remove.
6701 (type_name_or_error): Rename from type_name_no_tag_or_error.
6702 (lookup_struct_elt_type, check_typedef): Update.
6703 * expprint.c (print_subexp_standard): Update.
6704 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6705 * d-namespace.c (d_lookup_nested_symbol): Update.
6706 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6707 (cp_print_class_member): Update.
6708 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6709 * completer.c (add_struct_fields): Update.
6710 * c-typeprint.c (cp_type_print_derivation_info)
6711 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6713 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6714 (ada_prefer_type, ada_is_exception_sym): Update.
6716 2018-06-01 Tom Tromey <tom@tromey.com>
6718 * valops.c (enum_constant_from_type, value_namespace_elt)
6719 (value_maybe_namespace_elt): Update.
6720 * valarith.c (find_size_for_pointer_math): Update.
6721 * target-descriptions.c (make_gdb_type): Update.
6722 * symmisc.c (print_symbol): Update.
6723 * stabsread.c (define_symbol, read_type)
6724 (complain_about_struct_wipeout, add_undefined_type)
6725 (cleanup_undefined_types_1): Update.
6726 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6727 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6728 (rust_internal_print_type, rust_composite_type)
6729 (rust_evaluate_funcall, rust_evaluate_subexp)
6730 (rust_inclusive_range_type_p): Update.
6731 * python/py-type.c (typy_get_tag): Update.
6732 * p-typeprint.c (pascal_type_print_base): Update.
6733 * mdebugread.c (parse_symbol, parse_type): Update.
6734 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6736 * guile/scm-type.c (gdbscm_type_tag): Update.
6737 * go-lang.c (sixg_string_p): Update.
6738 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6740 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6741 (TYPE_TAG_NAME): Remove.
6742 * gdbtypes.c (type_name_no_tag): Simplify.
6743 (check_typedef, check_types_equal, recursive_dump_type)
6744 (copy_type_recursive, arch_composite_type): Update.
6745 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6746 in summary mode when needed.
6747 * eval.c (evaluate_funcall): Update.
6748 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6749 (process_structure_scope, read_enumeration_type)
6750 (read_namespace_type, read_module_type, determine_prefix): Update.
6751 * cp-support.c (inspect_type): Update.
6752 * coffread.c (process_coff_symbol, decode_base_type): Update.
6753 * c-varobj.c (c_is_path_expr_parent): Update.
6754 * c-typeprint.c (c_type_print_base_struct_union): Update.
6755 (c_type_print_base_1): Update. Print struct/class/union/enum in
6756 summary when using C language.
6757 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6758 (gen_maybe_namespace_elt): Update.
6759 * ada-lang.c (ada_type_name): Simplify.
6760 (empty_record, ada_template_to_fixed_record_type_1)
6761 (template_to_static_fixed_type)
6762 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6764 2018-06-01 Tom Tromey <tom@tromey.com>
6766 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6768 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6769 (c_print_type): Update.
6770 (c_print_type): New overload.
6771 (c_type_print_varspec_prefix, c_type_print_args)
6772 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6773 (c_type_print_base_struct_union, c_type_print_base_1)
6774 (cp_type_print_method_args): Add "language" parameter.
6775 (c_type_print_base): Update.
6776 * c-lang.h (c_print_type): Add new overload.
6778 2018-06-01 Tom Tromey <tom@tromey.com>
6780 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6781 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6783 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6785 * aarch64-tdep.c (aarch64_sve_register_names): New const
6787 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6788 (AARCH64_SVE_Z_REGS_NUM): New define.
6789 (AARCH64_SVE_P_REGS_NUM): Likewise.
6790 (AARCH64_SVE_NUM_REGS): Likewise.
6792 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6794 * nat/linux-ptrace.h [__alpha__]
6795 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6798 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6800 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6801 the endianness selected.
6802 * NEWS: Document `set endian auto' mode operation update.
6804 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6806 * Makefile.in: Add new header.
6807 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6808 (sve_vl_from_vg): Likewise.
6809 (sve_vq_from_vl): Likewise.
6810 (sve_vl_from_vq): Likewise.
6811 (sve_vq_from_vg): Likewise.
6812 (sve_vg_from_vq): Likewise.
6813 * configure.nat: Add new c file.
6814 * nat/aarch64-sve-linux-ptrace.c: New file.
6815 * nat/aarch64-sve-linux-ptrace.h: New file.
6817 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6819 * aarch64-linux-nat.c (aarch64_linux_read_description):
6821 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6823 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6824 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6825 (aarch64_gdbarch_init): Add parmeter zero.
6826 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6827 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6828 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6830 * doc/gdb.texinfo: Describe SVE feature
6831 * features/aarch64-sve.c: New file.
6833 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6836 * gdbarch.sh (significant_addr_bit): Default to zero when
6837 not set by target architecture.
6838 * gdbarch.c: Re-generated.
6839 * utils.c (address_significant): Update.
6841 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6843 * stack.c (func_command): Remove trailing newline in call to error.
6845 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6847 * regcache.h (regcache_raw_collect): Remove, update callers to
6848 use regcache::raw_collect.
6849 * regcache.c (regcache_raw_collect): Remove.
6851 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6853 * regcache.h (regcache_raw_supply): Remove, update callers to
6854 use detached_regcache::raw_supply.
6855 * regcache.c (regcache_raw_supply): Remove.
6857 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6859 * regcache.h (regcache_cooked_write_part): Remove, update
6860 callers to use regcache::cooked_write_part.
6861 * regcache.c (regcache_cooked_write_part): Remove.
6863 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6865 * regcache.h (regcache_cooked_read_part): Remove, update callers
6866 to use readable_regcache::cooked_read_part.
6867 * regcache.c (regcache_cooked_read_part): Remove.
6869 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6871 * regcache.h (regcache_cooked_read_value): Remove, update
6872 callers to use readable_regcache::cooked_read_value.
6873 * regcache.c (regcache_cooked_read_value): Remove.
6875 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6877 * regcache.h (regcache_cooked_write): Remove, update callers to
6878 use regcache::cooked_write.
6879 * regcache.c (regcache_cooked_write): Remove.
6881 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6883 * regcache.h (regcache_invalidate): Remove, update callers to
6884 use detached_regcache::invalidate instead.
6885 * regcache.c (regcache_invalidate): Remove.
6887 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6889 * regcache.h (regcache_raw_write_part): Remove, update callers
6890 to use regcache::raw_write_part instead.
6891 * regcache.c (regcache_raw_write_part): Remove.
6893 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6895 * regcache.h (regcache_raw_read_part): Remove, update callers to
6896 use readable_regcache::raw_read_part instead.
6897 * regcache.c (regcache_raw_read_part): Remove.
6899 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6901 * regcache.h (regcache_cooked_read): Remove, update callers to
6902 use readable_regcache::cooked_read instead.
6903 * regcache.c (regcache_cooked_read): Remove.
6905 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6907 * regcache.h (regcache_raw_write): Remove, update callers to use
6908 regcache::raw_write instead.
6909 * regcache.c (regcache_raw_write): Remove.
6911 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6913 * regcache.h (regcache_raw_read): Remove, update callers to use
6914 readable_regcache::raw_read instead.
6915 * regcache.c (regcache_raw_read): Remove.
6917 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6919 * regcache.h (regcache_raw_update): Remove, update callers to
6920 use readable_regcache::raw_update instead.
6921 * regcache.c (regcache_raw_update): Remove.
6923 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6925 * regcache.h (regcache_register_status): Remove, update callers
6926 to use reg_buffer::get_register_status directly instead.
6927 * regcache.c (regcache_register_status): Remove.
6929 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6931 * regcache.h (regcache_get_ptid): Remove, update all callers to
6932 call regcache::ptid instead.
6933 * regcache.c (regcache_get_ptid): Remove.
6935 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6937 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6939 2018-05-30 Pedro Alves <palves@redhat.com>
6941 * common/common-exceptions.h (exception_rethrow): Use
6944 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6946 * breakpoint.c (print_solib_event, check_status_catch_solib):
6947 Remove struct keyword in range-based for loops.
6948 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6949 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6951 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6953 * symfile.c (addr_info_make_relative): Likewise.
6954 * thread.c (value_in_thread_stack_temporaries): Likewise.
6956 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6959 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6960 aggregate type to get its real type before accessing it.
6962 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6964 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6965 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6966 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6967 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6968 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6969 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6970 * printcmd.c (info_address_command): Likewise.
6972 2018-05-29 Tom Tromey <tom@tromey.com>
6974 * windows-nat.c (handle_exception): Update fall-through comment.
6976 2018-05-29 Tom Tromey <tom@tromey.com>
6978 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
6979 (struct program_space) <added_solibs>: Now a std::vector.
6980 * breakpoint.c (print_solib_event): Update.
6981 (check_status_catch_solib): Update.
6982 * progspace.c (clear_program_space_solib_cache): Update.
6983 * solib.c (update_solib_list): Update.
6985 2018-05-29 Tom Tromey <tom@tromey.com>
6987 * python/py-type.c (typy_richcompare): Update.
6988 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
6989 * gdbtypes.h (types_deeply_equal): Return bool.
6990 (types_equal): Likewise.
6991 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
6993 (check_types_equal): Change worklist to std::vector. Return
6995 (struct type_equality_entry): Add constructor.
6996 (compare_maybe_null_strings): Return bool.
6997 (check_types_worklist): Return bool. Change worklist to
6999 (types_deeply_equal): Use std::vector.
7000 (types_equal): Return bool.
7001 (compare_maybe_null_strings): Simplify.
7003 2018-05-29 Tom Tromey <tom@tromey.com>
7005 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
7007 2018-05-29 Tom Tromey <tom@tromey.com>
7009 * objc-lang.h: Don't include cp-support.h.
7010 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
7013 2018-05-27 Tom Tromey <tom@tromey.com>
7015 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
7017 2018-05-25 Tom Tromey <tom@tromey.com>
7019 * value.c (value::location): Initialize.
7021 2018-05-25 Tom Tromey <tom@tromey.com>
7023 * dbxread.c (init_bincl_list): Remove.
7024 (bincl_list): Now a std::vector.
7025 (bincls_allocated, next_bincl): Remove.
7026 (free_bincl_list, do_free_bincl_list_cleanup)
7027 (make_cleanup_free_bincl_list): Remove.
7028 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
7030 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
7031 (struct header_file_location): Add constructor.
7032 (add_bincl_to_list): Remove.
7034 2018-05-25 Tom Tromey <tom@tromey.com>
7036 * tui/tui.c (tui_enable): Update.
7037 * mi/mi-interp.c (mi_interp::init): Update.
7038 * interps.h (class interp) <name>: New method.
7039 <m_name>: Rename from name.
7040 (~scoped_restore_interp): Update.
7041 * interps.c (interp::interp): Update.
7042 (interp_add, interp_set, interp_lookup_existing)
7043 (current_interp_named_p): Update.
7045 2018-05-25 Tom Tromey <tom@tromey.com>
7047 * interps.c (interp_name): Remove.
7048 * mi/mi-interp.c (mi_interp::init): Update.
7049 * interps.h (interp_name): Remove.
7050 (~scoped_restore_interp): Update.
7051 * tui/tui.c (tui_enable): Update.
7053 2018-05-25 Tom Tromey <tom@tromey.com>
7055 * utils.c (fputs_maybe_filtered): Update.
7056 * linespec.c (decode_line_full): Update.
7057 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
7058 (mi_print_breakpoint_for_event, mi_solib_loaded)
7059 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7060 (mi_user_selected_context_changed): Update.
7061 * mi/mi-main.c (mi_execute_command): Update.
7062 * cli/cli-script.c (execute_control_command): Update.
7063 * python/python.c (execute_gdb_command): Update.
7064 * solib.c (info_sharedlibrary_command): Update.
7065 * interps.c (interp_ui_out): Remove.
7066 * interps.h (interp_ui_out): Remove.
7068 2018-05-25 Tom Tromey <tom@tromey.com>
7070 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
7071 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
7072 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
7074 2018-05-25 Tom Tromey <tom@tromey.com>
7076 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
7077 * interps.c (interp_exec): Use scoped_restore.
7079 2018-05-25 Tom Tromey <tom@tromey.com>
7081 * remote.c (remote_target::remote_file_get): Use
7083 (remote_target::remote_file_put): Likewise.
7085 2018-05-25 Tom Tromey <tom@tromey.com>
7087 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
7089 (get_pe_section_index, add_pe_exported_sym): Update.
7090 (read_pe_exported_syms): Use gdb::def_vector.
7092 2018-05-25 Tom Tromey <tom@tromey.com>
7094 * frame.c (remove_prev_frame): Remove.
7095 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
7097 2018-05-25 Maciej W. Rozycki <macro@mips.com>
7099 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
7101 * mips-linux-nat.c (supply_fpregset): Always call
7102 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
7103 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
7104 `mips_fill_fpregset'.
7105 * mips-linux-tdep.c (mips_supply_fpregset)
7106 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
7107 (mips_fill_fpregset_wrapper): Remove functions.
7108 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
7109 (mips_linux_fpregset): Remove variable.
7110 (mips_linux_iterate_over_regset_sections): Use
7111 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
7112 (mips_linux_o32_sigframe_init): Remove comment.
7114 2018-05-25 Pedro Alves <palves@redhat.com>
7116 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
7117 (struct readahead_cache, struct packet_reg, struct
7118 remote_arch_state, class remote_state): Move higher up in the
7120 (remote_target::m_remote_state): Now an object instead of a pointer.
7121 (remote_target::get_remote_state): Adjust.
7123 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7125 * stack.c (select_and_print_frame): Delete.
7126 (struct function_bounds): Move struct within function.
7127 (func_command): Most content moved into new function
7128 find_frame_for_function, use new function, print result, add
7130 (find_frame_for_function): New function, now returns a result.
7132 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7134 * stack.c (iterate_over_block_arg_vars): Fix comment.
7135 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
7137 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7141 (scoped_restore_selected_frame::scoped_restore_selected_frame):
7143 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
7145 * frame.h (class scoped_restore_selected_frame): New class.
7146 * stack.c (print_frame_local_vars): Remove catching and rethrowing
7147 of any exception, use scoped_restore_selected_frame to restore the
7150 2018-05-24 Pedro Alves <palves@redhat.com>
7152 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
7155 2018-05-23 Tom Tromey <tom@tromey.com>
7157 * complaints.c (struct complaints): Remove.
7158 (symfile_complaint_book): Remove.
7159 (series): New global.
7160 (complaint_internal): Update.
7161 (clear_complaints): Update.
7163 2018-05-23 Tom Tromey <tom@tromey.com>
7165 * complaints.c (counters): New global.
7166 (struct complain): Remove.
7167 (struct complaints) <root>: Remove.
7168 (complaint_sentinel): Remove.
7169 (symfile_complaint_book): Update.
7170 (find_complaint) Remove.
7171 (complaint_internal, clear_complaints): Update.
7173 2018-05-23 Tom Tromey <tom@tromey.com>
7175 * complaints.c (struct complain) <file, line>: Remove.
7176 (find_complaint): Remove file, line parameters.
7177 (complaint_internal): Update.
7179 2018-05-23 Tom Tromey <tom@tromey.com>
7181 * complaints.c (vcomplaint): Remove.
7182 (complaint_internal) Merge in contents of vcomplaint.
7184 2018-05-23 Tom Tromey <tom@tromey.com>
7186 * complaints.c (struct complaints) <explanation>: Remove.
7187 (symfile_explanations): Remove.
7188 (symfile_complaint_book): Update.
7189 (vcomplaint): Update.
7190 (struct explanation): Remove.
7192 2018-05-23 Tom Tromey <tom@tromey.com>
7194 * complaints.c (symfile_complaints): Remove.
7195 (complaint_internal): Remove "complaints" parameter.
7196 (clear_complaints, vcomplaint): Remove "c" parameter.
7197 (get_complaints): Remove.
7198 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
7199 (dwarf2_debug_line_missing_file_complaint)
7200 (dwarf2_debug_line_missing_end_sequence_complaint)
7201 (dwarf2_complex_location_expr_complaint)
7202 (dwarf2_const_value_length_mismatch_complaint)
7203 (dwarf2_section_buffer_overflow_complaint)
7204 (dwarf2_macro_malformed_definition_complaint)
7205 (dwarf2_invalid_attrib_class_complaint)
7206 (create_addrmap_from_index, dw2_symtab_iter_next)
7207 (dw2_expand_marked_cus)
7208 (dw2_debug_names_iterator::find_vec_in_debug_names)
7209 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
7210 (create_debug_type_hash_table, init_cutu_and_read_dies)
7211 (partial_die_parent_scope, add_partial_enumeration)
7212 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
7213 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
7214 (read_import_statement, read_file_scope, create_dwo_cu_reader)
7215 (create_cus_hash_table, create_dwp_hash_table)
7216 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7217 (dwarf2_rnglists_process, dwarf2_ranges_process)
7218 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
7219 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
7220 (handle_struct_member_die, process_structure_scope)
7221 (read_array_type, read_common_block, read_module_type)
7222 (read_tag_pointer_type, read_typedef, read_base_type)
7223 (read_subrange_type, load_partial_dies, partial_die_info::read)
7224 (partial_die_info::read, partial_die_info::read)
7225 (partial_die_info::read, read_checked_initial_length_and_offset)
7226 (dwarf2_string_attr, read_formatted_entries)
7227 (dwarf_decode_line_header)
7228 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
7229 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
7230 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
7231 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7232 (get_signatured_type, get_DW_AT_signature_type)
7233 (decode_locdesc, file_file_name, consume_improper_spaces)
7234 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
7235 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7236 (dwarf2_symbol_mark_computed, set_die_type)
7237 (read_attribute_value): Update.
7238 * stap-probe.c (handle_stap_probe, get_stap_base_address):
7240 * dbxread.c (unknown_symtype_complaint)
7241 (lbrac_mismatch_complaint, repeated_header_complaint)
7242 (set_namestring, function_outside_compilation_unit_complaint)
7243 (read_dbx_symtab, process_one_symbol): Update.
7244 * gdbtypes.c (stub_noname_complaint): Update.
7245 * windows-nat.c (handle_unload_dll): Update.
7246 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
7247 (decode_base_type): Update.
7248 * xcoffread.c (bf_notfound_complaint, ef_complaint)
7249 (eb_complaint, record_include_begin, record_include_end)
7250 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
7251 (process_xcoff_symbol, read_symbol)
7252 (function_outside_compilation_unit_complaint)
7253 (scan_xcoff_symtab): Update.
7254 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
7255 * buildsym.c (finish_block_internal, make_blockvector)
7256 (end_symtab_get_static_block, augment_type_symtab): Update.
7257 * dtrace-probe.c (dtrace_process_dof)
7258 (dtrace_static_probe_ops::get_probes): Update.
7259 * complaints.h (struct complaint): Don't declare.
7260 (symfile_complaints): Remove.
7261 (complaint_internal): Remove "complaints" parameter.
7262 (complaint): Likewise.
7263 (clear_complaints): Likewise.
7264 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7265 (reread_symbols): Update.
7266 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
7267 (dwarf2_frame_cache, decode_frame_entry): Update.
7268 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
7269 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7270 (info_selectors_command): Update.
7271 * macrotab.c (macro_include, check_for_redefinition)
7272 (macro_undef): Update.
7273 * objfiles.c (filter_overlapping_sections): Update.
7274 * stabsread.c (invalid_cpp_abbrev_complaint)
7275 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
7276 (define_symbol, error_type, read_type, rs6000_builtin_type)
7277 (stabs_method_name_from_physname, read_member_functions)
7278 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
7279 (attach_fields_to_type, complain_about_struct_wipeout)
7280 (read_range_type, read_args, common_block_start)
7281 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
7283 * mdebugread.c (index_complaint, unknown_ext_complaint)
7284 (basic_type_complaint, bad_tag_guess_complaint)
7285 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
7286 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
7287 (parse_procedure, parse_lines)
7288 (function_outside_compilation_unit_complaint)
7289 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
7290 (bad_tag_guess_complaint, reg_value_complaint): Update.
7291 * cp-support.c (demangled_name_complaint): Update.
7292 * macroscope.c (sal_macro_scope): Update.
7293 * dwarf-index-write.c (class debug_names): Update.
7295 2018-05-23 Tom Tromey <tom@tromey.com>
7297 * complaints.c (clear_complaints): Remove "noisy" parameter.
7298 * complaints.h (clear_complaints): Update.
7299 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7300 (reread_symbols): Update.
7302 2018-05-23 Tom Tromey <tom@tromey.com>
7304 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
7306 (vcomplaint, clear_complaints): Update.
7307 (symfile_explanations): Remove some messages.
7309 2018-05-23 Tom Tromey <tom@tromey.com>
7311 * complaints.c (internal_complaint): Remove.
7312 * complaints.h (internal_complaint): Remove.
7314 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7316 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
7318 2018-05-22 Pedro Alves <palves@redhat.com>
7320 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
7321 (remote_fileio_badfd, remote_fileio_return_errno)
7322 (remote_fileio_return_success, remote_fileio_func_open)
7323 (remote_fileio_func_open, remote_fileio_func_close)
7324 (remote_fileio_func_read, remote_fileio_func_write)
7325 (remote_fileio_func_lseek, remote_fileio_func_rename)
7326 (remote_fileio_func_unlink, remote_fileio_func_stat)
7327 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7328 (remote_fileio_func_isatty, remote_fileio_func_system): Add
7329 remote_target parameter.
7330 (remote_fio_func_map) <func>: Add remote_target parameter.
7331 (do_remote_fileio_request, remote_fileio_request):
7332 * remote-fileio.h (remote_fileio_request):
7333 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
7334 remote_target parameter.
7335 (remote_notif_process, handle_notification): Adjust to pass down
7337 (remote_notif_state_allocate): Add remote_target parameter. Save
7339 * remote-notif.h (struct remote_target): Forward declare.
7340 (struct notif_client) <parse, ack, can_get_pending_events>: Add
7341 remote_target parameter.
7342 (struct remote_notif_state) <remote>: New field.
7343 (remote_notif_ack, remote_notif_parse): Add remote_target
7345 (remote_notif_state_allocate, remote_notif_state_allocate): Add
7346 remote_target parameter.
7347 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
7348 (threads_listing_context, rmt_thread_action, protocol_feature)
7349 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
7350 (packet_result, struct threads_listing_context, remote_state):
7351 Move definitions and declarations higher up.
7352 (remote_target) <~remote_target>: Declare.
7353 (remote_download_command_source, remote_file_put, remote_file_get)
7354 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
7355 (remote_hostio_pread_vFile, remote_hostio_send_command)
7356 (remote_hostio_set_filesystem, remote_hostio_open)
7357 (remote_hostio_close, remote_hostio_unlink, remote_state)
7358 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
7359 (get_memory_write_packet_size, get_memory_read_packet_size)
7360 (append_pending_thread_resumptions, remote_detach_1)
7361 (append_resumption, remote_resume_with_vcont)
7362 (add_current_inferior_and_thread, wait_ns, wait_as)
7363 (process_stop_reply, remote_notice_new_inferior)
7364 (process_initial_stop_replies, remote_add_thread)
7365 (btrace_sync_conf, remote_btrace_maybe_reopen)
7366 (remove_new_fork_children, kill_new_fork_children)
7367 (discard_pending_stop_replies, stop_reply_queue_length)
7368 (check_pending_events_prevent_wildcard_vcont)
7369 (discard_pending_stop_replies_in_queue, stop_reply)
7370 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
7371 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
7372 (remote_interrupt_as, remote_interrupt_ns)
7373 (remote_get_noisy_reply, remote_query_attached)
7374 (remote_add_inferior, remote_current_thread, get_current_thread)
7375 (set_thread, set_general_thread, set_continue_thread)
7376 (set_general_process, write_ptid)
7377 (remote_unpack_thread_info_response, remote_get_threadinfo)
7378 (parse_threadlist_response, remote_get_threadlist)
7379 (remote_threadlist_iterator, remote_get_threads_with_ql)
7380 (remote_get_threads_with_qxfer)
7381 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
7382 (get_offsets, remote_check_symbols, remote_supported_packet)
7383 (remote_query_supported, remote_packet_size)
7384 (remote_serial_quit_handler, remote_detach_pid)
7385 (remote_vcont_probe, remote_resume_with_hc)
7386 (send_interrupt_sequence, interrupt_query)
7387 (remote_notif_get_pending_events, fetch_register_using_p)
7388 (send_g_packet, process_g_packet, fetch_registers_using_g)
7389 (store_register_using_P, store_registers_using_G)
7390 (set_remote_traceframe, check_binary_download)
7391 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
7392 (remote_xfer_live_readonly_partial, remote_read_bytes)
7393 (remote_send_printf, remote_flash_write, readchar)
7394 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
7395 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
7396 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
7397 (extended_remote_disable_randomization, extended_remote_run)
7398 (send_environment_packet, extended_remote_environment_support)
7399 (extended_remote_set_inferior_cwd, remote_write_qxfer)
7400 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
7401 (packet_command): Now methods of ...
7402 (remote_target): ... this class.
7403 (m_remote_state) <remote_target>: New field.
7404 (struct remote_state) <stop_reply_queue,
7405 remote_async_inferior_event_token, wait_forever_enabled_p>: New
7407 (remote_state::remote_state): Allocate stop_reply_queue.
7408 (remote_state): Delete global.
7409 (get_remote_state_raw): Delete.
7410 (remote_target::get_remote_state): Allocate m_remote_state on
7412 (get_current_remote_target): New.
7413 (remote_ops, extended_remote_ops): Delete.
7414 (wait_forever_enabled_p, remote_async_inferior_event_token):
7415 Delete, moved to struct remote_state.
7416 (remote_target::close): Delete self. Destruction bits split to
7418 (remote_target::~remote_target): ... this.
7419 (show_memory_packet_size): Adjust to use
7420 get_current_remote_target.
7421 (struct protocol_feature) <func>: Add remote_target parameter.
7422 All callers adjusted.
7423 (curr_quit_handler_target): New.
7424 (remote_serial_quit_handler): Reimplement.
7425 (remote_target::open_1): Adjust to use get_current_remote_target.
7426 Heap-allocate remote_target/extended_remote_target instances.
7427 (vcont_builder::vcont_builder): Add remote_target parameter, and
7428 save it in m_remote. All callers adjusted.
7429 (vcont_builder::m_remote): New field.
7430 (vcont_builder::restart, vcont_builder::flush)
7431 (vcont_builder::push_action): Use it.
7432 (remote_target::commit_resume): Use it.
7433 (struct queue_iter_param) <remote>: New field.
7434 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7435 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7436 (check_pending_event_prevents_wildcard_vcont_callback)
7437 (remote_target::check_pending_events_prevent_wildcard_vcont)
7438 (remote_target::discard_pending_stop_replies)
7439 (remote_target::discard_pending_stop_replies_in_queue)
7440 (remote_target::remote_notif_remove_queued_reply): Fill in
7442 (remote_notif_get_pending_events): New.
7443 (remote_target::readchar, remote_target::remote_serial_write):
7444 Save/restore curr_quit_handler_target.
7446 (kill_new_fork_children): Fill in 'remote' field.
7447 (packet_command): Use get_current_remote_target, defer to
7448 remote_target method of same name.
7449 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7450 parameter, and save it in m_remote. All callers adjusted.
7451 (scoped_remote_fd::release): Use m_remote.
7452 (scoped_remote_fd::m_remote): New field.
7453 (remote_file_put, remote_file_get, remote_file_delete): Use
7454 get_current_remote_target, defer to remote_target method of same
7456 (remote_btrace_reset): Add remote_state paremeter. Update all
7458 (remote_async_inferior_event_handler). Pass down 'data'.
7459 (remote_new_objfile): Use get_current_remote_target.
7460 (remote_target::vcont_r_supported): New.
7461 (set_range_stepping): Use get_current_remote_target and
7462 remote_target::vcont_r_supported.
7463 (_initialize_remote): Don't allocate 'remote_state' and
7464 'stop_reply_queue' globals.
7465 * remote.h (struct remote_target): Forward declare.
7466 (getpkt, putpkt, remote_notif_get_pending_events): Add
7467 'remote_target' parameter.
7469 2018-05-22 Pedro Alves <palves@redhat.com>
7471 * remote.c (vcont_builder): Now a class. Make all data members
7473 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7475 (vcont_builder_restart): Rename to ...
7476 (vcont_builder::restart): ... this.
7477 (vcont_builder_flush): Rename to ...
7478 (vcont_builder::flush): ... this.
7479 (vcont_builder_push_action): Rename to ...
7480 (vcont_builder::push_action): ... this.
7481 (remote_target::commit_resume): Adjust.
7483 2018-05-22 Pedro Alves <palves@redhat.com>
7485 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7486 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7487 (get_fixed_memory_packet_size): New.
7488 (get_memory_packet_size): Use it.
7489 (set_memory_packet_size): Don't override the config size with
7490 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7491 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7492 Don't refer to get_memory_packet_size if not connected to a remote
7493 target. Show "(default)" if configured size is 0.
7495 2018-05-22 Pedro Alves <palves@redhat.com>
7497 * remote.c (remote_target::mourn_inferior): Move
7498 discard_pending_stop_replies call here from ...
7499 (_initialize_remote): ... here.
7501 2018-05-22 Pedro Alves <palves@redhat.com>
7503 * remote.c (compare_section_command): Remove set_general_process
7506 2018-05-22 Pedro Alves <palves@redhat.com>
7508 * remote.c (struct packet_reg, struct remote_arch_state):
7509 Move higher up in the file.
7510 (remote_state) <m_arch_states>: Store remote_arch_state values
7511 instead of remote_arch_state pointers.
7512 (remote_state::get_remote_arch_state): Adjust.
7514 2018-05-22 Pedro Alves <palves@redhat.com>
7516 * remote.c: Include <unordered_map>.
7517 (remote_state): Now a class.
7518 (remote_state) <get_remote_arch_state>: Declare method.
7519 <get_remote_arch_state>: New field.
7520 (remote_arch_state) <remote_arch_state>: Declare ctor.
7521 <regs>: Now a unique_ptr.
7522 (remote_gdbarch_data_handle): Delete.
7523 (get_remote_arch_state): Delete.
7524 (remote_state::get_remote_arch_state): New.
7525 (get_remote_state): Adjust to call remote_state's
7526 get_remote_arch_state method.
7527 (init_remote_state): Delete, bits factored out to ...
7528 (remote_arch_state::remote_arch_state): ... this new method.
7529 (get_remote_packet_size, get_memory_packet_size)
7530 (process_g_packet, remote_target::fetch_registers)
7531 (remote_target::prepare_to_store, store_registers_using_G)
7532 (remote_target::store_registers, remote_target::get_trace_status):
7533 Adjust to call remote_state's method.
7534 (_initialize_remote): Remove reference to
7535 remote_gdbarch_data_handle.
7537 2018-05-22 Pedro Alves <palves@redhat.com>
7539 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7540 pread>: New method declarations.
7541 (remote_target::open_1): Adjust.
7542 (readahead_cache_invalidate): Rename to ...
7543 (readahead_cache::invalidate): ... this, and adjust to be a class
7545 (readahead_cache_invalidate_fd): Rename to ...
7546 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7548 (remote_hostio_pwrite): Adjust.
7549 (remote_hostio_pread_from_cache): Rename to ...
7550 (readahead_cache::pread): ... this, and adjust to be a class
7552 (remote_hostio_close): Adjust.
7554 2018-05-22 Pedro Alves <palves@redhat.com>
7556 * remote.c (remote_hostio_close_cleanup): Delete.
7557 (class scoped_remote_fd): New.
7558 (remote_file_put, remote_file_get): Use it.
7560 2018-05-22 Pedro Alves <palves@redhat.com>
7562 (struct vCont_action_support): Use bool and initialize all fields.
7563 (struct readahead_cache): Initialize all fields.
7564 (remote_state): Use bool and initialize all fields.
7565 (remote_state::remote_state, remote_state::~remote_state): New.
7566 (new_remote_state): Delete.
7567 (_initialize_remote): Use new to allocate remote_state.
7569 2018-05-22 Pedro Alves <palves@redhat.com>
7573 * c-exp.y: Include "c-support.h".
7574 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7575 of tolower. Use c_ident_is_alpha to scan names.
7576 * c-lang.c: Include "c-support.h".
7577 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7578 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7579 * c-support.h: New file, with bits factored out from ...
7580 * cp-name-parser.y: ... this file.
7581 Include "c-support.h".
7582 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7583 c-support.h and renamed.
7584 (symbol_end, yylex): Adjust.
7586 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7588 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7589 parameter type to CORE_ADDR.
7590 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7591 parameter type in declaration to CORE_ADDR.
7592 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7593 target_auxv_search to get AT_HWCAP and use the result to get the
7595 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7596 to CORE_ADDR. Remove the cast of the return value to unsigned
7597 long. Fix error predicate of target_auxv_search.
7598 (ppc_linux_nat_target::read_description): Change the type of the
7599 hwcap variable to CORE_ADDR.
7601 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7603 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7604 if the size of fpscr is larger than 32 bits.
7606 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7608 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7609 (ppc32_linux_vsxregmap): New global.
7610 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7611 regcache_supply_regset, and regcache_collect_regset.
7612 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7613 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7614 (fetch_vsx_register, store_vsx_register): Remove.
7615 (fetch_vsx_registers): Add regno parameter. Get regset using
7616 ppc_linux_vsxregset. Use regset to supply registers.
7617 (store_vsx_registers): Add regno parameter. Get regset using
7618 ppc_linux_vsxregset. Use regset to collect registers.
7619 (fetch_register): Call fetch_vsx_registers instead of
7621 (store_register): Call store_vsx_registers instead of
7623 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7624 new regno parameter.
7625 (store_ppc_registers): Call store_vsx_registers with -1 for the
7626 new regno parameter.
7627 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7628 (ppc_collect_vsxregset): Remove.
7630 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7632 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7634 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7635 for vector register offset fields.
7636 (ppc64_fbsd_reg_offsets): Likewise.
7637 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7638 to vector register offset fields.
7639 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7640 to vector register offset fields.
7641 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7642 vector register offset fields.
7643 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7644 initializers for vector register offset fields.
7645 (rs6000_aix64_reg_offsets): Likewise.
7646 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7647 (ppc_supply_vrregset): Remove.
7648 (ppc_collect_vrregset): Remove.
7649 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7650 (ppc_linux_vrregset) : New function.
7651 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7652 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7653 (ppc32_linux_vrregset): Remove.
7654 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7655 and use result instead of ppc32_linux_vrregset.
7656 (ppc32_linux_reg_offsets): Remove initializers for vector register
7658 (ppc64_linux_reg_offsets): Likewise.
7659 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7660 * ppc-linux-nat.c: Include regset.h.
7661 (gdb_vrregset_t): Adjust comment to account for little-endian
7663 (supply_vrregset, fill_vrregset): Remove.
7664 (fetch_altivec_register, store_altivec_register): Remove.
7665 (fetch_altivec_registers): Add regno parameter. Get regset using
7666 ppc_linux_vrregset. Use regset to supply registers.
7667 (store_altivec_registers): Add regno parameter. Get regset using
7668 ppc_linux_vrregset. Use regset to collect registers.
7669 (fetch_register): Call fetch_altivec_registers instead of
7670 fetch_altivec_register.
7671 (store_register): Call store_altivec_registers instead of
7672 store_altivec_register.
7673 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7674 the new regno parameter.
7675 (store_ppc_registers): Call store_altivec_registers with -1 for
7676 the new regno parameter.
7678 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7680 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7681 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7682 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7683 (gdb_vrregset_t): Change array type size to
7684 PPC_LINUX_SIZEOF_VRREGSET.
7685 (gdb_vsxregset_t): Change array type size to
7686 PPC_LINUX_SIZEOF_VSXREGSET.
7687 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7688 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7689 PPC_LINUX_SIZEOF_VSXREGSET.
7691 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7693 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7694 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7696 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7697 ppc_linux_target_wordsize with tid.
7698 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7700 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7701 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7702 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7703 tid parameter. Remove static specifier.
7704 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7705 (ppc_linux_target_wordsize): New declaration.
7707 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7709 * arch/ppc-linux-common.c: New file.
7710 * arch/ppc-linux-common.h: New file.
7711 * arch/ppc-linux-tdesc.h: New file.
7712 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7713 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7714 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7715 arch/ppc-linux-tdesc.h.
7716 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7717 arch/ppc-linux-tdesc.h.
7718 (ppc_linux_nat_target::read_description): Remove target
7719 description matching code. Fill a ppc_linux_features struct and
7720 call ppc_linux_match_description with it. Move comment about ISA
7721 2.05 to ppc-linux-common.c.
7722 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7723 arch/ppc-linux-tdesc.h.
7724 (ppc_linux_core_read_description): Remove target description
7725 matching code. Fill a ppc_linux_features struct and call
7726 ppc_linux_match_description with it.
7727 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7728 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7729 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7730 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7731 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7732 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7733 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7734 (tdesc_powerpc_e500l): Remove.
7736 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7738 * ada-lang.c (catch_assert_command): Pass empty string instead
7739 of NULL for excep_string argument.
7741 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7743 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7744 the width of the requested register exceeds the width of the
7747 2018-05-21 Tom Tromey <tom@tromey.com>
7749 * printcmd.c (output_command): Remove.
7750 (output_command_const): Rename to output_command.
7751 * valprint.h (output_command): Rename from output_command_const.
7752 * tracepoint.c (trace_dump_actions): Call output_command.
7754 2018-05-21 Tom Tromey <tom@tromey.com>
7756 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7757 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7758 * ada-lang.h (create_ada_exception_catchpoint): Update.
7759 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7761 (create_excep_cond_exprs, ~ada_catchpoint)
7762 (should_stop_exception, print_one_exception)
7763 (print_mention_exception, print_recreate_exception): Update.
7764 (ada_get_next_arg): Remove.
7765 (catch_ada_exception_command_split): Use std::string. Change type
7766 of "excep_string", "cond_string".
7767 (catch_ada_exception_command): Update.
7768 (create_ada_exception_catchpoint): Change type of excep_string.
7769 (ada_exception_sal): Remove excep_string parameter.
7770 (~ada_catchpoint): Remove.
7772 2018-05-21 Tom Tromey <tom@tromey.com>
7774 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7777 2018-05-21 Tom Tromey <tom@tromey.com>
7779 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7780 Return unique_xmalloc_ptr.
7781 (print_it_exception): Update.
7783 2018-05-21 Tom Tromey <tom@tromey.com>
7785 * tracepoint.c (trace_dump_actions): Use std::string.
7787 2018-05-21 Tom Tromey <tom@tromey.com>
7789 * symfile.c (reread_symbols): Use std::string for original_name.
7791 2018-05-21 Tom Tromey <tom@tromey.com>
7793 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7794 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7797 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7799 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7801 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7802 * objfiles.c (get_objfile_bfd_data): Allocate
7803 objfile_per_bfd_storage with obstack_new when allocating on
7806 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7808 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7810 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7811 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7812 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7813 (add_pending): Likewise.
7814 (parse_symbol): Likewise.
7815 (parse_partial_symbols): Likewise.
7816 (psymtab_to_symtab_1): Likewise.
7817 (new_psymtab): Likewise.
7818 (elfmdebug_build_psymtabs): Likewise.
7819 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7820 * objfiles.c (get_objfile_bfd_data): Likewise.
7821 (objfile_register_static_link): Likewise.
7822 * psymtab.c (allocate_psymtab): Likewise.
7823 * stabsread.c (read_member_functions): Likewise.
7824 * xcoffread.c (xcoff_end_psymtab): Likewise.
7826 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7828 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7829 compiler supports std::is_trivially_constructible.
7830 * common/poison.h: Include obstack.h.
7831 (IsMallocable): Define to is_trivially_constructible if the
7832 compiler supports it, define to true_type otherwise.
7836 (XOBNEWVEC): Redefine.
7837 * gdb_obstack.h (obstack_zalloc): New.
7838 (OBSTACK_ZALLOC): Redefine.
7839 (obstack_calloc): New.
7840 (OBSTACK_CALLOC): Redefine.
7842 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7843 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7845 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7846 obstack_calloc/obstack_zalloc.
7847 (gdbarch_obstack_zalloc): Remove.
7848 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7850 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7852 * stack.c (backtrace_command_1): Remove useless variable int i.
7854 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7856 * stack.c (print_frame_info): Fix comment.
7858 2018-05-18 Tom Tromey <tom@tromey.com>
7860 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7861 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7862 (~dwarf2_per_objfile): Update
7863 (dwarf2_get_dwz_file): Use new.
7864 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7867 2018-05-18 Tom Tromey <tom@tromey.com>
7869 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7871 * dwarf2read.c (struct dwp_file): Add constructor and
7873 (open_and_init_dwp_file): Return a unique_ptr.
7874 (dwarf2_per_objfile, create_dwp_hash_table)
7875 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7876 (lookup_dwo_unit_in_dwp): Update.
7877 (open_and_init_dwp_file, get_dwp_file): Update.
7879 2018-05-18 Tom Tromey <tom@tromey.com>
7881 * dwarf2read.c (dwarf2_per_objfile): Update.
7882 (struct mapped_index): Add initializers.
7883 (dwarf2_read_index): Use new.
7884 (dw2_symtab_iter_init): Update.
7885 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7888 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7890 * dwarf2read.c (mapped_index) <total_size>: Remove.
7892 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7894 * unittests/format_pieces-selftests.c (test_format_specifier):
7897 2018-05-18 Tom Tromey <tom@tromey.com>
7899 * c-typeprint.c (maybe_print_hole): New function.
7900 (c_print_type_struct_field_offset): Update.
7901 (c_type_print_base_struct_union): Call maybe_print_hole.
7903 2018-05-17 Keith Seitz <keiths@redhat.com>
7905 * breakpoint.c (build_bpstat_chain): New function, moved from
7907 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7908 If no stop chain is passed, call build_bpstat_chain to build it.
7909 * breakpoint.h (build_bpstat_chain): Declare.
7910 (bpstat_stop_status): Move documentation here from breakpoint.c.
7911 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7912 build the stop chain and pass it to skip_inline_frames.
7913 Pass this stop chain to bpstat_stop_status.
7914 * inline-frame.c: Include breakpoint.h.
7915 (stopped_by_user_bp_inline_frame): New function.
7916 (skip_inline_frames): Add parameter `stop_chain'.
7917 Move documention to inline-frame.h.
7918 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7919 whether the frame should be elided.
7920 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7921 Add moved documentation and update for new parameter.
7923 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7926 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7927 unittests/format_pieces-selftests.c.
7928 * common/format.h (format_piece) <operator==>: New.
7929 (format_pieces) <operator[]>: Remove.
7930 * common/format.c (format_pieces::format_pieces): Handle \e.
7931 * unittests/format_pieces-selftests.c: New.
7933 2018-05-17 Tom Tromey <tom@tromey.com>
7936 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7937 (dw2_instantiate_symtab): Add skip_partial parameter.
7938 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7939 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7940 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7941 (dw2_expand_symtabs_matching_one)
7942 (dw2_find_pc_sect_compunit_symtab)
7943 (dw2_debug_names_lookup_symbol)
7944 (dw2_debug_names_expand_symtabs_for_function): Update.
7945 (init_cutu_and_read_dies): Add skip_partial parameter.
7946 (process_psymtab_comp_unit, build_type_psymtabs_1)
7947 (process_skeletonless_type_unit, load_partial_comp_unit)
7948 (psymtab_to_symtab_1): Update.
7949 (load_full_comp_unit): Add skip_partial parameter.
7950 (process_imported_unit_die, dwarf2_read_addr_index)
7951 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7952 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7953 (read_signatured_type): Update.
7955 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7957 * value.c (release_value): Remove unused variable.
7958 (record_latest_value): Likewise.
7959 (access_value_history): Likewise.
7960 (preserve_values): Likewise.
7962 2018-05-17 Tom Tromey <tom@tromey.com>
7964 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7967 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7970 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7971 Also handle registers whose width is not a multiple of
7973 (linux_nat_trad_target::store_register): Likewise.
7975 2018-05-16 Tom Tromey <tom@tromey.com>
7977 * gdbcore.h (core_bfd): Redefine.
7978 * corelow.c (core_target::close): Update.
7979 (core_target_open): Update.
7980 * progspace.h (struct program_space) <cbfd>: Now a
7983 2018-05-16 Tom Tromey <tom@tromey.com>
7986 * symfile-add-flags.h (enum symfile_add_flags)
7987 <SYMFILE_NOT_FILENAME>: New constant.
7988 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
7989 objfile name from BFD.
7990 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
7991 * minidebug.c (find_separate_debug_file_in_section): Put
7992 ".gnu_debugdata" into BFD's file name.
7994 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
7996 * regcache.c (regcache_read_ftype, regcache_write_ftype):
7999 2018-05-15 Tamar Christina <tamar.christina@arm.com>
8002 * aarch64-tdep.c (aarch64_analyze_prologue,
8003 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
8004 Indicate not interested in errors.
8006 2018-05-15 Maciej W. Rozycki <macro@mips.com>
8008 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
8009 Supply the MIPS_ZERO_REGNUM register.
8011 2018-05-15 Maciej W. Rozycki <macro@mips.com>
8013 * mips-tdep.c (mask_address_var): Make variable static.
8015 2018-05-14 Tom Tromey <tom@tromey.com>
8017 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
8019 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
8021 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
8022 FXSAVE_ADDR for the mxcsr register.
8024 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
8026 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
8028 2018-05-11 Pedro Alves <palves@redhat.com>
8030 * corelow.c (core_target) <core_target>: No longer inline.
8031 Initialize m_core_gdbarch, m_core_vec and build the section table
8033 <~core_target>: New.
8034 <core_gdbarch, get_core_register_section>: New methods.
8035 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
8036 factored out from ...
8037 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
8039 (sniff_core_bfd): Add gdbarch parameter.
8040 (core_close): Delete, merged into ...
8041 (core_target::close): ... here. Delete self.
8042 (core_close_cleanup): Delete.
8043 (core_target_open): Allocate a core_target on the heap. Use a
8044 unique_ptr instead of a cleanup. Bits moved into the core_target
8045 ctor. Adjust to use core_target methods instead of globals.
8046 (get_core_register_section): Rename to ...
8047 (core_target::get_core_register_section): ... this and adjust.
8048 (struct get_core_registers_cb_data): New.
8049 (get_core_registers_cb): Use it. Use bool.
8050 (core_target::fetch_registers, core_target::files_info)
8051 (core_target::xfer_partial, core_target::read_description)
8052 (core_target::pid_to, core_target::thread_name): Adjust to
8053 reference class fields instead of globals.
8054 * target.h (struct target_ops_deleter, target_ops_up): New.
8056 2018-05-11 Pedro Alves <palves@redhat.com>
8058 * corefile.c (core_file_command): Move to corelow.c.
8059 * corelow.c (the_core_target): Delete.
8060 (core_file_command): Moved from corefile.c. Check exec_bfd
8061 instead of the_core_target. Use target_detach instead of calling
8062 into the_core_target directly.
8063 (maybe_say_no_core_file_now): New.
8064 (core_target::detach): Use it.
8065 (_initialize_corelow): Remove references to the_core_target.
8066 * gdbcore.h (the_core_target): Delete.
8068 2018-05-11 Tom Tromey <tromey@redhat.com>
8069 Pedro Alves <palves@redhat.com>
8071 * corefile.c (core_bfd): Remove.
8072 * gdbcore.h (core_bfd): Now a macro.
8073 * progspace.h (struct program_space) <cbfd>: New field.
8075 2018-05-11 Tom Tromey <tom@tromey.com>
8077 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
8080 2018-05-10 Tom Tromey <tom@tromey.com>
8082 * configure: Rebuild.
8083 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
8085 2018-05-10 Joel Brobecker <brobecker@adacore.com>
8088 * regformats/regdat.sh: Adjust script, following the addition
8089 of the new expedite_regs parameter to init_target_desc.
8091 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
8094 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
8095 set_gdbarch_significant_addr_bit.
8096 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
8097 set_gdbarch_significant_addr_bit.
8098 * utils.c (address_significant): Update to sign extend addr.
8100 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
8102 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
8103 (xtensa_linux_init_abi): Limit tdep->num_regs by
8104 tdep->num_nopriv_regs.
8105 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
8106 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
8109 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
8111 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
8113 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8115 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
8116 (I387_MXCSR_INIT_VAL): New constant.
8117 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
8118 buffer if it was supplied by the inferior.
8119 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
8120 (i387_xsave_get_clear_bv): New function.
8121 (i387_supply_xsave): Only read x87 control registers from the
8122 xsave buffer if the feature is enabled, and the state will have
8123 been written, otherwise, provide a suitable default.
8124 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
8125 including x87 control registers. Update control registers if they
8126 have changed from the default value, and mark features as enabled
8128 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
8130 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
8132 * spu-tdep.c (info_spu_event_command): Fix output formatting.
8134 2018-05-07 Tom Tromey <tom@tromey.com>
8136 * configure: Rebuild.
8137 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
8139 2018-05-07 Tom Tromey <tom@tromey.com>
8142 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
8143 bit. Use correct value for VDIV.
8145 2018-05-04 Tom Tromey <tom@tromey.com>
8147 * configure: Rebuild.
8148 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
8150 2018-05-04 Tom Tromey <tom@tromey.com>
8152 * linux-record.c (record_linux_system_call) <case
8153 RECORD_SYS_RECVFROM>: Add "break".
8155 2018-05-04 Tom Tromey <tom@tromey.com>
8157 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
8158 Add missing "break".
8159 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
8160 Add missing "break".
8162 2018-05-04 Tom Tromey <tom@tromey.com>
8164 * rs6000-tdep.c (ppc_process_record_op4)
8165 (ppc_process_record_op63): Add fall-through comment.
8167 2018-05-04 Tom Tromey <tom@tromey.com>
8169 * i386-tdep.c (i386_process_record): Add fall-through comment.
8171 2018-05-04 Tom Tromey <tom@tromey.com>
8173 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
8176 2018-05-04 Tom Tromey <tom@tromey.com>
8178 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
8179 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
8180 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
8182 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
8184 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
8187 2018-05-04 Tom Tromey <tom@tromey.com>
8189 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
8191 2018-05-04 Tom Tromey <tom@tromey.com>
8193 * s390-tdep.c (s390_process_record): Fix fall-through comments.
8194 * xcoffread.c (scan_xcoff_symtab): Move comment later.
8195 * symfile.c (section_is_mapped): Fix fall-through comment.
8196 * stabsread.c (define_symbol, read_member_functions): Fix
8197 fall-through comment.
8198 * s390-linux-tdep.c (s390_process_record): Fix fall-through
8200 * remote.c (remote_wait_as): Fix fall-through comment.
8201 * p-exp.y (yylex): Fix fall-through comment.
8202 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
8204 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
8205 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
8206 * jv-exp.y (yylex): Fix fall-through comment.
8207 * go-exp.y (lex_one_token): Fix fall-through comment.
8208 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
8209 fall-through comment.
8210 * f-exp.y (yylex): Fix fall-through comment.
8211 * dwarf2read.c (process_die): Fix fall-through comments.
8212 * dbxread.c (process_one_symbol): Fix fall-through comment.
8213 * d-exp.y (lex_one_token): Fix fall-through comment.
8214 * cp-name-parser.y (yylex): Fix fall-through comment.
8215 * coffread.c (coff_symtab_read): Fix fall-through comment.
8216 * c-exp.y (lex_one_token): Fix fall-through comment.
8217 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
8219 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
8222 2018-05-04 Tom Tromey <tom@tromey.com>
8225 * NEWS: Mention gdb.execute change.
8226 * gdbcmd.h (execute_control_command): Don't declare.
8227 * python/python.c (execute_gdb_command): Use read_command_lines_1,
8228 execute_control_commands, execute_control_commands_to_string.
8229 * cli/cli-script.h (execute_control_commands)
8230 (execute_control_commands_to_string): Declare.
8231 (execute_control_command): Add from_tty parameter.
8232 * cli/cli-script.c (execute_control_commands)
8233 (execute_control_commands_to_string): New functions.
8234 (execute_user_command): Use execute_control_commands.
8235 (execute_control_command_1): Add "from_tty" parameter. Update.
8236 (execute_control_command): Likewise.
8238 2018-05-04 Tom Tromey <tom@tromey.com>
8241 * NEWS: Mention that breakpoint commands are writable.
8242 * python/py-breakpoint.c (bppy_set_commands): New function.
8243 (breakpoint_object_getset) <"commands">: Use it.
8245 2018-05-04 Tom Tromey <tom@tromey.com>
8247 * tracepoint.c (actions_command): Update.
8248 * mi/mi-cmd-break.c (mi_command_line_array)
8249 (mi_command_line_array_cnt, mi_command_line_array_ptr)
8250 (mi_read_next_line): Remove.
8251 (mi_cmd_break_commands): Update.
8252 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
8254 * cli/cli-script.c (get_command_line): Update.
8255 (process_next_line): Use function_view. Constify.
8256 (recurse_read_control_structure, read_command_lines)
8257 (read_command_lines_1): Change argument types to function_view.
8258 (do_define_command, document_command): Update.
8259 * breakpoint.h (check_tracepoint_command): Don't declare.
8260 * breakpoint.c (check_tracepoint_command): Remove.
8261 (commands_command_1, create_tracepoint_from_upload): Update.
8263 2018-05-04 Tom Tromey <tom@tromey.com>
8266 * cli/cli-script.h (enum command_control_type) <define_control>:
8268 * cli/cli-script.c (multi_line_command_p): Handle define_control.
8269 (build_command_line, execute_control_command_1)
8270 (process_next_line): Likewise.
8271 (do_define_command): New function, extracted from define_command.
8272 (define_command): Use it.
8274 2018-05-04 Tom Tromey <tom@tromey.com>
8276 * tracepoint.c (actions_command): Update.
8277 * cli/cli-script.h (read_command_lines): Update.
8278 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
8279 (MAX_TMPBUF): Remove define.
8280 (define_command): Use string_printf.
8281 (document_command): Likewise.
8282 * breakpoint.c (commands_command_1): Update.
8284 2018-05-04 Tom Tromey <tom@tromey.com>
8286 * top.c (execute_command): Update.
8287 * cli/cli-script.h (print_command_lines): Now varargs.
8288 * cli/cli-script.c (print_command_lines): Now varargs.
8289 (execute_control_command_1) <case while_control, case if_control>:
8292 2018-05-04 Tom Tromey <tom@tromey.com>
8294 * tracepoint.c (all_tracepoint_actions): Rename from
8295 all_tracepoint_actions_and_cleanup. Change return type.
8296 (actions_command, encode_actions_1, encode_actions)
8297 (trace_dump_actions, tdump_command): Update.
8298 * remote.c (remote_download_command_source): Update.
8299 * python/python.c (gdbpy_eval_from_control_command)
8300 (python_command, python_interactive_command): Update.
8301 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8302 * guile/guile.c (guile_command)
8303 (gdbscm_eval_from_control_command, guile_command): Update.
8304 * compile/compile.c (compile_code_command)
8305 (compile_print_command, compile_to_object): Update.
8306 * cli/cli-script.h (struct command_lines_deleter): New.
8307 (counted_command_line): New typedef.
8308 (struct command_line): Add constructor, destructor.
8309 <body_list>: Remove.
8310 <body_list_0, body_list_1>: New members.
8311 (command_line_up): Remove typedef.
8312 (read_command_lines, read_command_lines_1, get_command_line):
8314 (copy_command_lines): Don't declare.
8315 * cli/cli-script.c (build_command_line): Use "new".
8316 (get_command_line): Return counted_command_line.
8317 (print_command_lines, execute_user_command)
8318 (execute_control_command_1, while_command, if_command): Update.
8319 (realloc_body_list): Remove.
8320 (process_next_line, recurse_read_control_structure): Update.
8321 (read_command_lines, read_command_lines_1): Return counted_command_line.
8322 (free_command_lines): Use "delete".
8323 (copy_command_lines): Remove.
8324 (define_command, document_command, show_user_1): Update.
8325 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
8326 a counted_command_line.
8327 * breakpoint.h (counted_command_line): Remove typedef.
8328 (breakpoint_set_commands): Update.
8329 * breakpoint.c (check_no_tracepoint_commands)
8330 (validate_commands_for_breakpoint): Update.
8331 (breakpoint_set_commands): Change commands to be a
8332 counted_command_line.
8333 (commands_command_1, update_dprintf_command_list)
8334 (create_tracepoint_from_upload): Update.
8336 2018-05-04 Tom Tromey <tom@tromey.com>
8338 * cli/cli-decode.h (cmd_list_element): New constructor.
8339 (~cmd_list_element): New destructor.
8340 (struct cmd_list_element): Add initializers.
8341 * cli/cli-decode.c (do_add_cmd): Use "new".
8342 (delete_cmd): Use "delete".
8344 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8345 Pedro Alves <palves@redhat.com>
8347 PR breakpoints/19806 and support for PR external/20207.
8348 * NEWS: Mention Aarch64 watchpoint improvements.
8349 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
8350 watchpoints and PR external/20207 watchpoints.
8351 * nat/aarch64-linux-hw-point.c
8352 (kernel_supports_any_contiguous_range): New.
8353 (aarch64_watchpoint_offset): New.
8354 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
8355 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
8356 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
8357 (aarch64_align_watchpoint): New parameters aligned_offset_p and
8358 next_addr_orig_p. Support PR external/20207 watchpoints.
8359 (aarch64_downgrade_regs): New.
8360 (aarch64_dr_state_insert_one_point): New parameters offset and
8362 (aarch64_dr_state_remove_one_point): Likewise.
8363 (aarch64_handle_breakpoint): Update caller.
8364 (aarch64_handle_aligned_watchpoint): Likewise.
8365 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
8367 (aarch64_linux_set_debug_regs): Remove const from state. Call
8368 aarch64_downgrade_regs.
8369 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
8370 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
8371 (DR_CONTROL_MASK): ... this.
8372 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
8373 (unsigned int aarch64_watchpoint_offset): New prototype.
8374 (aarch64_linux_set_debug_regs): Remove const from state.
8375 * utils.c (align_up, align_down): Move to ...
8376 * common/common-utils.c (align_up, align_down): ... here.
8377 * utils.h (align_up, align_down): Move to ...
8378 * common/common-utils.h (align_up, align_down): ... here.
8380 2018-05-04 Joel Brobecker <brobecker@adacore.com>
8382 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
8383 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
8384 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
8385 Re-implement to match the ABI as summarized in GCC's
8386 gcc/config/sparc/sparc.c. All callers updated.
8387 (sparc32_store_arguments): Remove assertion.
8389 2018-05-04 Tom Tromey <tom@tromey.com>
8391 * printcmd.c: Don't include tui.h.
8392 (decode_format): Use skip_spaces.
8394 2018-05-04 Tom Tromey <tom@tromey.com>
8397 * printcmd.c (last_count): New global.
8398 (x_command): Use saved count when repeating.
8400 2018-05-04 Tom Tromey <tom@tromey.com>
8402 * nto-procfs.c (do_closedir_cleanup): Remove.
8403 (procfs_pidlist): Use gdb_dir_up.
8404 * procfs.c (do_closedir_cleanup): Remove.
8405 (proc_update_threads): Use gdb_dir_up.
8406 * common/filestuff.h (struct gdb_dir_deleter): New.
8407 (gdb_dir_up): New typedef.
8409 2018-05-04 Tom Tromey <tom@tromey.com>
8411 * ada-lang.c (print_mention_exception): Use std::string.
8413 2018-05-04 Tom Tromey <tom@tromey.com>
8415 * ada-lang.c (create_excep_cond_exprs): Update.
8416 (ada_exception_catchpoint_cond_string): Use std::string.
8418 2018-05-04 Tom Tromey <tom@tromey.com>
8420 * ada-lang.c (xget_renaming_scope): Return std::string.
8421 (old_renaming_is_invisible): Update.
8423 2018-05-04 Tom Tromey <tom@tromey.com>
8425 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8426 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8428 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8430 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8432 2018-05-04 Tom Tromey <tom@tromey.com>
8434 * remote.c (remote_query_supported_append): Change type.
8435 (remote_check_symbols): Update.
8437 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8440 * configure.ac: Prepend libpython.
8441 * python/python-config.py: Likewise.
8442 * configure: Regenerate.
8444 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8446 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8448 2018-05-03 Pedro Alves <palves@redhat.com>
8451 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8452 override. Write 'true' instead of '1'.
8453 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8456 2018-05-02 Pedro Alves <palves@redhat.com>
8458 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8459 add_inf_child_target.
8460 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8461 add_inf_child_target.
8462 * aix-thread.c (aix_thread_target_info): New.
8463 (aix_thread_target) <shortname, longname, doc>: Delete.
8465 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8466 add_inf_child_target.
8467 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8468 add_inf_child_target.
8469 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8470 add_inf_child_target.
8471 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8472 add_inf_child_target.
8473 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8474 add_inf_child_target.
8475 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8476 add_inf_child_target.
8477 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8478 add_inf_child_target.
8479 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8480 add_inf_child_target.
8481 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8482 add_inf_child_target.
8483 * bfd-target.c (target_bfd_target_info): New.
8484 (target_bfd) <shortname, longname, doc>: Delete.
8486 * bsd-kvm.c (bsd_kvm_target_info): New.
8487 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8489 (bsd_kvm_target::open): Rename to ...
8490 (bsd_kvm_target_open): ... this. Adjust.
8491 * bsd-uthread.c (bsd_uthread_target_info): New.
8492 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8494 * corefile.c (core_file_command): Adjust.
8495 * corelow.c (core_target_info): New.
8496 (core_target) <shortname, longname, doc>: Delete.
8498 (core_target::open): Rename to ...
8499 (core_target_open): ... this. Adjust.
8500 * ctf.c (ctf_target_info): New.
8501 (ctf_target) <shortname, longname, doc>: Delete.
8503 (ctf_target::open): Rename to ...
8504 (ctf_target_open): ... this.
8505 (_initialize_ctf): Adjust.
8506 * exec.c (exec_target_info): New.
8507 (exec_target) <shortname, longname, doc>: Delete.
8509 (exec_target::open): Rename to ...
8510 (exec_target_open): ... this.
8511 * gdbcore.h (core_target_open): Declare.
8512 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8513 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8514 add_inf_child_target.
8515 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8516 add_inf_child_target.
8517 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8518 add_inf_child_target.
8519 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8520 add_inf_child_target.
8521 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8522 add_inf_child_target.
8523 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8524 add_inf_child_target.
8525 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8526 add_inf_child_target.
8527 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8528 add_inf_child_target.
8529 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8530 add_inf_child_target.
8531 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8532 add_inf_child_target.
8533 * inf-child.c (inf_child_target_info): New.
8534 (inf_child_target::info): New.
8535 (inf_child_open_target): Remove 'target' parameter. Use
8536 get_native_target instead.
8537 (inf_child_target::open): Delete.
8538 (add_inf_child_target): New.
8539 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8542 (add_inf_child_target): Declare.
8543 (inf_child_open_target): Declare.
8544 * linux-thread-db.c (thread_db_target_info): New.
8545 (thread_db_target) <shortname, longname, doc>: Delete.
8547 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8548 add_inf_child_target.
8549 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8550 add_inf_child_target.
8551 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8552 add_inf_child_target.
8553 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8554 add_inf_child_target.
8555 * make-target-delegates (print_class): Adjust.
8556 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8557 add_inf_child_target.
8558 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8559 add_inf_child_target.
8560 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8561 add_inf_child_target.
8562 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8563 add_inf_child_target.
8564 * nto-procfs.c (nto_native_target_info): New.
8565 (nto_procfs_target_native) <shortname, longname, doc>:
8568 (nto_procfs_target_info): New.
8569 (nto_procfs_target_procfs) <shortname, longname, doc>:
8572 (init_procfs_targets): Adjust.
8573 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8574 add_inf_child_target.
8575 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8576 add_inf_child_target.
8577 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8578 add_inf_child_target.
8579 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8580 add_inf_child_target.
8581 * ravenscar-thread.c (ravenscar_target_info): New.
8582 (ravenscar_thread_target) <shortname, longname, doc>:
8585 * record-btrace.c (record_btrace_target_info):
8586 (record_btrace_target) <shortname, longname, doc>: Delete.
8588 (record_btrace_target::open): Rename to ...
8589 (record_btrace_target_open): ... this. Adjust.
8590 * record-full.c (record_longname, record_doc): New.
8591 (record_full_base_target) <shortname, longname, doc>: Delete.
8593 (record_full_target_info): New.
8594 (record_full_target): <shortname>: Delete.
8596 (record_full_core_open_1, record_full_open_1): Update comments.
8597 (record_full_base_target::open): Rename to ...
8598 (record_full_open): ... this.
8599 (cmd_record_full_restore): Update.
8600 (_initialize_record_full): Update.
8601 * remote-sim.c (remote_sim_target_info): New.
8602 (gdbsim_target) <shortname, longname, doc>: Delete.
8604 (gdbsim_target::open): Rename to ...
8605 (gdbsim_target_open): ... this.
8606 (_initialize_remote_sim): Adjust.
8607 * remote.c (remote_doc): New.
8608 (remote_target_info): New.
8609 (remote_target) <shortname, longname, doc>: Delete.
8611 (extended_remote_target_info): New.
8612 (extended_remote_target) <shortname, longname, doc>: Delete.
8614 (remote_target::open_1): Make static. Adjust.
8615 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8616 * s390-linux-nat.c (_initialize_s390_nat): Use
8617 add_inf_child_target.
8618 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8619 add_inf_child_target.
8620 * sol-thread.c (thread_db_target_info): New.
8621 (sol_thread_target) <shortname, longname, doc>: Delete.
8623 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8624 add_inf_child_target.
8625 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8626 add_inf_child_target.
8627 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8628 add_inf_child_target.
8629 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8630 add_inf_child_target.
8631 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8632 add_inf_child_target.
8633 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8634 add_inf_child_target.
8635 * spu-linux-nat.c (_initialize_spu_nat): Use
8636 add_inf_child_target.
8637 * spu-multiarch.c (spu_multiarch_target_info): New.
8638 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8640 * target-delegates.c: Regenerate.
8641 * target.c: Include <unordered_map>.
8642 (target_ops_p): Delete.
8643 (DEF_VEC_P(target_ops_p)): Delete.
8644 (target_factories): New.
8645 (test_target_info): New.
8646 (test_target_ops::info): New.
8647 (open_target): Adjust to use target_factories.
8648 (add_target_with_completer): Rename to ...
8649 (add_target): ... this. Change prototype. Register target_info
8650 and open callback in target_factories. Register target_info in
8651 command context instead of target_ops.
8652 (add_target): Delete old implementation.
8653 (add_deprecated_target_alias): Change prototype. Adjust.
8654 (the_native_target): New.
8655 (set_native_target, get_native_target): New.
8656 (find_default_run_target): Use the_native_target.
8657 (find_attach_target, find_run_target): Simplify.
8658 (target_ops::open): Delete.
8659 (dummy_target_info): New.
8660 (dummy_target::shortname, dummy_target::longname)
8661 (dummy_target::doc): Delete.
8662 (dummy_target::info): New.
8663 (debug_target::shortname, debug_target::longname)
8664 (debug_target::doc): Delete.
8665 (debug_target::info): New.
8666 * target.h (struct target_info): New.
8667 (target_ops::~target_ops): Add comment.
8668 (target_ops::info): New.
8669 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8670 longer virtual. Implement in terms of target_info.
8671 (set_native_target, get_native_target): Declare.
8672 (target_open_ftype): New.
8673 (add_target, add_target_with_completer)
8674 (add_deprecated_target_alias): Change prototype.
8675 (test_target) <shortname, longname, doc>: Delete.
8677 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8678 add_inf_child_target.
8679 * tracefile-tfile.c (tfile_target_info): New.
8680 (tfile_target) <shortname, longname, doc>: Delete.
8682 (tfile_target::open): Rename to ...
8683 (tfile_target_open): ... this.
8684 (_initialize_tracefile_tfile): Adjust.
8685 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8686 add_inf_child_target.
8687 * windows-nat.c (_initialize_windows_nat): Use
8688 add_inf_child_target.
8689 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8690 add_inf_child_target.
8692 2018-05-02 Pedro Alves <palves@redhat.com>
8694 * linux-nat.h (linux_nat_target) <low_new_thread,
8695 low_delete_thread, low_new_fork, low_forget_process,
8696 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8697 New virtual methods.
8698 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8699 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8700 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8701 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8702 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8704 * linux-fork.c (delete_fork): Adjust to call low method.
8705 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8706 (linux_nat_new_fork, linux_nat_forget_process_hook)
8707 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8708 (linux_nat_status_is_event):
8709 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8710 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8712 (sigtrap_is_event): Rename to ...
8713 (linux_nat_target::low_status_is_event): ... this.
8714 (linux_nat_set_status_is_event): Delete.
8715 (save_stop_reason, linux_nat_wait_1)
8716 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8718 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8719 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8720 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8721 (linux_nat_set_prepare_to_resume): Delete.
8722 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8723 low virtual methods.
8724 * amd64-linux-nat.c: Likewise.
8725 * arm-linux-nat.c: Likewise.
8726 * i386-linux-nat.c: Likewise.
8727 * ia64-linux-nat.c: Likewise.
8728 * mips-linux-nat.c: Likewise.
8729 * ppc-linux-nat.c: Likewise.
8730 * s390-linux-nat.c: Likewise.
8731 * sparc64-linux-nat.c: Likewise.
8732 * x86-linux-nat.c: Likewise.
8733 * x86-linux-nat.h: Include "nat/x86-linux.h".
8734 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8735 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8738 2018-05-02 Pedro Alves <palves@redhat.com>
8740 * target.h (target_ops)
8741 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8742 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8743 stopped_by_watchpoint, have_continuable_watchpoint,
8744 stopped_data_address, watchpoint_addr_within_range,
8745 can_accel_watchpoint_condition, can_run, thread_alive,
8746 has_all_memory, has_memory, has_stack, has_registers,
8747 has_execution, can_async_p, is_async_p, supports_non_stop,
8748 always_non_stop_p, can_execute_reverse, supports_multi_process,
8749 supports_enable_disable_tracepoint,
8750 supports_disable_randomization, supports_string_tracing,
8751 supports_evaluation_of_breakpoint_conditions,
8752 can_run_breakpoint_commands, filesystem_is_local,
8753 can_download_tracepoint, get_trace_state_variable_value,
8754 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8755 record_is_replaying, record_will_replay,
8756 augmented_libraries_svr4_read>: Adjust to return bool.
8757 * aarch64-linux-nat.c: All implementations adjusted.
8758 * aix-thread.c: All implementations adjusted.
8759 * arm-linux-nat.c: All implementations adjusted.
8760 * breakpoint.c: All implementations adjusted.
8761 * bsd-kvm.c: All implementations adjusted.
8762 * bsd-uthread.c: All implementations adjusted.
8763 * corelow.c: All implementations adjusted.
8764 * ctf.c: All implementations adjusted.
8765 * darwin-nat.c: All implementations adjusted.
8766 * darwin-nat.h: All implementations adjusted.
8767 * exec.c: All implementations adjusted.
8768 * fbsd-nat.c: All implementations adjusted.
8769 * fbsd-nat.h: All implementations adjusted.
8770 * gnu-nat.c: All implementations adjusted.
8771 * gnu-nat.h: All implementations adjusted.
8772 * go32-nat.c: All implementations adjusted.
8773 * ia64-linux-nat.c: All implementations adjusted.
8774 * inf-child.c: All implementations adjusted.
8775 * inf-child.h: All implementations adjusted.
8776 * inf-ptrace.c: All implementations adjusted.
8777 * inf-ptrace.h: All implementations adjusted.
8778 * linux-nat.c: All implementations adjusted.
8779 * linux-nat.h: All implementations adjusted.
8780 * mips-linux-nat.c: All implementations adjusted.
8781 * nto-procfs.c: All implementations adjusted.
8782 * ppc-linux-nat.c: All implementations adjusted.
8783 * procfs.c: All implementations adjusted.
8784 * ravenscar-thread.c: All implementations adjusted.
8785 * record-btrace.c: All implementations adjusted.
8786 * record-full.c: All implementations adjusted.
8787 * remote-sim.c: All implementations adjusted.
8788 * remote.c: All implementations adjusted.
8789 * s390-linux-nat.c: All implementations adjusted.
8790 * sol-thread.c: All implementations adjusted.
8791 * spu-multiarch.c: All implementations adjusted.
8792 * target-delegates.c: All implementations adjusted.
8793 * target.c: All implementations adjusted.
8794 * target.h: All implementations adjusted.
8795 * tracefile-tfile.c: All implementations adjusted.
8796 * tracefile.c: All implementations adjusted.
8797 * tracefile.h: All implementations adjusted.
8798 * windows-nat.c: All implementations adjusted.
8799 * x86-linux-nat.h: All implementations adjusted.
8800 * x86-nat.h: All implementations adjusted.
8802 2018-05-02 Pedro Alves <palves@redhat.com>
8804 * make-target-delegates (scan_target_h): Don't trim lines here.
8805 Replace sequences of tabs and/or whitespace with a single
8807 (top level, parsing methods): Trim each line before processing it
8810 2018-05-02 Pedro Alves <palves@redhat.com>
8811 John Baldwin <jhb@freebsd.org>
8813 * target.h (enum strata) <debug_stratum>: New.
8814 (struct target_ops) <all delegation methods>: Replace by C++
8815 virtual methods, and drop "to_" prefix. All references updated
8817 <to_shortname, to_longname, to_doc, to_data,
8818 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8819 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8820 virtual methods. All references updated throughout.
8821 <can_attach, supports_terminal_ours, can_create_inferior,
8822 get_thread_control_capabilities, attach_no_wait>: New
8824 <insert_breakpoint, remove_breakpoint>: Now
8825 TARGET_DEFAULT_NORETURN methods.
8826 <info_proc>: Now returns bool.
8828 (OPS_MAGIC): Delete.
8829 (current_target): Delete. All references replaced by references
8831 (target_stack): ... this. New.
8832 (target_shortname, target_longname): Adjust.
8833 (target_can_run): Now a function declaration.
8834 (default_child_has_all_memory, default_child_has_memory)
8835 (default_child_has_stack, default_child_has_registers)
8836 (default_child_has_execution): Remove target_ops parameter.
8837 (complete_target_initialization): Delete.
8838 (memory_breakpoint_target): New template class.
8839 (test_target_ops): Refactor as a C++ class with virtual methods.
8840 * make-target-delegates (NAME_PART): Tighten.
8841 (POINTER_PART, CP_SYMBOL): New.
8842 (SIMPLE_RETURN_PART): Reimplement.
8843 (VEC_RETURN_PART): Expect less.
8844 (RETURN_PART, VIRTUAL_PART): New.
8845 (METHOD): Adjust to C++ virtual methods.
8846 (scan_target_h): Remove reference to C99.
8847 (dname): Output "target_ops::" prefix.
8848 (write_function_header): Adjust to output a C++ class method.
8849 (write_declaration): New.
8850 (write_delegator): Adjust to output a C++ class method.
8851 (tdname): Output "dummy_target::" prefix.
8852 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8854 (tdefault_names, debug_names): Delete.
8855 (return_types, tdefaults, styles, argtypes_array): New.
8856 (top level): All methods are delegators.
8858 (top level): Print dummy_target and debug_target classes.
8859 * target-delegates.c: Regenerate.
8860 * target-debug.h (target_debug_print_enum_info_proc_what)
8861 (target_debug_print_thread_control_capabilities)
8862 (target_debug_print_thread_info_p): New.
8863 * target.c (dummy_target): Delete.
8864 (the_dummy_target, the_debug_target): New.
8865 (target_stack): Now extern.
8866 (set_targetdebug): Push/unpush debug target.
8867 (default_child_has_all_memory, default_child_has_memory)
8868 (default_child_has_stack, default_child_has_registers)
8869 (default_child_has_execution): Remove target_ops parameter.
8870 (complete_target_initialization): Delete.
8871 (add_target_with_completer): No longer call
8872 complete_target_initialization.
8873 (target_supports_terminal_ours): Use regular delegation.
8874 (update_current_target): Delete.
8875 (push_target): No longer check magic number. Don't call
8876 update_current_target.
8877 (unpush_target): Don't call update_current_target.
8878 (target_is_pushed): No longer check magic number.
8879 (target_require_runnable): Skip for all stratums over
8881 (target_ops::info_proc): New.
8882 (target_info_proc): Use find_target_at and
8883 find_default_run_target.
8884 (target_supports_disable_randomization): Use regular delegation.
8885 (target_get_osdata): Use find_target_at.
8886 (target_ops::open, target_ops::close, target_ops::can_attach)
8887 (target_ops::attach, target_ops::can_create_inferior)
8888 (target_ops::create_inferior, target_ops::can_run)
8889 (target_can_run): New.
8890 (default_fileio_target): Use regular delegation.
8891 (target_ops::fileio_open, target_ops::fileio_pwrite)
8892 (target_ops::fileio_pread, target_ops::fileio_fstat)
8893 (target_ops::fileio_close, target_ops::fileio_unlink)
8894 (target_ops::fileio_readlink): New.
8895 (target_fileio_open_1, target_fileio_unlink)
8896 (target_fileio_readlink): Always call the target method. Handle
8898 (return_zero, return_zero_has_execution): Delete.
8899 (init_dummy_target): Delete.
8900 (dummy_target::dummy_target, dummy_target::shortname)
8901 (dummy_target::longname, dummy_target::doc)
8902 (debug_target::debug_target, debug_target::shortname)
8903 (debug_target::longname, debug_target::doc): New.
8904 (target_supports_delete_record): Use regular delegation.
8905 (setup_target_debug): Delete.
8906 (maintenance_print_target_stack): Skip debug_stratum.
8907 (initialize_targets): Instantiate the_dummy_target and
8909 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8911 (target_auxv_search, fprint_target_auxv): Adjust.
8912 (info_auxv_command): Adjust to use target_stack.
8913 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8914 * exceptions.c (print_flush): Handle a NULL target_stack.
8915 * regcache.c (target_ops_no_register): Refactor as class with
8918 * exec.c (exec_target): New class.
8919 (exec_ops): Now an exec_target.
8920 (exec_open, exec_close_1, exec_get_section_table)
8921 (exec_xfer_partial, exec_files_info, exec_has_memory)
8922 (exec_make_note_section): Refactor as exec_target methods.
8923 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8925 (exec_target::find_memory_regions): New.
8926 (_initialize_exec): Don't call init_exec_ops.
8927 * gdbcore.h (exec_file_clear): Delete.
8929 * corefile.c (core_target): Delete.
8930 (core_file_command): Adjust.
8931 * corelow.c (core_target): New class.
8932 (the_core_target): New.
8933 (core_close): Remove target_ops parameter.
8934 (core_close_cleanup): Adjust.
8935 (core_target::close): New.
8936 (core_open, core_detach, get_core_registers, core_files_info)
8937 (core_xfer_partial, core_thread_alive, core_read_description)
8938 (core_pid_to_str, core_thread_name, core_has_memory)
8939 (core_has_stack, core_has_registers, core_info_proc): Rework as
8940 core_target methods.
8941 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8942 (_initialize_corelow): Initialize the_core_target.
8943 * gdbcore.h (core_target): Delete.
8944 (the_core_target): New.
8946 * ctf.c: (ctf_target): New class.
8947 (ctf_ops): Now a ctf_target.
8948 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8949 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8950 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8952 (init_ctf_ops): Delete.
8953 (_initialize_ctf): Don't call it.
8954 * tracefile-tfile.c (tfile_target): New class.
8955 (tfile_ops): Now a tfile_target.
8956 (tfile_open, tfile_close, tfile_files_info)
8957 (tfile_get_tracepoint_status, tfile_trace_find)
8958 (tfile_fetch_registers, tfile_xfer_partial)
8959 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8960 Refactor as tfile_target methods.
8961 (tfile_xfer_partial_features): Remove target_ops parameter.
8962 (init_tfile_ops): Delete.
8963 (_initialize_tracefile_tfile): Don't call it.
8964 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8965 (tracefile_has_stack, tracefile_has_registers)
8966 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8967 tracefile_target methods.
8968 (init_tracefile_ops): Delete.
8969 (tracefile_target::tracefile_target): New.
8970 * tracefile.h: Include "target.h".
8971 (tracefile_target): New class.
8972 (init_tracefile_ops): Delete.
8974 * spu-multiarch.c (spu_multiarch_target): New class.
8975 (spu_ops): Now a spu_multiarch_target.
8976 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
8977 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
8978 (spu_search_memory, spu_mourn_inferior): Refactor as
8979 spu_multiarch_target methods.
8980 (init_spu_ops): Delete.
8981 (_initialize_spu_multiarch): Remove references to init_spu_ops,
8982 complete_target_initialization.
8984 * ravenscar-thread.c (ravenscar_thread_target): New class.
8985 (ravenscar_ops): Now a ravenscar_thread_target.
8986 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
8987 (ravenscar_thread_alive, ravenscar_pid_to_str)
8988 (ravenscar_fetch_registers, ravenscar_store_registers)
8989 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
8990 (ravenscar_stopped_by_hw_breakpoint)
8991 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
8992 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
8993 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
8995 (init_ravenscar_thread_ops): Delete.
8996 (_initialize_ravenscar): Remove references to
8997 init_ravenscar_thread_ops and complete_target_initialization.
8999 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
9000 (bsd_uthread_target): New class.
9001 (bsd_uthread_ops): Now a bsd_uthread_target.
9002 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
9003 (bsd_uthread_close, bsd_uthread_mourn_inferior)
9004 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
9005 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
9006 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
9007 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
9008 (bsd_uthread_target): Delete function.
9009 (_initialize_bsd_uthread): Remove reference to
9010 complete_target_initialization.
9012 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
9013 (target_bfd): ... this new class.
9014 (target_bfd_xfer_partial, target_bfd_get_section_table)
9015 (target_bfd_close): Refactor as target_bfd methods.
9016 (target_bfd::~target_bfd): New.
9017 (target_bfd_reopen): Adjust.
9018 (target_bfd::close): New.
9020 * record-btrace.c (record_btrace_target): New class.
9021 (record_btrace_ops): Now a record_btrace_target.
9022 (record_btrace_open, record_btrace_stop_recording)
9023 (record_btrace_disconnect, record_btrace_close)
9024 (record_btrace_async, record_btrace_info)
9025 (record_btrace_insn_history, record_btrace_insn_history_range)
9026 (record_btrace_insn_history_from, record_btrace_call_history)
9027 (record_btrace_call_history_range)
9028 (record_btrace_call_history_from, record_btrace_record_method)
9029 (record_btrace_is_replaying, record_btrace_will_replay)
9030 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
9031 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
9032 (record_btrace_store_registers, record_btrace_prepare_to_store)
9033 (record_btrace_to_get_unwinder)
9034 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
9035 (record_btrace_commit_resume, record_btrace_wait)
9036 (record_btrace_stop, record_btrace_can_execute_reverse)
9037 (record_btrace_stopped_by_sw_breakpoint)
9038 (record_btrace_supports_stopped_by_sw_breakpoint)
9039 (record_btrace_stopped_by_hw_breakpoint)
9040 (record_btrace_supports_stopped_by_hw_breakpoint)
9041 (record_btrace_update_thread_list, record_btrace_thread_alive)
9042 (record_btrace_goto_begin, record_btrace_goto_end)
9043 (record_btrace_goto, record_btrace_stop_replaying_all)
9044 (record_btrace_execution_direction)
9045 (record_btrace_prepare_to_generate_core)
9046 (record_btrace_done_generating_core): Refactor as
9047 record_btrace_target methods.
9048 (init_record_btrace_ops): Delete.
9049 (_initialize_record_btrace): Remove reference to
9050 init_record_btrace_ops.
9051 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
9052 the execution_direction global.
9053 (record_full_base_target, record_full_target)
9054 (record_full_core_target): New classes.
9055 (record_full_ops): Now a record_full_target.
9056 (record_full_core_ops): Now a record_full_core_target.
9057 (record_full_target::detach, record_full_target::disconnect)
9058 (record_full_core_target::disconnect)
9059 (record_full_target::mourn_inferior, record_full_target::kill):
9061 (record_full_open, record_full_close, record_full_async): Refactor
9062 as methods of the record_full_base_target class.
9063 (record_full_resume, record_full_commit_resume): Refactor
9064 as methods of the record_full_target class.
9065 (record_full_wait, record_full_stopped_by_watchpoint)
9066 (record_full_stopped_data_address)
9067 (record_full_stopped_by_sw_breakpoint)
9068 (record_full_supports_stopped_by_sw_breakpoint)
9069 (record_full_stopped_by_hw_breakpoint)
9070 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
9071 methods of the record_full_base_target class.
9072 (record_full_store_registers, record_full_xfer_partial)
9073 (record_full_insert_breakpoint, record_full_remove_breakpoint):
9074 Refactor as methods of the record_full_target class.
9075 (record_full_can_execute_reverse, record_full_get_bookmark)
9076 (record_full_goto_bookmark, record_full_execution_direction)
9077 (record_full_record_method, record_full_info, record_full_delete)
9078 (record_full_is_replaying, record_full_will_replay)
9079 (record_full_goto_begin, record_full_goto_end, record_full_goto)
9080 (record_full_stop_replaying): Refactor as methods of the
9081 record_full_base_target class.
9082 (record_full_core_resume, record_full_core_kill)
9083 (record_full_core_fetch_registers)
9084 (record_full_core_prepare_to_store)
9085 (record_full_core_store_registers, record_full_core_xfer_partial)
9086 (record_full_core_insert_breakpoint)
9087 (record_full_core_remove_breakpoint)
9088 (record_full_core_has_execution): Refactor
9089 as methods of the record_full_core_target class.
9090 (record_full_base_target::supports_delete_record): New.
9091 (init_record_full_ops): Delete.
9092 (init_record_full_core_ops): Delete.
9093 (record_full_save): Refactor as method of the
9094 record_full_base_target class.
9095 (_initialize_record_full): Remove references to
9096 init_record_full_ops and init_record_full_core_ops.
9098 * remote.c (remote_target, extended_remote_target): New classes.
9099 (remote_ops): Now a remote_target.
9100 (extended_remote_ops): Now an extended_remote_target.
9101 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
9102 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
9103 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
9104 (remote_pass_signals, remote_set_syscall_catchpoint)
9105 (remote_program_signals, )
9106 (remote_thread_always_alive): Remove target_ops parameter.
9107 (remote_thread_alive, remote_thread_name)
9108 (remote_update_thread_list, remote_threads_extra_info)
9109 (remote_static_tracepoint_marker_at)
9110 (remote_static_tracepoint_markers_by_strid)
9111 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
9112 (remote_open): Refactor as methods of remote_target.
9113 (extended_remote_open, extended_remote_detach)
9114 (extended_remote_attach, extended_remote_post_attach):
9115 (extended_remote_supports_disable_randomization)
9116 (extended_remote_create_inferior): : Refactor as method of
9117 extended_remote_target.
9118 (remote_set_permissions, remote_open_1, remote_detach)
9119 (remote_follow_fork, remote_follow_exec, remote_disconnect)
9120 (remote_resume, remote_commit_resume, remote_stop)
9121 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
9122 (remote_terminal_ours, remote_wait, remote_fetch_registers)
9123 (remote_prepare_to_store, remote_store_registers)
9124 (remote_flash_erase, remote_flash_done, remote_files_info)
9125 (remote_kill, remote_mourn, remote_insert_breakpoint)
9126 (remote_remove_breakpoint, remote_insert_watchpoint)
9127 (remote_watchpoint_addr_within_range)
9128 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
9129 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
9130 (remote_supports_stopped_by_sw_breakpoint)
9131 (remote_stopped_by_hw_breakpoint)
9132 (remote_supports_stopped_by_hw_breakpoint)
9133 (remote_stopped_by_watchpoint, remote_stopped_data_address)
9134 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
9135 (remote_verify_memory): Refactor as methods of remote_target.
9136 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
9138 (remote_xfer_partial, remote_get_memory_xfer_limit)
9139 (remote_search_memory, remote_rcmd, remote_memory_map)
9140 (remote_pid_to_str, remote_get_thread_local_address)
9141 (remote_get_tib_address, remote_read_description): Refactor as
9142 methods of remote_target.
9143 (remote_target::fileio_open, remote_target::fileio_pwrite)
9144 (remote_target::fileio_pread, remote_target::fileio_close): New.
9145 (remote_hostio_readlink, remote_hostio_fstat)
9146 (remote_filesystem_is_local, remote_can_execute_reverse)
9147 (remote_supports_non_stop, remote_supports_disable_randomization)
9148 (remote_supports_multi_process, remote_supports_cond_breakpoints)
9149 (remote_supports_enable_disable_tracepoint)
9150 (remote_supports_string_tracing)
9151 (remote_can_run_breakpoint_commands, remote_trace_init)
9152 (remote_download_tracepoint, remote_can_download_tracepoint)
9153 (remote_download_trace_state_variable, remote_enable_tracepoint)
9154 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
9155 (remote_trace_start, remote_get_trace_status)
9156 (remote_get_tracepoint_status, remote_trace_stop)
9157 (remote_trace_find, remote_get_trace_state_variable_value)
9158 (remote_save_trace_data, remote_get_raw_trace_data)
9159 (remote_set_disconnected_tracing, remote_core_of_thread)
9160 (remote_set_circular_trace_buffer, remote_traceframe_info)
9161 (remote_get_min_fast_tracepoint_insn_len)
9162 (remote_set_trace_buffer_size, remote_set_trace_notes)
9163 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
9164 (remote_disable_btrace, remote_teardown_btrace)
9165 (remote_read_btrace, remote_btrace_conf)
9166 (remote_augmented_libraries_svr4_read, remote_load)
9167 (remote_pid_to_exec_file, remote_can_do_single_step)
9168 (remote_execution_direction, remote_thread_handle_to_thread_info):
9169 Refactor as methods of remote_target.
9170 (init_remote_ops, init_extended_remote_ops): Delete.
9171 (remote_can_async_p, remote_is_async_p, remote_async)
9172 (remote_thread_events, remote_upload_tracepoints)
9173 (remote_upload_trace_state_variables): Refactor as methods of
9175 (_initialize_remote): Remove references to init_remote_ops and
9176 init_extended_remote_ops.
9178 * remote-sim.c (gdbsim_target): New class.
9179 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
9180 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
9181 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
9182 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
9183 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
9184 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
9185 Refactor as methods of gdbsim_target.
9186 (gdbsim_ops): Now a gdbsim_target.
9187 (init_gdbsim_ops): Delete.
9188 (gdbsim_cntrl_c): Adjust.
9189 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
9191 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
9192 (the_amd64_linux_nat_target): New.
9193 (amd64_linux_fetch_inferior_registers)
9194 (amd64_linux_store_inferior_registers): Refactor as methods of
9195 amd64_linux_nat_target.
9196 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
9197 * i386-linux-nat.c: Don't include "linux-nat.h".
9198 (i386_linux_nat_target): New class.
9199 (the_i386_linux_nat_target): New.
9200 (i386_linux_fetch_inferior_registers)
9201 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
9202 as methods of i386_linux_nat_target.
9203 (_initialize_i386_linux_nat): Adjust. Set linux_target.
9204 * inf-child.c (inf_child_ops): Delete.
9205 (inf_child_fetch_inferior_registers)
9206 (inf_child_store_inferior_registers): Delete.
9207 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
9208 methods of inf_child_target.
9209 (inf_child_target::supports_terminal_ours)
9210 (inf_child_target::terminal_init)
9211 (inf_child_target::terminal_inferior)
9212 (inf_child_target::terminal_ours_for_output)
9213 (inf_child_target::terminal_ours, inf_child_target::interrupt)
9214 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
9216 (inf_child_open, inf_child_disconnect, inf_child_close)
9217 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
9218 (inf_child_post_startup_inferior, inf_child_can_run)
9219 (inf_child_pid_to_exec_file): Refactor as methods of
9221 (inf_child_follow_fork): Delete.
9222 (inf_child_target::can_create_inferior)
9223 (inf_child_target::can_attach): New.
9224 (inf_child_target::has_all_memory, inf_child_target::has_memory)
9225 (inf_child_target::has_stack, inf_child_target::has_registers)
9226 (inf_child_target::has_execution): New.
9227 (inf_child_fileio_open, inf_child_fileio_pwrite)
9228 (inf_child_fileio_pread, inf_child_fileio_fstat)
9229 (inf_child_fileio_close, inf_child_fileio_unlink)
9230 (inf_child_fileio_readlink, inf_child_use_agent)
9231 (inf_child_can_use_agent): Refactor as methods of
9233 (return_zero, inf_child_target): Delete.
9234 (inf_child_target::inf_child_target): New.
9235 * inf-child.h: Include "target.h".
9236 (inf_child_target): Delete function prototype.
9237 (inf_child_target): New class.
9238 (inf_child_open_target, inf_child_mourn_inferior)
9239 (inf_child_maybe_unpush_target): Delete.
9240 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
9241 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
9242 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
9243 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
9244 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
9245 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
9246 (inf_ptrace_wait, inf_ptrace_xfer_partial)
9247 (inf_ptrace_thread_alive, inf_ptrace_files_info)
9248 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
9249 methods of inf_ptrace_target.
9250 (inf_ptrace_target): Delete function.
9251 * inf-ptrace.h: Include "inf-child.h".
9252 (inf_ptrace_target): Delete function declaration.
9253 (inf_ptrace_target): New class.
9254 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
9255 * linux-nat.c (linux_target): New.
9256 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
9257 (linux_nat_target::~linux_nat_target): New.
9258 (linux_child_post_attach, linux_child_post_startup_inferior)
9259 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
9260 (linux_child_remove_fork_catchpoint)
9261 (linux_child_insert_vfork_catchpoint)
9262 (linux_child_remove_vfork_catchpoint)
9263 (linux_child_insert_exec_catchpoint)
9264 (linux_child_remove_exec_catchpoint)
9265 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
9266 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
9267 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
9268 (linux_nat_stopped_data_address)
9269 (linux_nat_stopped_by_sw_breakpoint)
9270 (linux_nat_supports_stopped_by_sw_breakpoint)
9271 (linux_nat_stopped_by_hw_breakpoint)
9272 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
9273 (linux_nat_kill, linux_nat_mourn_inferior)
9274 (linux_nat_xfer_partial, linux_nat_thread_alive)
9275 (linux_nat_update_thread_list, linux_nat_pid_to_str)
9276 (linux_nat_thread_name, linux_child_pid_to_exec_file)
9277 (linux_child_static_tracepoint_markers_by_strid)
9278 (linux_nat_is_async_p, linux_nat_can_async_p)
9279 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
9280 (linux_nat_supports_multi_process)
9281 (linux_nat_supports_disable_randomization, linux_nat_async)
9282 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
9283 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
9284 (linux_nat_fileio_open, linux_nat_fileio_readlink)
9285 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
9286 methods of linux_nat_target.
9287 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
9288 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
9290 (check_stopped_by_watchpoint): Adjust.
9291 (linux_xfer_partial): Delete.
9292 (linux_target_install_ops, linux_target, linux_nat_add_target):
9294 (linux_nat_target::linux_nat_target): New.
9295 * linux-nat.h: Include "inf-ptrace.h".
9296 (linux_nat_target): New.
9297 (linux_target, linux_target_install_ops, linux_nat_add_target):
9298 Delete function declarations.
9299 (linux_target): Declare global.
9300 * linux-thread-db.c (thread_db_target): New.
9301 (thread_db_target::thread_db_target): New.
9302 (thread_db_ops): Delete.
9303 (the_thread_db_target): New.
9304 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
9305 (thread_db_update_thread_list, thread_db_pid_to_str)
9306 (thread_db_extra_thread_info)
9307 (thread_db_thread_handle_to_thread_info)
9308 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
9309 (thread_db_resume): Refactor as methods of thread_db_target.
9310 (init_thread_db_ops): Delete.
9311 (_initialize_thread_db): Remove reference to init_thread_db_ops.
9312 * x86-linux-nat.c: Don't include "linux-nat.h".
9313 (super_post_startup_inferior): Delete.
9314 (x86_linux_nat_target::~x86_linux_nat_target): New.
9315 (x86_linux_child_post_startup_inferior)
9316 (x86_linux_read_description, x86_linux_enable_btrace)
9317 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
9318 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
9319 methods of x86_linux_nat_target.
9320 (x86_linux_create_target): Delete. Bits folded ...
9321 (x86_linux_add_target): ... here. Now takes a linux_nat_target
9323 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
9324 (x86_linux_nat_target): New class.
9325 (x86_linux_create_target): Delete.
9326 (x86_linux_add_target): Now takes a linux_nat_target pointer.
9327 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
9328 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
9329 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
9330 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
9331 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
9333 (x86_use_watchpoints): Delete.
9334 * x86-nat.h: Include "breakpoint.h" and "target.h".
9335 (x86_use_watchpoints): Delete.
9336 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
9337 (x86_stopped_by_watchpoint, x86_stopped_data_address)
9338 (x86_insert_watchpoint, x86_remove_watchpoint)
9339 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
9340 (x86_stopped_by_hw_breakpoint): New declarations.
9341 (x86_nat_target): New template class.
9343 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
9344 (the_ppc_linux_nat_target): New.
9345 (ppc_linux_fetch_inferior_registers)
9346 (ppc_linux_can_use_hw_breakpoint)
9347 (ppc_linux_region_ok_for_hw_watchpoint)
9348 (ppc_linux_ranged_break_num_registers)
9349 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
9350 (ppc_linux_insert_mask_watchpoint)
9351 (ppc_linux_remove_mask_watchpoint)
9352 (ppc_linux_can_accel_watchpoint_condition)
9353 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
9354 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
9355 (ppc_linux_watchpoint_addr_within_range)
9356 (ppc_linux_masked_watch_num_registers)
9357 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
9358 (ppc_linux_read_description): Refactor as methods of
9359 ppc_linux_nat_target.
9360 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
9362 * procfs.c (procfs_xfer_partial): Delete forward declaration.
9363 (procfs_target): New class.
9364 (the_procfs_target): New.
9365 (procfs_target): Delete function.
9366 (procfs_auxv_parse, procfs_attach, procfs_detach)
9367 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
9368 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
9369 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
9370 (procfs_create_inferior, procfs_update_thread_list)
9371 (procfs_thread_alive, procfs_pid_to_str)
9372 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
9373 (procfs_stopped_data_address, procfs_insert_watchpoint)
9374 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
9375 (proc_find_memory_regions, procfs_info_proc)
9376 (procfs_make_note_section): Refactor as methods of procfs_target.
9377 (_initialize_procfs): Adjust.
9378 * sol-thread.c (sol_thread_target): New class.
9379 (sol_thread_ops): Now a sol_thread_target.
9380 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
9381 (sol_thread_fetch_registers, sol_thread_store_registers)
9382 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
9383 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
9384 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
9385 (init_sol_thread_ops): Delete.
9386 (_initialize_sol_thread): Adjust. Remove references to
9387 init_sol_thread_ops and complete_target_initialization.
9389 * windows-nat.c (windows_nat_target): New class.
9390 (windows_fetch_inferior_registers)
9391 (windows_store_inferior_registers, windows_resume, windows_wait)
9392 (windows_attach, windows_detach, windows_pid_to_exec_file)
9393 (windows_files_info, windows_create_inferior)
9394 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
9395 (windows_close, windows_pid_to_str, windows_xfer_partial)
9396 (windows_get_tib_address, windows_get_ada_task_ptid)
9397 (windows_thread_name, windows_thread_alive): Refactor as
9398 windows_nat_target methods.
9399 (do_initial_windows_stuff): Adjust.
9400 (windows_target): Delete function.
9401 (_initialize_windows_nat): Adjust.
9403 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
9404 (darwin_mourn_inferior, darwin_kill_inferior)
9405 (darwin_create_inferior, darwin_attach, darwin_detach)
9406 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
9407 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
9408 (darwin_supports_multi_process): Refactor as darwin_nat_target
9410 (darwin_resume_to, darwin_files_info): Delete.
9411 (_initialize_darwin_inferior): Rename to ...
9412 (_initialize_darwin_nat): ... this. Adjust to C++ification.
9413 * darwin-nat.h: Include "inf-child.h".
9414 (darwin_nat_target): New class.
9415 (darwin_complete_target): Delete.
9416 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
9417 (darwin_target): New.
9418 (i386_darwin_fetch_inferior_registers)
9419 (i386_darwin_store_inferior_registers): Refactor as methods of
9421 (darwin_complete_target): Delete, with ...
9422 (_initialize_i386_darwin_nat): ... bits factored out here.
9424 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9425 (the_alpha_linux_nat_target): New.
9426 (alpha_linux_register_u_offset): Refactor as
9427 alpha_linux_nat_target method.
9428 (_initialize_alpha_linux_nat): Adjust.
9429 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9430 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9431 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9432 methods of linux_nat_trad_target.
9433 (linux_trad_target): Delete.
9434 * linux-nat-trad.h (linux_trad_target): Delete function.
9435 (linux_nat_trad_target): New class.
9436 * mips-linux-nat.c (mips_linux_nat_target): New class.
9437 (super_fetch_registers, super_store_registers, super_close):
9439 (the_mips_linux_nat_target): New.
9440 (mips64_linux_regsets_fetch_registers)
9441 (mips64_linux_regsets_store_registers)
9442 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9443 (mips_linux_register_u_offset, mips_linux_read_description)
9444 (mips_linux_can_use_hw_breakpoint)
9445 (mips_linux_stopped_by_watchpoint)
9446 (mips_linux_stopped_data_address)
9447 (mips_linux_region_ok_for_hw_watchpoint)
9448 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9449 (mips_linux_close): Refactor as methods of mips_linux_nat.
9450 (_initialize_mips_linux_nat): Adjust to C++ification.
9452 * aix-thread.c (aix_thread_target): New class.
9453 (aix_thread_ops): Now an aix_thread_target.
9454 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9455 (aix_thread_fetch_registers, aix_thread_store_registers)
9456 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9457 (aix_thread_thread_alive, aix_thread_pid_to_str)
9458 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9459 Refactor as methods of aix_thread_target.
9460 (init_aix_thread_ops): Delete.
9461 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9462 and complete_target_initialization.
9463 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9464 (rs6000_nat_target): New class.
9465 (the_rs6000_nat_target): New.
9466 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9467 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9468 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9469 (super_create_inferior): Delete.
9470 (_initialize_rs6000_nat): Adjust to C++ification.
9472 * arm-linux-nat.c (arm_linux_nat_target): New class.
9473 (the_arm_linux_nat_target): New.
9474 (arm_linux_fetch_inferior_registers)
9475 (arm_linux_store_inferior_registers, arm_linux_read_description)
9476 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9477 (arm_linux_remove_hw_breakpoint)
9478 (arm_linux_region_ok_for_hw_watchpoint)
9479 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9480 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9481 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9482 arm_linux_nat_target.
9483 (_initialize_arm_linux_nat): Adjust to C++ification.
9485 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9486 (the_aarch64_linux_nat_target): New.
9487 (aarch64_linux_fetch_inferior_registers)
9488 (aarch64_linux_store_inferior_registers)
9489 (aarch64_linux_child_post_startup_inferior)
9490 (aarch64_linux_read_description)
9491 (aarch64_linux_can_use_hw_breakpoint)
9492 (aarch64_linux_insert_hw_breakpoint)
9493 (aarch64_linux_remove_hw_breakpoint)
9494 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9495 (aarch64_linux_region_ok_for_hw_watchpoint)
9496 (aarch64_linux_stopped_data_address)
9497 (aarch64_linux_stopped_by_watchpoint)
9498 (aarch64_linux_watchpoint_addr_within_range)
9499 (aarch64_linux_can_do_single_step): Refactor as methods of
9500 aarch64_linux_nat_target.
9501 (super_post_startup_inferior): Delete.
9502 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9504 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9505 (the_hppa_linux_nat_target): New.
9506 (hppa_linux_fetch_inferior_registers)
9507 (hppa_linux_store_inferior_registers): Refactor as methods of
9508 hppa_linux_nat_target.
9509 (_initialize_hppa_linux_nat): Adjust to C++ification.
9511 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9512 (the_ia64_linux_nat_target): New.
9513 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9514 (ia64_linux_stopped_data_address)
9515 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9516 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9517 ia64_linux_nat_target methods.
9518 (super_xfer_partial): Delete.
9519 (_initialize_ia64_linux_nat): Adjust to C++ification.
9521 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9522 (the_m32r_linux_nat_target): New.
9523 (m32r_linux_fetch_inferior_registers)
9524 (m32r_linux_store_inferior_registers): Refactor as
9525 m32r_linux_nat_target methods.
9526 (_initialize_m32r_linux_nat): Adjust to C++ification.
9528 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9529 (the_m68k_linux_nat_target): New.
9530 (m68k_linux_fetch_inferior_registers)
9531 (m68k_linux_store_inferior_registers): Refactor as
9532 m68k_linux_nat_target methods.
9533 (_initialize_m68k_linux_nat): Adjust to C++ification.
9535 * s390-linux-nat.c (s390_linux_nat_target): New class.
9536 (the_s390_linux_nat_target): New.
9537 (s390_linux_fetch_inferior_registers)
9538 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9539 (s390_insert_watchpoint, s390_remove_watchpoint)
9540 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9541 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9542 (s390_auxv_parse, s390_read_description): Refactor as methods of
9543 s390_linux_nat_target.
9544 (_initialize_s390_nat): Adjust to C++ification.
9546 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9547 (the_sparc_linux_nat_target): New.
9548 (_initialize_sparc_linux_nat): Adjust to C++ification.
9549 * sparc-nat.c (sparc_fetch_inferior_registers)
9550 (sparc_store_inferior_registers): Remove target_ops parameter.
9551 * sparc-nat.h (sparc_fetch_inferior_registers)
9552 (sparc_store_inferior_registers): Remove target_ops parameter.
9553 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9554 (the_sparc64_linux_nat_target): New.
9555 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9557 * spu-linux-nat.c (spu_linux_nat_target): New class.
9558 (the_spu_linux_nat_target): New.
9559 (spu_child_post_startup_inferior, spu_child_post_attach)
9560 (spu_child_wait, spu_fetch_inferior_registers)
9561 (spu_store_inferior_registers, spu_xfer_partial)
9562 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9564 (_initialize_spu_nat): Adjust to C++ification.
9566 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9567 (the_tilegx_linux_nat_target): New.
9568 (fetch_inferior_registers, store_inferior_registers):
9569 Refactor as methods.
9570 (_initialize_tile_linux_nat): Adjust to C++ification.
9572 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9573 (the_xtensa_linux_nat_target): New.
9574 (xtensa_linux_fetch_inferior_registers)
9575 (xtensa_linux_store_inferior_registers): Refactor as
9576 xtensa_linux_nat_target methods.
9577 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9579 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9580 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9581 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9582 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9583 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9584 (fbsd_stopped_by_sw_breakpoint)
9585 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9586 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9587 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9588 (fbsd_post_startup_inferior, fbsd_post_attach)
9589 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9590 (fbsd_set_syscall_catchpoint)
9591 (super_xfer_partial, super_resume, super_wait)
9592 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9593 (fbsd_handle_debug_trap): Remove target_ops parameter.
9594 (fbsd_nat_add_target): Delete.
9595 * fbsd-nat.h: Include "inf-ptrace.h".
9596 (fbsd_nat_add_target): Delete.
9597 (USE_SIGTRAP_SIGINFO): Define.
9598 (fbsd_nat_target): New class.
9600 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9601 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9602 (amd64bsd_target): Delete.
9603 * amd64-bsd-nat.h: New file.
9604 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9606 (amd64_fbsd_nat_target): New class.
9607 (the_amd64_fbsd_nat_target): New.
9608 (amd64fbsd_read_description): Refactor as method of
9609 amd64_fbsd_nat_target.
9610 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9611 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9612 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9613 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9614 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9615 (i386bsd_target): Delete.
9616 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9617 (i386bsd_fetch_inferior_registers)
9618 (i386bsd_store_inferior_registers): Declare.
9619 (i386_bsd_nat_target): New class.
9620 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9621 (the_i386_fbsd_nat_target): New.
9622 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9623 i386_fbsd_nat_target methods.
9624 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9625 (_initialize_i386fbsd_nat): Adjust to C++ification.
9626 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9627 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9628 (_initialize_x86_bsd_nat): Adjust to C++ification.
9629 * x86-bsd-nat.h: Include "x86-nat.h".
9630 (x86bsd_target): Delete declaration.
9631 (x86bsd_nat_target): New class.
9633 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9634 (the_aarch64_fbsd_nat_target): New.
9635 (aarch64_fbsd_fetch_inferior_registers)
9636 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9637 aarch64_fbsd_nat_target.
9638 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9639 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9640 (the_alpha_bsd_nat_target): New.
9641 (alphabsd_fetch_inferior_registers)
9642 (alphabsd_store_inferior_registers): Refactor as
9643 alpha_bsd_nat_target methods.
9644 (_initialize_alphabsd_nat): Refactor as methods of
9645 alpha_bsd_nat_target.
9646 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9647 (the_amd64_nbsd_nat_target): New.
9648 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9649 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9650 (the_amd64_obsd_nat_target): New.
9651 (_initialize_amd64obsd_nat): Adjust to C++ification.
9652 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9653 (the_arm_fbsd_nat_target): New.
9654 (arm_fbsd_fetch_inferior_registers)
9655 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9656 (_initialize_arm_fbsd_nat): Refactor as methods of
9657 arm_fbsd_nat_target.
9658 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9659 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9660 (the_arm_netbsd_nat_target): New.
9661 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9662 arm_netbsd_nat_target.
9663 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9664 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9665 (the_hppa_nbsd_nat_target): New.
9666 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9667 hppa_nbsd_nat_target methods.
9668 (_initialize_hppanbsd_nat): Adjust to C++ification.
9669 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9670 (the_hppa_obsd_nat_target): New.
9671 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9672 methods of hppa_obsd_nat_target.
9673 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9675 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9676 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9678 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9679 (_initialize_i386obsd_nat): Use add_target.
9680 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9681 (the_m68k_bsd_nat_target): New.
9682 (m68kbsd_fetch_inferior_registers)
9683 (m68kbsd_store_inferior_registers): Refactor as methods of
9684 m68k_bsd_nat_target.
9685 (_initialize_m68kbsd_nat): Adjust to C++ification.
9686 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9687 (the_mips_fbsd_nat_target): New.
9688 (mips_fbsd_fetch_inferior_registers)
9689 (mips_fbsd_store_inferior_registers): Refactor as methods of
9690 mips_fbsd_nat_target.
9691 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9693 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9694 (the_mips_nbsd_nat_target): New.
9695 (mipsnbsd_fetch_inferior_registers)
9696 (mipsnbsd_store_inferior_registers): Refactor as methods of
9697 mips_nbsd_nat_target.
9698 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9699 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9700 (the_mips64_obsd_nat_target): New.
9701 (mips64obsd_fetch_inferior_registers)
9702 (mips64obsd_store_inferior_registers): Refactor as methods of
9703 mips64_obsd_nat_target.
9704 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9706 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9708 * nbsd-nat.h: Include "inf-ptrace.h".
9709 (nbsd_nat_target): New class.
9710 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9711 (obsd_wait): Refactor as methods of obsd_nat_target.
9712 (obsd_add_target): Delete.
9713 * obsd-nat.h: Include "inf-ptrace.h".
9714 (obsd_nat_target): New class.
9715 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9716 (the_ppc_fbsd_nat_target): New.
9717 (ppcfbsd_fetch_inferior_registers)
9718 (ppcfbsd_store_inferior_registers): Refactor as methods of
9719 ppc_fbsd_nat_target.
9720 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9722 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9723 (the_ppc_nbsd_nat_target): New.
9724 (ppcnbsd_fetch_inferior_registers)
9725 (ppcnbsd_store_inferior_registers): Refactor as methods of
9726 ppc_nbsd_nat_target.
9727 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9728 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9729 (the_ppc_obsd_nat_target): New.
9730 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9731 methods of ppc_obsd_nat_target.
9732 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9734 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9735 (the_sh_nbsd_nat_target): New.
9736 (shnbsd_fetch_inferior_registers)
9737 (shnbsd_store_inferior_registers): Refactor as methods of
9739 (_initialize_shnbsd_nat): Adjust to C++ification.
9740 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9741 (inf_ptrace_xfer_partial): Delete.
9742 (sparc_xfer_partial, sparc_target): Delete.
9743 * sparc-nat.h (sparc_fetch_inferior_registers)
9744 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9745 (sparc_target): Delete function declaration.
9746 (sparc_target): New template class.
9747 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9748 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9749 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9750 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9752 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9753 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9754 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9755 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9757 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9758 (the_vax_bsd_nat_target): New.
9759 (vaxbsd_fetch_inferior_registers)
9760 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9762 (_initialize_vaxbsd_nat): Adjust to C++ification.
9764 * bsd-kvm.c (bsd_kvm_target): New class.
9765 (bsd_kvm_ops): Now a bsd_kvm_target.
9766 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9767 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9768 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9770 (bsd_kvm_return_one): Delete.
9771 (bsd_kvm_add_target): Adjust to C++ification.
9773 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9774 (nto_procfs_target_procfs): New classes.
9775 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9776 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9777 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9778 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9779 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9780 (procfs_remove_hw_breakpoint, procfs_resume)
9781 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9782 (procfs_kill_inferior, procfs_store_registers)
9783 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9784 as methods of nto_procfs_target.
9785 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9786 (nto_native_ops): Delete.
9787 (procfs_open, procfs_native_open): Delete.
9788 (nto_native_ops): Now an nto_procfs_target_native.
9789 (init_procfs_targets): Adjust to C++ification.
9790 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9791 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9792 Refactor as methods of nto_procfs_target.
9794 * go32-nat.c (go32_nat_target): New class.
9795 (the_go32_nat_target): New.
9796 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9797 (go32_store_registers, go32_xfer_partial, go32_files_info)
9798 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9799 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9800 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9801 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9802 (go32_target): Delete.
9803 (_initialize_go32_nat): Adjust to C++ification.
9805 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9806 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9807 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9808 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9810 (gnu_target): Delete.
9811 * gnu-nat.h (gnu_target): Delete.
9812 (gnu_nat_target): New class.
9813 * i386-gnu-nat.c (gnu_base_target): New.
9814 (i386_gnu_nat_target): New class.
9815 (the_i386_gnu_nat_target): New.
9816 (_initialize_i386gnu_nat): Adjust to C++ification.
9818 2018-05-02 Pedro Alves <palves@redhat.com>
9820 * bfd-target.c (target_bfd_xclose): Rename to ...
9821 (target_bfd_close): ... this.
9822 (target_bfd_reopen): Adjust.
9823 * target.c (target_close): Remove references to to_xclose.
9824 * target.h (target_ops::to_xclose): Delete.
9825 (target_ops::to_close): Update comments.
9827 2018-05-02 Pedro Alves <palves@redhat.com>
9829 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9831 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9832 * inf-ptrace.c (inf_ptrace_register_u_offset)
9833 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9834 (inf_ptrace_store_register, inf_ptrace_store_registers)
9835 (inf_ptrace_trad_target): Move to ...
9836 * linux-nat-trad.c: ... this new file.
9837 * linux-nat-trad.h: New file.
9838 * linux-nat.c (linux_target_install_ops): Make extern.
9839 (linux_trad_target): Delete.
9840 * linux-nat.h (linux_trad_target): Delete declaration.
9841 (linux_target_install_ops): Declare.
9842 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9845 2018-05-02 Pedro Alves <palves@redhat.com>
9847 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9848 procfs_target/add_target here.
9849 * procfs.c (procfs_target): Make static.
9850 (_initialize_procfs): Call add_target here.
9851 * procfs.h (struct target_ops): Remove forward declaration.
9852 (procfs_target): Remove declaration.
9853 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9855 2018-05-02 Pedro Alves <palves@redhat.com>
9857 * procfs.c (procfs_stopped_by_watchpoint)
9858 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9859 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9861 (procfs_use_watchpoints): Delete, move contents...
9862 (procfs_target): ... here.
9863 * procfs.h (procfs_use_watchpoints): Delete declaration.
9864 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9865 procfs_use_watchpoints.
9866 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9867 procfs_use_watchpoints.
9869 2018-05-02 Tom Tromey <tom@tromey.com>
9872 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9873 and var_zuinteger_unlimited.
9874 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9875 and PARAM_ZUINTEGER_UNLIMITED.
9876 (set_parameter_value): Handle var_zuinteger and
9877 var_zuinteger_unlimited.
9878 (add_setshow_generic): Likewise.
9879 (parmpy_init): Likewise.
9881 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9884 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9885 pointer is not null before dereferencing it.
9887 2018-04-30 Tom Tromey <tom@tromey.com>
9889 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9892 2018-04-30 Tom Tromey <tom@tromey.com>
9894 * breakpoint.c (mention): Remove use of is_mi_like_p.
9895 (print_mention_ranged_breakpoint): Likewise.
9896 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9899 2018-04-30 Tom Tromey <tom@tromey.com>
9901 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9903 2018-04-30 Tom Tromey <tom@tromey.com>
9905 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9906 (info_spu_event_command): Remove some uses of is_mi_like_p.
9908 2018-04-30 Tom Tromey <tom@tromey.com>
9910 * python/py-framefilter.c (py_print_single_arg)
9911 (enumerate_locals, py_print_args, py_print_frame): Remove some
9912 uses of is_mi_like_p.
9914 2018-04-30 Tom Tromey <tom@tromey.com>
9917 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9918 * ui-out.h (ui_out::is_mi_like_p): Now const.
9919 (ui_out::do_is_mi_like_p): Now const.
9920 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9922 2018-04-30 Tom Tromey <tom@tromey.com>
9924 * varobj.c (varobj_set_visualizer): Use new_reference.
9925 * python/python.c (gdbpy_decode_line): Use new_reference.
9926 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9929 2018-04-30 Tom Tromey <tom@tromey.com>
9931 * varobj.c (install_new_value): Use new_reference.
9932 * value.h (value_incref): Return void. Swap intro comment with
9934 * value.c (set_value_parent): Use new_reference.
9935 (value_incref): Return void. Update intro comment.
9936 (release_value): Use new_reference.
9937 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9939 2018-04-30 Tom Tromey <tom@tromey.com>
9941 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9942 * gdb_bfd.h (new_bfd_ref): Remove.
9943 (gdb_bfd_open): Update comment.
9944 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9945 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9946 (gdb_bfd_fdopenr): Use new_reference.
9947 * exec.c (exec_file_attach): Use new_reference.
9949 2018-04-30 Tom Tromey <tom@tromey.com>
9951 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9954 2018-04-30 Tom Tromey <tom@tromey.com>
9956 * jit.c (jit_read_code_entry): Use type_align.
9957 * i386-tdep.c (i386_gdbarch_init): Don't call
9958 set_gdbarch_long_long_align_bit.
9959 * gdbarch.sh: Remove long_long_align_bit.
9960 * gdbarch.c, gdbarch.h: Rebuild.
9961 * arc-tdep.c (arc_type_align): New function.
9962 (arc_gdbarch_init): Use arc_type_align. Don't call
9963 set_gdbarch_long_long_align_bit.
9965 2018-04-30 Tom Tromey <tom@tromey.com>
9967 * rust-lang.c (rust_type_alignment): Remove.
9968 (rust_composite_type): Use type_align.
9970 2018-04-30 Tom Tromey <tom@tromey.com>
9972 * NEWS: Mention Type.align.
9973 * python/py-type.c (typy_get_alignof): New function.
9974 (type_object_getset): Add "alignof".
9976 2018-04-30 Tom Tromey <tom@tromey.com>
9980 * std-operator.def (UNOP_ALIGNOF): New operator.
9981 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
9983 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
9984 * c-lang.c (c_op_print_tab): Add alignof.
9985 * c-exp.y (ALIGNOF): New token.
9986 (exp): Add "ALIGNOF" production.
9987 (ident_tokens): Add _Alignof and alignof.
9989 2018-04-30 Tom Tromey <tom@tromey.com>
9991 * i386-tdep.c (i386_type_align): New function.
9992 (i386_gdbarch_init): Update.
9993 * gdbarch.sh (type_align): New method.
9994 * gdbarch.c, gdbarch.h: Rebuild.
9995 * arch-utils.h (default_type_align): Declare.
9996 * arch-utils.c (default_type_align): New function.
9997 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
9998 (struct type) <align_log2>: New field.
9999 <instance_flags>: Now a bitfield.
10000 (TYPE_RAW_ALIGN): New macro.
10001 (type_align, type_raw_align, set_type_align): Declare.
10002 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
10004 * dwarf2read.c (quirk_rust_enum): Set type alignment.
10005 (get_alignment, maybe_set_alignment): New functions.
10006 (read_structure_type, read_enumeration_type, read_array_type)
10007 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
10008 (read_subrange_type, read_base_type): Set type alignment.
10010 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
10012 * dwarf2read.c (read_index_from_section): Use bool.
10014 2018-04-29 Fabian Groffen <grobian@gentoo.org>
10017 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
10020 2018-04-29 John Reiser <jreiser@BitWagon.com>
10023 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
10024 last step, and do it atomically.
10026 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
10028 * compile/compile-c-types.c (convert_int, convert_float):
10029 Update for C FE v1.
10031 2018-04-27 Tom Tromey <tom@tromey.com>
10034 * rust-lang.c (rust_inclusive_range_type_p): New function.
10035 (rust_range): Handle inclusive ranges.
10036 (rust_compute_range): Likewise.
10037 * rust-exp.y (struct rust_op) <inclusive>: New field.
10038 (DOTDOTEQ): New constant.
10039 (range_expr): Add "..=" productions.
10040 (operator_tokens): Add "..=" token.
10041 (ast_range): Add "inclusive" parameter.
10042 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
10044 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
10046 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
10047 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
10049 * expprint.c (print_subexp_standard): Handle new bounds values.
10050 (dump_subexp_body_standard): Likewise.
10052 2018-04-27 Tom Tromey <tom@tromey.com>
10054 * configure: Rebuild.
10055 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
10056 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
10058 (class symbol_needs_eval_context): Likewise.
10059 * dwarf2read.c (mock_mapped_index::symbol_name_count)
10060 (mock_mapped_index::symbol_name_at): Use "override". Remove
10062 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
10064 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
10065 * aarch64-tdep.c (instruction_reader::read): Use "override".
10066 (instruction_reader_test::read): Likewise.
10067 * arm-tdep.c (instruction_reader::read): Use "override".
10068 (instruction_reader_thumb::read): Likewise.
10070 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
10073 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
10074 instead of remote_send.
10075 (remote_send): Remove.
10077 2018-04-26 Pedro Alves <palves@redhat.com>
10079 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
10080 find_function_start_sal instead of find_pc_line.
10082 2018-04-26 Pedro Alves <palves@redhat.com>
10084 * breakpoint.c (set_breakpoint_location_function): Handle
10085 mst_data_gnu_ifunc.
10086 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
10087 * elfread.c (elf_symtab_read): Give data symbols with
10088 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
10089 (elf_rel_plt_read): Update comment.
10090 * linespec.c (convert_linespec_to_sals): Handle
10091 mst_data_gnu_ifunc.
10092 (minsym_found): Handle mst_data_gnu_ifunc.
10093 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
10094 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
10095 * parse.c (find_minsym_type_and_address): Handle
10096 mst_data_gnu_ifunc.
10097 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
10098 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
10099 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
10101 <mst_data_gnu_ifunc>: New enumerator.
10103 2018-04-26 Pedro Alves <palves@redhat.com>
10105 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
10106 (lookup_minimal_symbol_by_pc_section): ... this. Replace
10107 'want_trampoline' parameter by a lookup_msym_prefer parameter.
10109 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
10110 (lookup_minimal_symbol_by_pc): Adjust.
10111 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
10112 (lookup_solib_trampoline_symbol_by_pc): Adjust.
10113 * minsyms.h (lookup_msym_prefer): New enum.
10114 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10115 parameter by a lookup_msym_prefer parameter.
10117 2018-04-26 Pedro Alves <palves@redhat.com>
10119 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
10120 ends in "@plt" instead of looking at the symbol's section.
10122 2018-04-26 Pedro Alves <palves@redhat.com>
10124 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
10126 (find_pc_partial_function_gnu_ifunc): Rename to ...
10127 (find_pc_partial_function): ... this, and remove references to
10129 (find_pc_partial_function): Delete old implementation.
10130 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
10132 2018-04-26 Pedro Alves <palves@redhat.com>
10134 * linespec.c (struct bound_minimal_symbol_search_key): New.
10135 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
10136 skip first line if we found a GNU ifunc minimal symbol by name.
10137 (compare_msymbols): Change parameters to work with a destructured
10139 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
10142 2018-04-26 Pedro Alves <palves@redhat.com>
10144 * breakpoint.c (set_breakpoint_location_function): Don't resolve
10145 ifunc targets here. Instead, if we have an ifunc minsym, use its
10147 (add_location_to_breakpoint): Store the minsym and the objfile in
10148 the breakpoint location.
10149 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
10150 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
10151 Record the minsym in the sal.
10152 * symtab.h (symtab_and_line) <msymbol>: New field.
10154 2018-04-26 Pedro Alves <palves@redhat.com>
10156 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
10157 unless we actually resolved the ifunc.
10159 2018-04-26 Pedro Alves <palves@redhat.com>
10161 * c-exp.y (variable production): Prefer ifunc minsyms over
10162 regular function symbols.
10163 * symtab.c (find_gnu_ifunc): New function.
10164 * minsyms.h (lookup_msym_prefer): New enum.
10165 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10166 parameter by a lookup_msym_prefer parameter.
10167 * symtab.h (find_gnu_ifunc): New declaration.
10169 2018-04-26 Pedro Alves <palves@redhat.com>
10171 * blockframe.c (find_gnu_ifunc_target_type): New function.
10172 (find_function_type): New.
10173 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
10174 return a value with a memory address.
10175 (eval_call): For calls to GNU ifunc functions, try to find the
10176 type of the target function from the type that the resolver
10178 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
10180 * infcall.c (find_function_return_type): Delete.
10181 (find_function_addr): Add 'function_type' parameter. For calls to
10182 GNU ifunc functions, try to find the type of the target function
10183 from the type that the resolver returns, and return it via
10185 (call_function_by_hand_dummy): Adjust to use the function type
10186 returned by find_function_addr.
10187 (find_function_addr): Add 'function_type' parameter and move
10189 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
10192 2018-04-26 Pedro Alves <palves@redhat.com>
10194 * c-exp.y (variable production): Skip finding an alias for ifunc
10197 2018-04-26 Pedro Alves <palves@redhat.com>
10199 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
10201 2018-04-25 Pedro Alves <palves@redhat.com>
10203 * infcmd.c (kill_command): Print the pid as string, not the whole
10204 thread's ptid. Add comment. s/has been killed/killed/ in output
10206 * remote.c (remote_detach_1): Print the pid as string, not the
10207 whole thread's ptid.
10209 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10210 Sergio Durigan Junior <sergiodj@redhat.com>
10211 Pedro Alves <palves@redhat.com>
10213 * infcmd.c (kill_command): Print message when inferior has
10215 * inferior.c (print_inferior_events): Remove 'static'. Set as
10217 (add_inferior): Improve message printed when
10218 'print_inferior_events' is on.
10219 (exit_inferior): Remove message printed when
10220 'print_inferior_events' is on.
10221 (detach_inferior): Improve message printed when
10222 'print_inferior_events' is on.
10223 (initialize_inferiors): Use 'add_inferior_silent' to set
10224 'current_inferior_'.
10225 * inferior.h (print_inferior_events): Declare here as
10227 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
10228 '[Detaching...]' messages when 'print_inferior_events' is on.
10229 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
10230 as prefix/suffix for messages. Remove periods. Fix erroneous
10231 'Detaching after fork from child...', replace it by '... from
10233 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
10234 prefix/suffix when printing 'Detaching...' messages. Print
10235 them when 'print_inferior_events' is on.
10236 * remote.c (remote_detach_1): Print message when detaching
10237 from inferior and '!is_fork_parent'.
10239 2018-04-24 Tom Tromey <tom@tromey.com>
10241 * cli-out.h: Reindent.
10243 2018-04-24 Tom Tromey <tom@tromey.com>
10245 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
10246 (cli_ui_out::do_field_string): Use fputs_filtered.
10247 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
10249 2018-04-23 Tom Tromey <tom@tromey.com>
10251 * guile/scm-frame.c (gdbscm_frame_read_var): Use
10252 gdb::unique_xmalloc_ptr.
10254 2018-04-23 Tom Tromey <tom@tromey.com>
10256 * configure: Rebuild.
10258 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
10261 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
10262 prepare_for_testing. Set normal_bp to r_debug_state if target
10265 2018-04-21 Pedro Alves <palves@redhat.com>
10266 Rajendra SY <rajendra.sy@gmail.com>
10268 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
10269 * remote.c (extended_remote_attach): In all-stop mode, mark the
10270 thread as executing.
10272 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10274 * thread.c (thread_apply_all_command): Fix comment.
10275 (thread_command): Fix comment.
10277 2018-04-10 Alan Hayward <alan.hayward@arm.com>
10279 * common/tdesc.h (tdesc_create_feature): Remove xml filename
10281 * features/aarch64-core.c (create_feature_aarch64_core):
10283 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
10285 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
10287 * features/i386/32bit-avx512.c
10288 (create_feature_i386_32bit_avx512): Likewise.
10289 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
10291 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
10293 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
10295 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
10297 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
10299 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
10301 * features/i386/64bit-avx512.c
10302 (create_feature_i386_64bit_avx512): Likewise.
10303 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
10305 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
10307 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
10309 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
10311 * features/i386/64bit-segments.c
10312 (create_feature_i386_64bit_segments): Likewise.
10313 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
10315 * features/i386/x32-core.c
10316 (create_feature_i386_x32_core): Likewise.
10317 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
10318 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
10319 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
10320 * target-descriptions.c: In generated code, don't pass xml
10323 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10325 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
10326 (print_xml_feature::visit_post): Likewise.
10327 (print_xml_feature::visit): Likewise.
10328 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
10329 (print_xml_feature): Add new class.
10330 * regformats/regdat.sh: Null xmltarget on feature targets.
10331 * target-descriptions.c (struct target_desc): Add xmltarget.
10332 (maintenance_check_tdesc_xml_convert): Add unittest function.
10333 (tdesc_get_features_xml): Add function to get xml.
10334 (maintenance_check_xml_descriptions): Test xml generation.
10335 * xml-tdesc.c (string_read_description_xml): Add function.
10336 * xml-tdesc.h (string_read_description_xml): Add declaration.
10338 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10340 * features/Makefile: Add feature marker to targets with new style
10341 target descriptions.
10342 * regformats/aarch64.dat: Regenerate.
10343 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
10344 * regformats/i386/amd64-avx-linux.dat: Likewise.
10345 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
10346 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
10347 * regformats/i386/amd64-linux.dat: Likewise.
10348 * regformats/i386/amd64-mpx-linux.dat: Likewise.
10349 * regformats/i386/amd64.dat: Likewise.
10350 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
10351 * regformats/i386/i386-avx-linux.dat: Likewise.
10352 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
10353 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
10354 * regformats/i386/i386-linux.dat: Likewise.
10355 * regformats/i386/i386-mmx-linux.dat: Likewise.
10356 * regformats/i386/i386-mpx-linux.dat: Likewise.
10357 * regformats/i386/i386.dat: Likewise.
10358 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
10359 * regformats/i386/x32-avx-linux.dat: Likewise.
10360 * regformats/i386/x32-linux.dat: Likewise.
10361 * regformats/tic6x-c62x-linux.dat: Likewise.
10362 * regformats/tic6x-c64x-linux.dat: Likewise.
10363 * regformats/tic6x-c64xp-linux.dat: Likewise.
10364 * regformats/regdat.sh: Parse feature marker.
10366 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10368 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
10369 (tdesc_osabi_name): Likewise.
10370 * target-descriptions.c (tdesc_architecture_name): Add new
10372 (tdesc_osabi_name): Likewise.
10374 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10376 * common/tdesc.c (tdesc_predefined_type): Move to here.
10377 (tdesc_named_type): Likewise.
10378 (tdesc_create_vector): Likewise.
10379 (tdesc_create_struct): Likewise.
10380 (tdesc_set_struct_size): Likewise.
10381 (tdesc_create_union): Likewise.
10382 (tdesc_create_flags): Likewise.
10383 (tdesc_create_enum): Likewise.
10384 (tdesc_add_field): Likewise.
10385 (tdesc_add_typed_bitfield): Likewise.
10386 (tdesc_add_bitfield): Likewise.
10387 (tdesc_add_flag): Likewise.
10388 (tdesc_add_enum_value): Likewise.
10389 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
10390 (struct tdesc_type_vector): Likewise.
10391 (struct tdesc_type_field): Likewise.
10392 (struct tdesc_type_with_fields): Likewise.
10393 (tdesc_create_enum): Add declaration.
10394 (tdesc_add_typed_bitfield): Likewise.
10395 (tdesc_add_enum_value): Likewise.
10396 * target-descriptions.c (tdesc_type_field): Move from here.
10397 (tdesc_type_builtin): Likewise.
10398 (tdesc_type_vector): Likewise.
10399 (tdesc_type_with_fields): Likewise.
10400 (tdesc_predefined_types): Likewise.
10401 (tdesc_named_type): Likewise.
10402 (tdesc_create_vector): Likewise.
10403 (tdesc_create_struct): Likewise.
10404 (tdesc_set_struct_size): Likewise.
10405 (tdesc_create_union): Likewise.
10406 (tdesc_create_flags): Likewise.
10407 (tdesc_create_enum): Likewise.
10408 (tdesc_add_field): Likewise.
10409 (tdesc_add_typed_bitfield): Likewise.
10410 (tdesc_add_bitfield): Likewise.
10411 (tdesc_add_flag): Likewise.
10412 (tdesc_add_enum_value): Likewise.
10413 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
10414 (tdesc_add_typed_bitfield): Likewise.
10415 (tdesc_add_enum_value): Likewise.
10417 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10419 * common/tdesc.c (tdesc_feature::accept): Move to here.
10420 (tdesc_feature::operator==): Likewise.
10421 (tdesc_create_reg): Likewise.
10422 * common/tdesc.h (tdesc_type_kind): Likewise.
10423 (struct tdesc_type): Likewise.
10424 (struct tdesc_feature): Likewise.
10425 * regformats/regdat.sh: Create a feature.
10426 * target-descriptions.c (tdesc_type_kind): Move from here.
10427 (tdesc_type): Likewise.
10428 (tdesc_type_up): Likewise.
10429 (tdesc_feature): Likewise.
10430 (tdesc_create_reg): Likewise.
10432 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10434 * Makefile.in: Add arch/tdesc.c
10435 * common/tdesc.c: New file.
10436 * common/tdesc.h (tdesc_element_visitor): Move to here.
10437 (tdesc_element): Likewise.
10438 (tdesc_reg): Likewise.
10439 (tdesc_reg_up): Likewise.
10440 * regformats/regdef.h (reg): Add offset to constructors.
10441 * target-descriptions.c (tdesc_element_visitor): Move from here.
10442 (tdesc_element): Likewise.
10443 (tdesc_reg): Likewise.
10444 (tdesc_reg_up): Likewise.
10446 2018-04-17 Tom Tromey <tom@tromey.com>
10448 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10449 discriminant field.
10451 2018-04-17 Tom Tromey <tom@tromey.com>
10453 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10455 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10457 * symtab.c (print_symbol_info): Skip printing filename and line
10458 number when `last' is NULL.
10459 (symtab_symbol_info): Use empty string instead of NULL for first
10460 invocation of print_symbol_info.
10461 (rbreak_command): Pass NULL to `last' parameter of
10464 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10466 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10467 instead of nullptr.
10469 2018-04-16 Pedro Alves <palves@redhat.com>
10471 * MAINTAINERS (sh): Remove.
10472 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10473 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10474 (ALLDEPFILES): Remove sh64-tdep.c.
10475 * NEWS: Mentions that support for SH-5/SH64 is removed.
10476 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10477 (sh*-*-openbsd*): Ditto.
10478 (sh64-*-elf*): Remove.
10480 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10481 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10482 * sh-tdep.c: No longer include "sh64-tdep.h".
10483 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10484 * sh64-tdep.c, sh64-tdep.h: Remove files.
10486 2018-04-16 Pedro Alves <palves@redhat.com>
10488 * MAINTAINERS: Remove m88k.
10489 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10490 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10491 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10492 * NEWS: Mention that support for m88k was removed.
10493 * configure.host (m88*-*-*): Remove support.
10494 * configure.nat (m88k-*-*): Remove support.
10495 * configure.tgt (m88*-*-openbsd*): Remove.
10496 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10498 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10500 * configure.tgt (x86_tobjs): New variable.
10501 (amd64_tobjs, i386_tobjs): Use it.
10503 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10505 * symtab.c (print_symbol_info): Precede the symbol definition by
10506 the line number when available.
10507 * NEWS: Advertise this enhancement.
10509 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10511 * NEWS (New options): announce set/show record btrace cpu.
10512 * btrace.c: Include record-btrace.h.
10513 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10514 the vendor is unknown.
10515 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10516 Maybe overwrite the btrace configuration's cpu.
10517 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10518 (btrace_fetch): Add cpu parameter. Update callers.
10519 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10520 Maybe overwrite the btrace configuration's cpu. Skip enabling
10521 errata workarounds if the vendor is unknown.
10522 * python/py-record-btrace.c: Include record-btrace.h.
10523 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10524 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10525 * record-btrace.c (record_btrace_cpu_state_kind): New.
10526 (record_btrace_cpu): New.
10527 (set_record_btrace_cpu_cmdlist): New.
10528 (record_btrace_get_cpu): New.
10529 (require_btrace_thread, record_btrace_info)
10530 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10531 (cmd_set_record_btrace_cpu_none): New.
10532 (cmd_set_record_btrace_cpu_auto): New.
10533 (cmd_set_record_btrace_cpu): New.
10534 (cmd_show_record_btrace_cpu): New.
10535 (_initialize_record_btrace): Initialize set/show record btrace cpu
10537 * record-btrace.h (record_btrace_get_cpu): New.
10539 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10541 * record.c (set_record_command): Fix typo in message.
10543 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10545 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10547 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10549 * infrun.c (process_event_stop_test): Call
10550 gdbarch_in_indirect_branch_thunk.
10551 * gdbarch.sh (in_indirect_branch_thunk): New.
10552 * gdbarch.c: Regenerated.
10553 * gdbarch.h: Regenerated.
10556 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10557 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10558 (ALLDEPFILES): Add x86-tdep.c.
10559 * arch-utils.h (default_in_indirect_branch_thunk): New.
10560 * arch-utils.c (default_in_indirect_branch_thunk): New.
10561 * i386-tdep: Include x86-tdep.h.
10562 (i386_in_indirect_branch_thunk): New.
10563 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10565 * amd64-tdep: Include x86-tdep.h.
10566 (amd64_in_indirect_branch_thunk): New.
10567 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10569 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10572 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10573 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10574 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10577 2018-04-12 Tom Tromey <tom@tromey.com>
10579 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10580 (rust_evaluate_subexp): Likewise.
10582 2018-04-12 Pedro Alves <palves@redhat.com>
10584 * procfs.c (procfs_detach): Make forward declaration's prototype
10585 match definition's protototype.
10586 (proc_get_LDT_entry): Remove stale do_cleanups call.
10588 2018-04-12 Pedro Alves <palves@redhat.com>
10590 * target.h (target_ops::to_has_exited): Delete.
10591 (target_has_exited): Delete.
10592 * target-delegates.c: Regenerate.
10594 2018-04-11 Pedro Alves <palves@redhat.com>
10596 * target.c (fileio_fh_t::t): Add comment.
10597 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10598 (target_fileio_close): Handle a NULL target.
10599 (invalidate_fileio_fh): New.
10600 (target_close): Call it.
10601 * remote.c (remote_hostio_send_command): No longer check whether
10602 remote_desc is open.
10604 2018-04-11 Pedro Alves <palves@redhat.com>
10606 * target.c (fileio_fh_t): Make it a named struct instead of a
10608 (fileio_fh_t::is_closed): New method.
10609 (DEF_VEC_O (fileio_fh_t)): Remove.
10610 (fileio_fhandles): Now a std::vector.
10611 (is_closed_fileio_fh): Delete.
10612 (acquire_fileio_fd): Adjust. Rename parameters.
10613 (release_fileio_fd): Adjust.
10614 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10615 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10616 (target_fileio_close): Adjust.
10618 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10620 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10623 2018-04-10 Pedro Alves <palves@redhat.com>
10625 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10626 (scoped_finish_thread_state): New class.
10627 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10629 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10630 (fetch_inferior_event, normal_stop): Likewise.
10631 * thread.c (finish_thread_state_cleanup): Delete.
10633 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10634 Pedro Alves <palves@redhat.com>
10636 * value.c: Include "selftest.h" and "common/array-view.h".
10637 (struct range) <operator ==>: New.
10638 (test_ranges_contain): New.
10639 (check_ranges_vector): New.
10640 (test_insert_into_bit_range_vector): New.
10641 (_initialize_values): Register selftests.
10642 * common/array-view.h (operator==, operator!=): New.
10644 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10646 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10648 * inline-frame.c: Include <algorithm>.
10649 (struct inline_state): Add constructor.
10650 (inline_state_s): Remove.
10651 (DEF_VEC_O(inline_state_s)): Remove.
10652 (inline_states): Change type to std::vector.
10653 (find_inline_frame_state): Adjust to std::vector.
10654 (allocate_inline_frame_state): Remove.
10655 (clear_inline_frame_state): Adjust to std::vector.
10656 (skip_inline_frames): Adjust to std::vector.
10658 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10660 * tracepoint.h (struct trace_state_variable): Add constructor.
10661 <name>: Change type to std::string.
10662 * tracepoint.c (tsv_s): Remove.
10663 (DEF_VEC_O(tsv_s)): Remove.
10664 (tvariables): Change to std::vector.
10665 (create_trace_state_variable): Adjust to std::vector.
10666 (find_trace_state_variable): Likewise.
10667 (find_trace_state_variable_by_number): Likewise.
10668 (delete_trace_state_variable): Likewise.
10669 (trace_variable_command): Adjust to std::string.
10670 (delete_trace_variable_command): Likewise.
10671 (tvariables_info_1): Adjust to std::vector.
10672 (save_trace_state_variables): Likewise.
10673 (start_tracing): Likewise.
10674 (merge_uploaded_trace_state_variables): Adjust to std::vector
10676 * target.h (struct target_ops)
10677 <to_download_trace_state_variable>: Pass reference to
10678 trace_state_variable.
10679 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10680 * target-delegates.c: Re-generate.
10681 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10682 (mi_tsv_deleted): Likewise.
10683 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10684 * remote.c (remote_download_trace_state_variable): Change
10685 pointer to reference and adjust.
10686 * make-target-delegates (parse_argtypes): Handle references.
10687 (write_function_header): Likewise.
10688 (munge_type): Likewise.
10690 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10692 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10693 string_view-selftests.c.
10694 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10696 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10697 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10698 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10699 * unittests/basic_string_view/element_access/char/1.cc:
10701 * unittests/basic_string_view/element_access/char/empty.cc:
10703 * unittests/basic_string_view/element_access/char/front_back.cc:
10705 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10706 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10708 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10710 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10712 * unittests/basic_string_view/operations/compare/char/1.cc:
10714 * unittests/basic_string_view/operations/compare/char/13650.cc:
10716 * unittests/basic_string_view/operations/copy/char/1.cc:
10718 * unittests/basic_string_view/operations/data/char/1.cc:
10720 * unittests/basic_string_view/operations/find/char/1.cc:
10722 * unittests/basic_string_view/operations/find/char/2.cc:
10724 * unittests/basic_string_view/operations/find/char/3.cc:
10726 * unittests/basic_string_view/operations/find/char/4.cc:
10728 * unittests/basic_string_view/operations/rfind/char/1.cc:
10730 * unittests/basic_string_view/operations/rfind/char/2.cc:
10732 * unittests/basic_string_view/operations/rfind/char/3.cc:
10734 * unittests/basic_string_view/operations/substr/char/1.cc:
10736 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10737 * unittests/string_view-selftests.c: New file.
10739 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10741 * unittests/basic_string_view/capacity/1.cc: New file.
10742 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10743 * unittests/basic_string_view/cons/char/1.cc: New file.
10744 * unittests/basic_string_view/cons/char/2.cc: New file.
10745 * unittests/basic_string_view/cons/char/3.cc: New file.
10746 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10747 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10748 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10749 * unittests/basic_string_view/element_access/char/1.cc: New file.
10750 * unittests/basic_string_view/element_access/char/2.cc: New file.
10751 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10752 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10753 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10754 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10755 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10756 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10757 * unittests/basic_string_view/include.cc: New file.
10758 * unittests/basic_string_view/inserters/char/1.cc: New file.
10759 * unittests/basic_string_view/inserters/char/2.cc: New file.
10760 * unittests/basic_string_view/inserters/char/3.cc: New file.
10761 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10762 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10763 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10764 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10765 * unittests/basic_string_view/literals/types.cc: New file.
10766 * unittests/basic_string_view/literals/values.cc: New file.
10767 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10768 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10769 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10770 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10771 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10772 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10773 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10774 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10775 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10776 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10777 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10778 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10779 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10780 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10781 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10782 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10783 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10784 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10785 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10786 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10787 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10788 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10789 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10790 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10791 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10792 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10793 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10794 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10795 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10796 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10797 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10798 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10799 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10800 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10801 * unittests/basic_string_view/operators/char/2.cc: New file.
10802 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10803 * unittests/basic_string_view/range_access/char/1.cc: New file.
10804 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10805 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10806 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10807 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10808 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10809 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10810 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10811 * unittests/basic_string_view/typedefs.cc: New file.
10812 * unittests/basic_string_view/types/1.cc: New file.
10814 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10816 * common/gdb_string_view.h: Remove libstdc++ implementation
10817 details, adjust to gdb reality.
10818 * common/gdb_string_view.tcc: Likewise.
10819 * cli/cli-script.c (struct string_view): Remove.
10820 (user_args) <m_args>: Change element type to gdb::string_view.
10821 (user_args::insert_args): Adjust.
10823 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10825 * common/gdb_string_view.h: New file.
10826 * common/gdb_string_view.tcc: New file.
10828 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10830 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10831 * configure: Re-generate.
10833 2018-04-09 Pedro Alves <palves@redhat.com>
10835 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10836 (set_target_gdbarch): Call
10837 gdb::observers::architecture_changed.notify instead of
10838 observer_notify_architecture_changed.
10840 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10842 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10843 (do_restore_current_traceframe_cleanup): Remove.
10844 (restore_current_traceframe_cleanup_dtor): Remove.
10845 (make_cleanup_restore_current_traceframe): Remove.
10846 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10848 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10849 * infrun.c (fetch_inferior_event): Use
10850 scoped_restore_current_traceframe.
10852 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10854 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10856 <n_allocated_type_units>: Remove.
10857 <all_type_units>: Change to std::vector.
10858 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10859 to std::vector change.
10860 (dwarf2_per_objfile::get_cutu): Likewise.
10861 (dwarf2_per_objfile::get_tu): Likewise.
10862 (create_signatured_type_table_from_index): Likewise.
10863 (create_signatured_type_table_from_debug_names): Likewise.
10864 (dw2_symtab_iter_next): Likewise.
10865 (dw2_print_stats): Likewise.
10866 (dw2_expand_all_symtabs): Likewise.
10867 (dw2_expand_marked_cus): Likewise.
10868 (dw2_debug_names_iterator::next): Likewise.
10869 (dwarf2_initialize_objfile): Likewise.
10870 (add_signatured_type_cu_to_table): Likewise.
10871 (create_all_type_units): Likewise.
10872 (add_type_unit): Likewise.
10873 (struct tu_abbrev_offset): Add constructor.
10874 (build_type_psymtabs_1): Adjust to std::vector change.
10875 (print_tu_stats): Likewise.
10876 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10877 (write_debug_names): Likewise.
10879 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10881 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10882 Make an std::vector.
10883 <n_comp_units>: Remove.
10884 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10885 to std::vector change.
10886 (dwarf2_per_objfile::get_cutu): Likewise.
10887 (dwarf2_per_objfile::get_cu): Likewise.
10888 (create_cus_from_index): Likewise.
10889 (create_addrmap_from_index): Likewise.
10890 (create_addrmap_from_aranges): Likewise.
10891 (dwarf2_read_index): Likewise.
10892 (dw2_find_last_source_symtab): Likewise.
10893 (dw2_map_symtabs_matching_filename): Likewise.
10894 (dw2_symtab_iter_next): Likewise.
10895 (dw2_print_stats): Likewise.
10896 (dw2_expand_all_symtabs): Likewise.
10897 (dw2_expand_symtabs_with_fullname): Likewise.
10898 (dw2_expand_marked_cus): Likewise.
10899 (dw2_map_symbol_filenames): Likewise.
10900 (create_cus_from_debug_names): Likewise.
10901 (dwarf2_read_debug_names): Likewise.
10902 (dw2_debug_names_iterator::next): Likewise.
10903 (dwarf2_initialize_objfile): Likewise.
10904 (set_partial_user): Likewise.
10905 (dwarf2_build_psymtabs_hard): Likewise.
10906 (read_comp_units_from_section): Remove arguments, adjust to
10907 std::vector change.
10908 (create_all_comp_units): Adjust to std::vector and
10909 read_comp_units_from_section changes.
10910 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10912 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10913 (psyms_seen_size): Likewise.
10914 (write_gdbindex): Likewise.
10915 (write_debug_names): Likewise.
10917 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10919 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10920 with dwarf2_per_objfile.
10921 (create_cus_from_index): Likewise.
10922 (create_signatured_type_table_from_index): Likewise.
10923 (dwarf2_read_index): Likewise.
10924 (dwarf2_initialize_objfile): Likewise.
10925 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10926 per_cu rather than get_dwarf2_per_objfile.
10928 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10930 * dwarf2read.h (struct signatured_type): Forward declare.
10931 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10933 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10934 (dw2_get_cutu): ...this.
10935 (dwarf2_per_objfile::get_cu): Rename from...
10936 (dw2_get_cu): ...this.
10937 (dwarf2_per_objfile::get_tu): New.
10938 (create_addrmap_from_index): Adjust.
10939 (create_addrmap_from_aranges): Adjust.
10940 (dw2_find_last_source_symtab): Adjust.
10941 (dw2_map_symtabs_matching_filename): Adjust.
10942 (dw2_symtab_iter_next): Adjust.
10943 (dw2_print_stats): Adjust.
10944 (dw2_expand_all_symtabs): Adjust.
10945 (dw2_expand_symtabs_with_fullname): Adjust.
10946 (dw2_expand_marked_cus): Adjust.
10947 (dw_expand_symtabs_matching_file_matcher): Adjust.
10948 (dw2_map_symbol_filenames): Adjust.
10949 (dw2_debug_names_iterator::next): Adjust.
10950 (dwarf2_initialize_objfile): Adjust.
10951 (set_partial_user): Adjust.
10952 (dwarf2_build_psymtabs_hard): Adjust.
10954 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10956 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10957 Remove unused variables.
10958 (dw2_map_symtabs_matching_filename): Likewise.
10959 (dwarf2_record_block_ranges): Likewise.
10960 (dwarf2_read_addr_index): Likewise.
10961 (follow_die_offset): Likewise.
10963 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10965 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10966 to symbol_file_add_main.
10968 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10971 * mi/mi-console.c (do_fputc_async_safe): New.
10972 (mi_console_file::write_async_safe): New.
10973 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
10974 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
10976 * ui-file.c (ui_file::putstrn): Adjust call to
10977 fputstrn_unfiltered.
10978 * utils.c (printchar): Replace do_fputs and do_fprintf
10979 parameters by do_fputc.
10980 (fputstr_filtered): Adjust call to printchar.
10981 (fputstr_unfiltered): Likewise.
10982 (fputstrn_filtered): Likewise.
10983 (fputstrn_unfiltered): Add do_fputc parameter, pass to
10985 * utils.h (do_fputc_ftype): New typedef.
10986 (fputstrn_unfiltered): Add do_fputc parameter.
10988 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10990 * regformats/i386/i386-avx.dat: Remove.
10992 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
10995 * amd64-tdep.c (amd64_none_init_abi): New function.
10996 (amd64_x32_none_init_abi): New function.
10997 (_initialize_amd64_tdep): Register handlers for x86-64 and
10998 x64_32 with GDB_OSABI_NONE.
10999 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
11000 GDB_OSABI_NONE osabi.
11002 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11005 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
11007 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
11008 * osabi.c (gdb_osabi_names): Add "unknown" entry.
11010 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11012 * common/byte-vector.h (char_vector): New type.
11013 * target.h (target_read_alloc): Return
11014 gdb::optional<byte_vector>.
11015 (target_read_stralloc): Return gdb::optional<char_vector>.
11016 (target_get_osdata): Return gdb::optional<char_vector>.
11017 * target.c (target_read_alloc_1): Templatize. Replacement
11018 manual memory management with vector.
11019 (target_read_alloc): Change return type, adjust.
11020 (target_read_stralloc): Change return type, adjust.
11021 (target_get_osdata): Change return type, adjust.
11022 * auxv.c (struct auxv_info) <length>: Remove.
11023 <data>: Change type to gdb::optional<byte_vector>.
11024 (auxv_inferior_data_cleanup): Free auxv_info with delete.
11025 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
11026 (target_auxv_search): Adjust.
11027 (fprint_target_auxv): Adjust.
11028 * avr-tdep.c (avr_io_reg_read_command): Adjust.
11029 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
11030 (linux_make_corefile_notes): Adjust.
11031 * osdata.c (get_osdata): Adjust.
11032 * remote.c (remote_get_threads_with_qxfer): Adjust.
11033 (remote_memory_map): Adjust.
11034 (remote_traceframe_info): Adjust.
11035 (btrace_read_config): Adjust.
11036 (remote_read_btrace): Adjust.
11037 (remote_pid_to_exec_file): Adjust.
11038 * solib-aix.c (solib_aix_get_library_list): Adjust.
11039 * solib-dsbt.c (decode_loadmap): Don't free buf.
11040 (dsbt_get_initial_loadmaps): Adjust.
11041 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
11042 * solib-target.c (solib_target_current_sos): Adjust.
11043 * tracepoint.c (sdata_make_value): Adjust.
11044 * xml-support.c (xinclude_start_include): Adjust.
11045 (xml_fetch_content_from_file): Adjust.
11046 * xml-support.h (xml_fetch_another): Change return type.
11047 (xml_fetch_content_from_file): Change return type.
11048 * xml-syscall.c (xml_init_syscalls_info): Adjust.
11049 * xml-tdesc.c (file_read_description_xml): Adjust.
11050 (fetch_available_features_from_target): Change return type.
11051 (target_fetch_description_xml): Adjust.
11052 (target_read_description_xml): Adjust.
11054 2018-04-06 Tom Tromey <tom@tromey.com>
11056 * value.c (~value): Update.
11057 (struct value) <contents>: Now unique_xmalloc_ptr.
11058 (value_contents_bits_eq, allocate_value_contents)
11059 (value_contents_raw, value_contents_all_raw)
11060 (value_contents_for_printing, value_contents_for_printing_const)
11061 (set_value_enclosing_type): Update.
11063 2018-04-06 Tom Tromey <tom@tromey.com>
11065 * value.c (range_s): Remove typedef, VEC.
11066 (struct range): Add operator<.
11067 (range_lessthan): Remove.
11068 (ranges_contain): Change type.
11070 (struct value) <unavailable, optimized_out>: Now std::vector.
11071 (value_entirely_available)
11072 (value_entirely_covered_by_range_vector)
11073 (value_entirely_unavailable, value_entirely_optimized_out):
11075 (insert_into_bit_range_vector): Change argument type.
11076 (find_first_range_overlap): Likewise.
11077 (struct ranges_and_idx, value_contents_bits_eq)
11078 (require_not_optimized_out, require_available): Update.
11079 (ranges_copy_adjusted): Change argument types.
11080 (value_optimized_out, value_copy, value_fetch_lazy): Update.
11082 2018-04-06 Tom Tromey <tom@tromey.com>
11084 * value.c (~value): Update.
11085 (struct value) <parent>: Now a value_ref_ptr.
11086 (value_parent, set_value_parent, value_address, value_copy):
11089 2018-04-06 Tom Tromey <tom@tromey.com>
11091 * value.c (struct value): Add constructor, destructor, and member
11093 (allocate_value_lazy, value_decref): Update.
11095 2018-04-06 Tom Tromey <tom@tromey.com>
11097 * value.c (struct value) <released, next>: Remove.
11098 (all_values): Now a std::vector.
11099 (allocate_value_lazy): Update.
11100 (value_next): Remove.
11101 (value_mark, value_free_to_mark, release_value)
11102 (value_release_to_mark): Update.
11104 2018-04-06 Tom Tromey <tom@tromey.com>
11106 * value.h (fetch_subexp_value, value_release_to_mark): Update.
11107 (free_value_chain): Remove.
11108 * value.c (free_value_chain): Remove.
11109 (value_release_to_mark): Return a std::vector.
11110 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
11112 (check_condition): Update.
11113 * eval.c (fetch_subexp_value): Change "val_chain" to a
11115 * breakpoint.c (update_watchpoint): Update.
11116 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
11118 2018-04-06 Tom Tromey <tom@tromey.com>
11120 * value.h (free_all_values): Remove.
11121 * value.c (free_all_values): Remove.
11123 2018-04-06 Tom Tromey <tom@tromey.com>
11125 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
11126 (value_history_chain, value_history_count): Remove.
11127 (value_history): New global.
11128 (record_latest_value, access_value_history, show_values)
11129 (preserve_values): Update.
11131 2018-04-06 Tom Tromey <tom@tromey.com>
11133 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
11134 * varobj.c (varobj_set_display_format, varobj_set_value)
11135 (install_default_visualizer, construct_visualizer)
11136 (install_new_value, ~varobj, varobj_get_value_type)
11137 (my_value_of_variable, varobj_editable_p): Update.
11138 * c-varobj.c (c_describe_child, c_value_of_variable)
11139 (cplus_number_of_children, cplus_describe_child): Update.
11140 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
11141 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
11142 (ada_value_of_variable, ada_value_is_changeable_p): Update.
11144 2018-04-06 Tom Tromey <tom@tromey.com>
11146 * printcmd.c (last_examine_address): Change type to
11148 (do_examine, x_command): Update.
11150 2018-04-06 Tom Tromey <tom@tromey.com>
11152 * value.c (release_value): Update.
11153 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
11154 (struct bpstats) <val>: Now a value_ref_ptr.
11155 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11156 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11157 (~watchpoint, print_it_watchpoint, watch_command_1)
11158 (invalidate_bp_value_on_memory_change): Update.
11160 2018-04-06 Tom Tromey <tom@tromey.com>
11162 * varobj.c (varobj_clear_saved_item)
11163 (update_dynamic_varobj_children, install_new_value, ~varobj):
11165 * value.h (value_incref): Move declaration earlier.
11166 (value_decref): Rename from value_free.
11167 (struct value_ref_policy): New.
11168 (value_ref_ptr): New typedef.
11169 (struct value_deleter): Remove.
11170 (gdb_value_up): Remove typedef.
11171 (release_value): Change return type.
11172 (release_value_or_incref): Remove.
11173 * value.c (set_value_parent): Update.
11174 (value_incref): Change return type.
11175 (value_decref): Rename from value_free.
11176 (value_free_to_mark, free_all_values, free_value_chain): Update.
11177 (release_value): Return value_ref_ptr.
11178 (release_value_or_incref): Remove.
11179 (record_latest_value, set_internalvar, clear_internalvar):
11181 * stack.c (info_frame_command): Don't call value_free.
11182 * python/py-value.c (valpy_dealloc, valpy_new)
11183 (value_to_value_object): Update.
11184 * printcmd.c (do_examine): Update.
11185 * opencl-lang.c (lval_func_free_closure): Update.
11186 * mi/mi-main.c (register_changed_p): Don't call value_free.
11187 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
11188 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
11189 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
11191 * guile/scm-value.c (vlscm_free_value_smob)
11192 (vlscm_scm_from_value): Update.
11193 * frame.c (frame_register_unwind, frame_unwind_register_signed)
11194 (frame_unwind_register_unsigned, get_frame_register_bytes)
11195 (put_frame_register_bytes): Don't call value_free.
11196 * findvar.c (address_from_register): Don't call value_free.
11197 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
11198 * dwarf2loc.c (entry_data_value_free_closure)
11199 (value_of_dwarf_reg_entry, free_pieced_value_closure)
11200 (dwarf2_evaluate_loc_desc_full): Update.
11201 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11202 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11203 (~watchpoint, watch_command_1)
11204 (invalidate_bp_value_on_memory_change): Update.
11205 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
11207 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
11210 * warning.m4: Add -Wno-error=deprecated-register.
11211 * configure: Re-generate.
11213 2018-04-05 Tom Tromey <tom@tromey.com>
11215 * linespec.h: Remove include of "vec.h".
11217 2018-04-05 Tom Tromey <tom@tromey.com>
11219 * linespec.c (typep): Remove typedef.
11220 (find_methods, find_superclass_methods): Take a std::vector.
11221 (find_method): Use std::vector.
11223 2018-04-05 Tom Tromey <tom@tromey.com>
11225 * utils.c (compare_strings): Remove.
11226 * utils.h (compare_strings): Remove.
11227 * objc-lang.h (find_imps): Update.
11228 * objc-lang.c (find_methods): Take a std::vector.
11229 (uniquify_strings, find_imps): Likewise.
11230 * linespec.c (find_methods): Take a std::vector.
11231 (decode_objc): Use std::vector.
11232 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
11234 (find_method, find_function_symbols): Use std::vector.
11236 2018-04-05 Tom Tromey <tom@tromey.com>
11238 * completer.c (completion_tracker::completion_tracker): Remove
11240 (completion_tracker::discard_completions): Likewise.
11241 * breakpoint.c (ambiguous_names_p): Remove cast.
11242 * ada-lang.c (_initialize_ada_language): Remove cast.
11243 * utils.h (streq): Update.
11244 (streq_hash): Add new declaration.
11245 * utils.c (streq): Return bool.
11246 (streq_hash): New function.
11248 2018-04-05 Tom Tromey <tom@tromey.com>
11250 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
11251 Remove a string copy.
11253 2018-04-05 Tom Tromey <tom@tromey.com>
11255 * linespec.c (filter_results): Use std::vector.
11256 (decode_line_2, decode_line_full): Update.
11258 2018-04-05 Tom Tromey <tom@tromey.com>
11260 * linespec.c (canonical_to_fullform): Return std::string.
11261 (filter_results): Update.
11262 (struct decode_line_2_item): Add constructor.
11263 <fullform, displayform>: Now std::string.
11264 (decode_line_2_compare_items): Now a std::sort comparator.
11265 (decode_line_2): Update.
11267 2018-04-05 Tom Tromey <tom@tromey.com>
11269 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
11270 (unexpected_linespec_error): Update.
11271 (linespec_parse_basic, parse_linespec): Update.
11273 2018-04-05 Tom Tromey <tom@tromey.com>
11275 * linespec.c (linespec_parse_basic): Reindent.
11277 2018-04-05 Tom Tromey <tom@tromey.com>
11279 * minsyms.h (iterate_over_minimal_symbols): Update.
11280 * minsyms.c (iterate_over_minimal_symbols): Take a
11281 gdb::function_view.
11282 * linespec.c (struct collect_minsyms): Remove.
11283 (compare_msyms): Now a std::sort comparator.
11284 (add_minsym): Add parameters.
11285 (search_minsyms_for_name): Update. Use std::vector.
11287 2018-04-03 Tom Tromey <tom@tromey.com>
11289 * mipsread.c (read_alphacoff_dynamic_symtab): Use
11292 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11294 * MAINTAINERS (Write After Approval): Add Weimin Pan.
11296 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11299 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
11300 printing static type.
11302 2018-04-01 Tom Tromey <tom@tromey.com>
11304 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
11305 (rs6000_xfer_shared_libraries): Update.
11307 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11309 * common/gdb_vecs.h (char_ptr): Remove.
11310 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
11312 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11314 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
11316 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
11318 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11320 * tracepoint.h (struct uploaded_tp): Initialize fields.
11321 <actions, step_actions, cmd_strings>: Change type to
11322 std::vector<char *>.
11323 * tracepoint.c (get_uploaded_tp): Allocate with new.
11324 (free_uploaded_tps): Free with delete.
11325 (parse_tracepoint_definition): Adjust to std::vector change.
11326 * breakpoint.c (read_uploaded_action): Likewise.
11327 (create_tracepoint_from_upload): Likewise.
11328 * ctf.c (ctf_write_uploaded_tp): Likewise.
11329 (SET_ARRAY_FIELD): Likewise.
11330 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
11332 2018-03-30 Tom Tromey <tom@tromey.com>
11334 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
11336 (svr4_keep_data_in_core): Update.
11337 (svr4_read_so_list): Update.
11339 2018-03-30 Tom Tromey <tom@tromey.com>
11341 * windows-nat.c (handle_output_debug_string, handle_exception):
11343 * target.h (target_read_string): Update.
11344 * target.c (target_read_string): Change "string" to
11345 unique_xmalloc_ptr.
11346 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
11348 * solib-frv.c (frv_current_sos): Update.
11349 * solib-dsbt.c (dsbt_current_sos): Update.
11350 * solib-darwin.c (darwin_current_sos): Update.
11351 * linux-thread-db.c (inferior_has_bug): Update.
11352 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
11353 Update. Remove alloca.
11354 * ada-lang.c (ada_main_name): Update.
11356 2018-03-30 Tom Tromey <tom@tromey.com>
11358 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
11359 (struct dwo_file_deleter): New.
11360 (dwo_file_up): New typedef.
11361 (open_and_init_dwo_file): Use dwo_file_up.
11362 (free_dwo_file_cleanup): Remove.
11364 2018-03-30 Tom Tromey <tom@tromey.com>
11366 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
11367 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
11369 2018-03-30 Tom Tromey <tom@tromey.com>
11371 * dwarf2read.c (class free_cached_comp_units): New class.
11372 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
11373 (free_cached_comp_units): Remove function.
11375 2018-03-30 Tom Tromey <tom@tromey.com>
11377 * utils.h (make_cleanup_unpush_target): Remove.
11378 * inf-ptrace.c (struct target_unpusher): New.
11379 (target_unpush_up) New typedef.
11380 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
11382 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
11384 2018-03-27 Tom Tromey <tom@tromey.com>
11386 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
11388 2018-03-27 Pedro Alves <palves@redhat.com>
11389 Tom Tromey <tom@tromey.com>
11391 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
11392 destructor. Now a class.
11393 (gdb_readline_wrapper_cleanup): Remove function.
11394 (gdb_readline_wrapper): Remove cleanups.
11396 2018-03-27 Tom Tromey <tom@tromey.com>
11398 * typeprint.h (struct type_print_options) <local_typedefs,
11399 global_typedefs>: Remove "struct" keyword.
11400 (class typedef_hash_table): New class.
11401 (recursively_update_typedef_hash, add_template_parameters)
11402 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
11403 (find_typedef_in_hash): Don't declare.
11404 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
11405 (typedef_hash_table::recursively_update): Rename from
11406 recursively_update_typedef_hash. Now a member.
11407 (typedef_hash_table::add_template_parameters): Rename from
11408 add_template_parameters. Now a member.
11409 (typedef_hash_table::typedef_hash_table): Now a constructor;
11410 rename from create_typedef_hash.
11411 (typedef_hash_table::~typedef_hash_table): Now a destructor;
11412 rename from free_typedef_hash.
11413 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
11414 (do_free_global_table): Remove.
11415 (typedef_hash_table::typedef_hash_table): New constructor; renamed
11416 from copy_type_recursive.
11417 (create_global_typedef_table): Remove.
11418 (typedef_hash_table::find_global_typedef): Now a member of
11419 typedef_hash_table.
11420 (typedef_hash_table::find_typedef): Rename from
11421 find_typedef_in_hash; now a member.
11422 (whatis_exp): Update.
11423 * extension.h (struct ext_lang_type_printers): Add constructor and
11425 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11427 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11428 Now a constructor; rename from start_ext_lang_type_printers.
11429 (ext_lang_type_printers): Now a destructor; rename from
11430 free_ext_lang_type_printers.
11431 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11433 (c_type_print_base_struct_union): Update. Remove cleanups.
11435 2018-03-27 Tom Tromey <tom@tromey.com>
11437 * dwarf-index-write.c: Include <cmath>.
11439 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11441 * NEWS: Add entry describing new "set|show varsize-limit" command.
11442 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11444 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11447 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11449 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11450 dwarf-index-write.c
11451 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11452 * dwarf-index-common.c: New file.
11453 * dwarf-index-common.h: New file.
11454 * dwarf-index-write.c: New file.
11455 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11456 (struct dwarf2_section_info): Move from here.
11457 (dwarf2_section_info_def): Likewise.
11458 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11459 (offset_type): Likewise.
11460 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11461 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11462 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11463 (byte_swap): Likewise.
11464 (MAYBE_SWAP): Likewise.
11465 (dwarf2_per_cu_ptr): Likewise.
11466 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11467 (struct tu_stats): Likewise.
11468 (struct dwarf2_per_objfile): Likewise.
11469 (struct dwarf2_per_cu_data): Likewise.
11470 (struct signatured_type): Likewise.
11471 (sig_type_ptr): Likewise.
11472 (DEF_VEC_P (sig_type_ptr)): Likewise.
11473 (INDEX4_SUFFIX): Likewise.
11474 (INDEX5_SUFFIX): Likewise.
11475 (DEBUG_STR_SUFFIX): Likewise.
11476 (dwarf2_read_section): Make non-static.
11477 (mapped_index_string_hash): Move from here.
11478 (dwarf5_djb_hash): Likewise.
11479 (file_write): Likewise.
11480 (class data_buf): Likewise.
11481 (struct symtab_index_entry): Likewise.
11482 (struct mapped_symtab): Likewise.
11483 (find_slot): Likewise.
11484 (hash_expand): Likewise.
11485 (add_index_entry): Likewise.
11486 (uniquify_cu_indices): Likewise.
11487 (class c_str_view): Likewise.
11488 (class c_str_view_hasher): Likewise.
11489 (class vector_hasher): Likewise.
11490 (write_hash_table): Likewise.
11491 (psym_index_map): Likewise.
11492 (struct addrmap_index_data): Likewise.
11493 (add_address_entry): Likewise.
11494 (add_address_entry_worker): Likewise.
11495 (write_address_map): Likewise.
11496 (symbol_kind): Likewise.
11497 (write_psymbols): Likewise.
11498 (struct signatured_type_index_data): Likewise.
11499 (write_one_signatured_type): Likewise.
11500 (recursively_count_psymbols): Likewise.
11501 (recursively_write_psymbols): Likewise.
11502 (class debug_names): Likewise.
11503 (check_dwarf64_offsets): Likewise.
11504 (psyms_seen_size): Likewise.
11505 (write_gdbindex): Likewise.
11506 (write_debug_names): Likewise.
11507 (assert_file_size): Likewise.
11508 (write_psymtabs_to_index): Likewise.
11509 (save_gdb_index_command): Likewise.
11510 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11512 * dwarf2read.h: New file.
11514 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11517 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11518 symbol name if the CU's language stores symbol names in linkage
11520 * language.h (struct language_defn)
11521 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11522 all instances of this struct.
11524 2018-03-26 Tom Tromey <tom@tromey.com>
11526 * stack.c (backtrace_command_1): Remove verbose code.
11528 2018-03-26 Tom Tromey <tom@tromey.com>
11530 * python/py-framefilter.c (py_print_type): Don't catch
11531 exceptions. Return void.
11532 (py_print_value): Likewise.
11533 (py_print_single_arg): Likewise.
11534 (enumerate_args): Don't catch exceptions.
11535 (py_print_args): Likewise.
11536 (py_print_frame): Likewise.
11537 (gdbpy_apply_frame_filter): Catch exceptions here.
11539 2018-03-26 Tom Tromey <tom@tromey.com>
11541 * stack.c (_initialize_stack): Remove trailing newlines from help
11542 text. Add "Usage" line to "backtrace" help.
11544 2018-03-26 Tom Tromey <tom@tromey.com>
11547 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11549 2018-03-26 Tom Tromey <tom@tromey.com>
11551 * python/py-framefilter.c (py_print_single_arg): Return
11552 EXT_LANG_BT_ERROR from catch.
11554 2018-03-26 Tom Tromey <tom@tromey.com>
11556 PR backtrace/15584:
11557 * stack.c (backtrace_command_1): Move some code into no-filters
11560 2018-03-26 Tom Tromey <tom@tromey.com>
11562 * python/py-framefilter.c (throw_quit_or_print_exception): New
11564 (gdbpy_apply_frame_filter): Use it.
11566 2018-03-26 Tom Tromey <tom@tromey.com>
11569 * python/py-framefilter.c (py_print_type, py_print_value)
11570 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11573 2018-03-26 Tom Tromey <tom@tromey.com>
11575 * python/py-framefilter.c (enumerate_args): Use
11576 gdb::unique_xmalloc_ptr.
11578 2018-03-26 Tom Tromey <tom@tromey.com>
11580 * python/py-framefilter.c (py_print_frame): Return
11582 (gdbpy_apply_frame_filter): Update comment.
11583 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11585 <EXT_LANG_BT_NO_FILTERS>: Change value.
11587 2018-03-26 Tom Tromey <tom@tromey.com>
11589 PR backtrace/15582:
11590 * stack.c (backtrace_command): Parse "hide" argument.
11591 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11592 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11595 2018-03-26 Tom Tromey <tom@tromey.com>
11597 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11599 (backtrace_command): Remove "fulltrace", add "flags".
11601 2018-03-26 Tom Tromey <tom@tromey.com>
11603 * stack.c (backtrace_command): Rewrite command line parsing.
11605 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11607 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11609 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11611 * filename-seen-cache.h: Add include guard.
11613 2018-03-26 Keith Seitz <keiths@redhat.com>
11615 * symfile.c (place_section): Remove "struct" from section_addr_info
11617 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11618 "struct" keyword from section_addr_info.
11620 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11622 * regformats/regdef.h (reg): Add constructors.
11624 2018-03-25 Pedro Alves <palves@redhat.com>
11626 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11627 if then/else bodies in var_func_name extraction.
11629 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11631 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11632 lookup_minimal_symbol() to find symbol entry.
11633 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11635 2018-03-23 Keith Seitz <keiths@redhat.com>
11638 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11639 nested type definitions for C++, too.
11641 2018-03-23 Tom Tromey <tom@tromey.com>
11643 * machoread.c (struct oso_el): Add a constructor. Don't define as
11645 (macho_register_oso): Remove.
11646 (macho_symtab_read): Take a std::vector.
11647 (oso_el_compare_name): Now a std::sort comparator.
11648 (macho_symfile_read_all_oso): Take a std::vector.
11649 (macho_symfile_read): Use std::vector. Remove cleanups.
11651 2018-03-22 Tom Tromey <tom@tromey.com>
11653 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11654 (record_full_goto_bookmark): Use std::string.
11656 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11659 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11662 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11664 * rs6000-tdep.c (store_insn_p): New function.
11665 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11666 and cr_reg to their unshifted values. Use store_insn_p to
11667 match LR saves using either R1 or fdata->alloca_reg. Use
11668 store_insn_p to match CR saves. Set alloca_reg_offset
11669 when alloca_reg and framep are set. Remove lr_reg shift
11670 when assigning to fdata->lr_register.
11672 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11674 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11675 command line args instead of emitting a warning.
11677 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11679 * tracepoint.h (struct static_tracepoint_marker): Initialize
11680 fields, define default constructor, move constructor and move
11681 assignment, disable the rest.
11682 <str_id, extra>: Make std::string.
11683 (release_static_tracepoint_marker): Remove.
11684 (free_current_marker): Remove.
11685 * tracepoint.c (free_current_marker): Remove.
11686 (parse_static_tracepoint_marker_definition): Adjust to
11687 std::string, use new hex2str overload.
11688 (release_static_tracepoint_marker): Remove.
11689 (print_one_static_tracepoint_marker): Get marker by reference
11690 and adjust to std::string.
11691 (info_static_tracepoint_markers_command): Adjust to std::vector
11693 * target.h (static_tracepoint_marker_p): Remove typedef.
11694 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11695 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11697 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11699 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11700 (target_debug_print_std_vector_static_tracepoint_marker): New.
11701 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11703 (target_debug_print_static_tracepoint_marker_p): ... this.
11704 * target-delegates.c: Re-generate.
11705 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11707 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11708 (decode_static_tracepoint_spec): Adjust to std::vector.
11709 (tracepoint_print_one_detail): Adjust to std::string.
11710 (strace_marker_decode_location): Adjust to std::string.
11711 (update_static_tracepoint): Adjust to std::string, remove call
11712 to release_static_tracepoint_marker.
11713 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11714 Adjust to std::vector.
11715 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11716 (remote_static_tracepoint_markers_by_strid): Adjust to
11718 * common/rsp-low.h (hex2str): New overload with explicit count
11720 * common/rsp-low.c (hex2str): New overload with explicit count
11722 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11723 (_initialize_rsp_low_selftests): Add test_hex2str test.
11724 * unittests/tracepoint-selftests.c
11725 (test_parse_static_tracepoint_marker_definition): Adjust to
11728 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11730 * tracepoint.c (parse_static_tracepoint_marker_definition):
11731 Consider case where the definition is followed by more
11733 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11734 tracepoint-selftests.c.
11735 * unittests/tracepoint-selftests.c: New.
11737 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11739 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11742 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11744 * symtab.c (find_pc_sect_line): fixed indentation.
11746 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11748 * symtab.c (find_pc_sect_line): now uses binary search.
11750 2018-03-19 Tom Tromey <tom@tromey.com>
11752 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11753 "IDENT" production.
11755 2018-03-19 Pedro Alves <palves@redhat.com>
11756 Tom Tromey <tom@tromey.com>
11758 * unittests/observable-selftests.c: New file.
11759 * common/observable.h: New file.
11760 * observable.h: New file.
11761 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11762 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11763 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11764 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11765 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11766 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11767 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11768 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11769 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11770 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11771 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11772 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11773 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11774 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11775 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11776 tui/tui-interp.c, valops.c: Update all users.
11777 * tui/tui-hooks.c (tui_bp_created_observer)
11778 (tui_bp_deleted_observer, tui_bp_modified_observer)
11779 (tui_inferior_exit_observer, tui_before_prompt_observer)
11780 (tui_normal_stop_observer, tui_register_changed_observer):
11782 (tui_observers_token): New global.
11783 (attach_or_detach, tui_attach_detach_observers): New functions.
11784 (tui_install_hooks, tui_remove_hooks): Use
11785 tui_attach_detach_observers.
11786 * record-btrace.c (record_btrace_thread_observer): Remove.
11787 (record_btrace_thread_observer_token): New global.
11788 * observer.sh: Remove.
11789 * observer.c: Rename to observable.c.
11790 * observable.c (namespace gdb_observers): Define new objects.
11791 (observer_debug): Move into gdb_observers namespace.
11792 (struct observer, struct observer_list, xalloc_observer_list_node)
11793 (xfree_observer_list_node, generic_observer_attach)
11794 (generic_observer_detach, generic_observer_notify): Remove.
11795 (_initialize_observer): Update.
11796 Don't include observer.inc.
11797 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11798 (clean mostlyclean): Likewise.
11799 (observer.h, observer.inc): Remove targets.
11800 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11801 (COMMON_SFILES): Use observable.c, not observer.c.
11802 * .gitignore: Remove observer.h.
11804 2018-03-18 Tom Tromey <tom@tromey.com>
11806 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11808 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11810 2018-03-17 Tom Tromey <tom@tromey.com>
11812 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11814 2018-03-17 Tom Tromey <tom@tromey.com>
11816 * target.c (class scoped_target_fd): New.
11817 (target_fileio_close_cleanup): Remove.
11818 (target_fileio_read_alloc_1): Use scoped_target_fd.
11820 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11822 * silent-rules.mk: New.
11823 * Makefile.in: Include silent-rules.mk
11824 (srcdir, VPATH, top_srcdir): Move up.
11825 (COMPILE): Add ECHO_CXX.
11826 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11827 (init.c): Add ECHO_INIT_C.
11828 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11829 (version.c): Add ECHO_GEN.
11830 (printcmd.o): Add ECHO_CXX.
11831 (target-float.o): Add ECHO_CXX.
11832 (ada-exp.o): Add ECHO_CXX.
11833 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11834 (insight$(EXEEXT)): Add ECHO_CXXLD.
11835 * gnulib/configure.ac: Add AM_SILENT_RULES.
11836 * gnulib/aclocal.m4: Re-generate.
11837 * gnulib/configure: Re-generate.
11838 * gnulib/import/Makefile.in: Re-generate.
11840 2018-03-16 Tom Tromey <tom@tromey.com>
11842 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11843 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11844 * utils.c (do_free_section_addr_info)
11845 (make_cleanup_free_section_addr_info): Remove.
11846 * symfile.h (struct other_sections): Add constructor.
11847 (struct section_addr_info): Remove.
11848 (section_addr_info): New typedef.
11849 (struct sym_fns) <sym_offsets>: Change type of parameter.
11850 (build_section_addr_info_from_objfile)
11851 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11852 (default_symfile_offsets, symbol_file_add)
11853 (symbol_file_add_from_bfd)
11854 (build_section_addr_info_from_section_table): Update.
11855 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11856 * symfile.c (alloc_section_addr_info): Remove.
11857 (build_section_addr_info_from_section_table): Change return type.
11859 (build_section_addr_info_from_bfd)
11860 (build_section_addr_info_from_objfile): Likewise.
11861 (free_section_addr_info): Remove.
11862 (relative_addr_info_to_section_offsets): Change type of "addrs".
11863 (addrs_section_compar): Now a std::sort comparator.
11864 (addrs_section_sort): Change return type.
11865 (addr_info_make_relative): Change type of "addrs". Update.
11866 (default_symfile_offsets, syms_from_objfile_1)
11867 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11868 (symbol_file_add_separate): Update.
11869 (symbol_file_add): Change type of "addrs". Update.
11870 (add_symbol_file_command): Update. Remove cleanups.
11871 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11873 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11874 * solib.c (solib_read_symbols): Update.
11875 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11876 * machoread.c (macho_symfile_offsets): Update.
11877 * jit.c (jit_bfd_try_read_symtab): Update.
11879 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11881 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11882 unittests/utils-selftests.c.
11883 * unittests/utils-selftests.c: New file.
11885 2018-03-14 Tom Tromey <tom@tromey.com>
11888 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11891 2018-03-14 Tom Tromey <tom@tromey.com>
11894 * printcmd.c (printf_pointer): Allow "-" in format.
11896 2018-03-14 Tom Tromey <tom@tromey.com>
11898 * printcmd.c (_initialize_printcmd): Add usage to printf.
11900 2018-03-14 Yao Qi <qiyao@sourceware.org>
11902 * MAINTAINERS: Update my email address.
11904 2018-03-13 Tom Tromey <tom@tromey.com>
11906 * machoread.c (macho_check_dsym): Change filenamep to a
11908 (macho_symfile_read): Update.
11909 * symfile.c (load_command): Use std::string.
11911 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11913 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11914 to error message string.
11915 (riscv_register_name): Use xsnprintf instead of sprintf.
11916 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11918 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11920 (riscv_push_dummy_call): Likewise.
11922 2018-03-12 Tom Tromey <tom@tromey.com>
11924 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11925 Use gdb::byte_vector.
11926 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11928 2018-03-12 Yao Qi <yao.qi@linaro.org>
11930 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11931 parameter type to readable_regcache.
11932 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11935 2018-03-11 Tom Tromey <tom@tromey.com>
11937 * dwarf2read.c (struct nextfield): Add initializers.
11938 (struct nextfnfield): Remove.
11939 (struct fnfieldlist): Add initializers. Remove "length" and
11940 "head", use std::vector.
11941 (struct decl_field_list): Remove.
11942 (struct field_info): Add initializers.
11943 <fields, baseclasses>: Now std::vector.
11944 <nbaseclasses, nfnfields, typedef_field_list_count,
11945 nested_types_list_count>: Remove.
11946 (dwarf2_add_field, dwarf2_add_type_defn)
11947 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11948 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11949 (process_structure_scope): Update.
11951 2018-03-11 Tom Tromey <tom@tromey.com>
11953 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11954 for use by std::sort.
11955 (build_type_psymtabs_1): Use std::vector.
11957 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11959 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11960 and LIBMPFR in the printed configuration.
11962 2018-03-08 Tom Tromey <tom@tromey.com>
11964 * source.c (get_filename_and_charpos): Use scoped_fd.
11965 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11966 (procfs_pidlist): Likewise.
11967 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11968 (iterate_over_mappings): Likewise.
11970 2018-03-08 Tom Tromey <tom@tromey.com>
11972 * infcall.c (struct call_return_meta_info)
11973 <stack_temporaries_enabled>: Remove.
11974 (get_call_return_value, call_function_by_hand_dummy): Update.
11975 * thread.c (disable_thread_stack_temporaries): Remove.
11976 (enable_thread_stack_temporaries): Remove.
11977 (thread_stack_temporaries_enabled_p): Return bool.
11978 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
11979 (get_last_thread_stack_temporary): Update.
11980 * eval.c (evaluate_subexp): Update.
11981 * gdbthread.h (class enable_thread_stack_temporaries): Now a
11982 class, not a function.
11983 (value_ptr, value_vec): Remove typedefs.
11984 (class thread_info) <stack_temporaries_enabled>: Now bool.
11985 <stack_temporaries>: Now a std::vector.
11986 (thread_stack_temporaries_enabled_p)
11987 (value_in_thread_stack_temporaries): Return bool.
11989 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
11991 * remote.c (putpkt_binary): Fix omitted bytes reporting.
11992 (getpkt_or_notif_sane_1): Likewise.
11994 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
11996 * build-id.c (build_id_to_debug_bfd): Use std::string.
11998 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12000 * build-id.c (find_separate_debug_file_by_buildid): Return
12002 * build-id.h (find_separate_debug_file_by_buildid): Return
12004 * coffread.c (coff_symfile_read): Adjust to std::string.
12005 * elfread.c (elf_symfile_read): Adjust to std::string.
12006 * symfile.c (separate_debug_file_exists): Change parameter to
12008 (find_separate_debug_file): Return std::string.
12009 (find_separate_debug_file_by_debuglink): Return std::string.
12010 * symfile.h (find_separate_debug_file_by_debuglink): Return
12013 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12015 * common/xml-utils.c (xml_escape_text): Move code to...
12016 (xml_escape_text_append): ... this new function.
12017 * common/xml-utils.h (xml_escape_text_append): New declaration.
12018 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
12020 (_initialize_xml_utils): register test_xml_escape_text_append as
12023 2018-03-07 Alan Hayward <alan.hayward@arm.com>
12025 * defs.h: Remove MAX_REGISTER_SIZE.
12026 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
12028 * python/py-unwind.c (pyuw_sniffer): Likewise.
12030 2018-03-07 Tom Tromey <tom@tromey.com>
12032 * linux-tdep.c (linux_info_proc): Update.
12033 * target.h (struct target_ops) <to_fileio_readlink>: Return
12035 (target_fileio_readlink): Return optional<string>.
12036 * remote.c (remote_hostio_readlink): Return optional<string>.
12037 * inf-child.c (inf_child_fileio_readlink): Return
12039 * target.c (target_fileio_readlink): Return optional<string>.
12041 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12043 * regcache.c (cooked_read_test): Add riscv to the list of
12044 architectures that have a save_reggroup.
12046 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
12048 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
12049 value is not a dynamic class object.
12051 2018-03-06 Tom Tromey <tom@tromey.com>
12053 * rust-exp.y: Formatting fixes.
12055 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12057 * riscv-tdep.c (riscv_register_name): Remove target description
12059 (riscv_gdbarch_init): Remove target description check.
12061 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12063 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
12065 * riscv-tdep.h: Likewise.
12067 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12069 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
12070 (riscv_pseudo_register_write): Delete.
12071 (riscv_gdbarch_init): Remove all use of pseudo registers.
12073 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12075 * record-btrace.c (btrace_print_lines): Replace cleanup
12076 parameter with RAII equivalents.
12077 (btrace_insn_history): Replace cleanup with RAII equivalents.
12078 * ui-out.h (make_cleanup_ui_out_list_begin_end,
12079 make_cleanup_ui_out_tuple_begin_end): Remove.
12080 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
12081 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
12082 make_cleanup_ui_out_list_begin_end): Remove.
12084 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12086 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
12087 parameter types to std::vector. Use bool.
12088 (record_btrace_wait): Replace VEC(tp_t) with
12089 std::vector<thread_info *>.
12090 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
12092 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12094 * record-btrace.c (record_btrace_disable_callback): Remove.
12095 (struct scoped_btrace_disable): New.
12096 (record_btrace_open): Use scoped_btrace_disable.
12098 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12100 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
12101 reading values from registers.
12103 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12105 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
12108 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12110 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
12111 change parameter type. Use GDB's print functions, and use
12112 core_addr_to_string where appropriate.
12113 (riscv_push_dummy_call): Use core_addr_to_string where
12114 appropriate, update call to riscv_print_arg_location, and reindent
12116 (riscv_return_value): Update call to riscv_print_arg_location.
12118 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12119 Tim Newsome <tim@sifive.com>
12120 Albert Ou <a0u@eecs.berkeley.edu>
12121 Darius Rad <darius@bluespec.com>
12123 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
12124 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
12125 (ALLDEPFILES): Add riscv-tdep.c
12126 * configure.tgt: Add riscv support.
12127 * riscv-tdep.c: New file.
12128 * riscv-tdep.h: New file.
12129 * NEWS: Mention new target.
12130 * MAINTAINERS: Add entry for riscv.
12132 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12134 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
12135 fields within aggregates.
12137 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
12139 * record-btrace.c (btrace_print_lines): Change type of flags to
12140 gdb_disassembly_flags.
12142 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12144 * fbsd-nat.c: Include "inf-ptrace.h".
12145 (USE_SIGTRAP_SIGINFO): Conditionally define.
12146 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
12147 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
12148 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
12150 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
12152 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
12154 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
12155 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
12156 "supports_stopped_by_hw_breakpoint" target methods.
12158 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12160 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
12161 * fbsd-nat.c (debug_fbsd_nat): New variable.
12162 (show_fbsd_nat_debug): New function.
12163 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
12164 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
12166 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12168 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
12169 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
12171 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
12172 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
12175 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12177 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
12178 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
12180 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12182 * charset.c (struct charset_vector): New.
12183 (charsets): Change type to charset_vector.
12184 (find_charset_names): Adjust.
12186 (_initialize_charset): Adjust.
12188 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12190 * progspace.h (struct program_space) <deleted_solibs>: Change
12191 type to std::vector<std::string>.
12192 * progspace.c (clear_program_space_solib_cache): Adjust.
12193 * breakpoint.c (print_solib_event): Adjust.
12194 (check_status_catch_solib): Adjust.
12195 * solib.c (update_solib_list): Adjust.
12196 * ui-out.h (class ui_out) <field_string>: New overload.
12197 * ui-out.c (ui_out::field_string): New overload.
12199 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12201 * progspace.h (struct program_space): Add constructor and
12202 destructor, initialize fields.
12203 (add_program_space): Remove.
12204 * progspace.c (add_program_space): Rename to...
12205 (program_space::program_space): ... this.
12206 (release_program_space): Rename to...
12207 (program_space::~program_space): ... this.
12208 (delete_program_space): Use delete to delete program_space.
12209 (initialize_progspace): Use new to allocate program_space.
12210 * inferior.c (add_inferior_with_spaces): Likewise.
12211 (clone_inferior_command): Likewise.
12212 * infrun.c (follow_fork_inferior): Likewise.
12213 (handle_vfork_child_exec_or_exit): Likewise.
12215 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12217 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
12218 (delim_string_to_char_ptr_vec): Return std::vector of
12219 gdb::unique_xmalloc_ptr.
12220 (dirnames_to_char_ptr_vec_append): Take std::vector of
12221 gdb::unique_xmalloc_ptr.
12222 (dirnames_to_char_ptr_vec): Return std::vector of
12223 gdb::unique_xmalloc_ptr.
12224 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
12225 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
12226 (delim_string_to_char_ptr_vec): Return an std::vector of
12227 gdb::unique_xmalloc_ptr, adjust the code.
12228 (dirnames_to_char_ptr_vec_append): Take an std::vector of
12229 gdb::unique_xmalloc_ptr, adjust the code.
12230 (dirnames_to_char_ptr_vec): Return an std::vector of
12231 gdb::unique_xmalloc_ptr, adjust the code.
12232 * auto-load.c (auto_load_safe_path_vec): Change type to
12233 std::vector of gdb::unique_xmalloc_ptr.
12234 (auto_load_expand_dir_vars): Return an std::vector of
12235 gdb::unique_xmalloc_ptr, adjust the code.
12236 (auto_load_safe_path_vec_update): Adjust.
12237 (filename_is_in_auto_load_safe_path_vec): Adjust.
12238 (auto_load_objfile_script_1): Adjust.
12239 * build-id.c (build_id_to_debug_bfd): Adjust.
12240 * linux-thread-db.c (thread_db_load_search): Adjust.
12241 * source.c (add_path): Adjust.
12243 * symfile.c (find_separate_debug_file): Adjust.
12244 * utils.c (do_free_char_ptr_vec): Remove.
12245 (make_cleanup_free_char_ptr_vec): Remove.
12247 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
12250 * common/pathstuff.c: Conditionally include "<windows.h>".
12252 2018-03-01 Georg Sauthoff <mail@georg.so>
12255 * gcore.in: Quote variables and switch interpreter to bash.
12257 2018-03-01 Tom Tromey <tom@tromey.com>
12259 * dwarf2read.c (alloc_discriminant_info): Fix default_index
12260 assertion. Add assertion for discriminant_index.
12261 (quirk_rust_enum): Use correct base type name in univariant case.
12263 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
12265 * record.c (get_call_history_modifiers): Return a
12266 record_print_flags.
12267 (cmd_record_call_history): Adjust.
12268 * record-btrace.c (record_btrace_call_history): Adjust.
12269 (record_btrace_call_history_range): Adjust.
12270 (record_btrace_call_history_from): Adjust.
12271 * target-debug.h (target_debug_print_record_print_flags): New.
12272 * target-delegates.c: Re-generate.
12273 * target.c (target_call_history): Change flags type.
12274 (target_call_history_from): Likewise.
12275 (target_call_history_range): Likewise.
12276 * target.h (struct target_ops) <target_call_history>: Likewise.
12277 (target_call_history_from): Likewise.
12278 (target_call_history_range): Likewise.
12280 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12281 Simon Marchi <simon.marchi@polymtl.ca>
12283 * common/common-utils.c: Include "sys/stat.h".
12284 (is_regular_file): Move here from "source.c"; change return
12286 * common/common-utils.h (is_regular_file): New prototype.
12287 * common/pathstuff.c (contains_dir_separator): New function.
12288 * common/pathstuff.h (contains_dir_separator): New prototype.
12289 * source.c: Don't include "sys/stat.h".
12290 (is_regular_file): Move to "common/common-utils.c".
12292 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12294 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
12295 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
12296 * auto-load.c: Include "common/pathstuff.h".
12297 * common/common-def.h (current_directory): Move here.
12298 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
12300 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
12302 * common/pathstuff.c: New file.
12303 * common/pathstuff.h: New file.
12304 * compile/compile.c: Include "common/pathstuff.h".
12305 * defs.h (current_directory): Move to "common/common-defs.h".
12306 * dwarf2read.c: Include "common/pathstuff.h".
12307 * exec.c: Likewise.
12308 * guile/scm-safe-call.c: Likewise.
12309 * linux-thread-db.c: Likewise.
12310 * main.c: Likewise.
12311 * nto-tdep.c: Likewise.
12312 * objfiles.c: Likewise.
12313 * source.c: Likewise.
12314 * symtab.c: Likewise.
12315 * utils.c: Include "common/pathstuff.h".
12316 (gdb_realpath): Move to "common/pathstuff.c".
12317 (gdb_realpath_keepfile): Likewise.
12318 (gdb_abspath): Likewise.
12319 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
12320 (gdb_realpath_keepfile): Likewise.
12321 (gdb_abspath): Likewise.
12323 2018-02-28 John Baldwin <jhb@FreeBSD.org>
12325 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
12326 wildcard process pid for super_resume for kernels with a
12329 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
12331 * compile/compile.c (get_args): Add additional comments
12332 explaining function.
12334 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
12335 Tom Tromey <tom@tromey.com>
12337 * target.h (memory_write_request_s): Remove typedef. Don't define
12339 (target_write_memory_blocks): Change argument to std::vector.
12340 (struct memory_write_request): Add constructor.
12341 * target-memory.c (compare_block_starting_address): Return bool.
12342 Change argument types.
12343 (claim_memory): Change arguments to use std::vector.
12344 (split_regular_and_flash_blocks, blocks_to_erase)
12345 (compute_garbled_blocks): Likewise.
12346 (cleanup_request_data, cleanup_write_requests_vector): Remove.
12347 (target_write_memory_blocks): Change argument to std::vector.
12348 * symfile.c (struct load_section_data): Add constructor and
12349 destructor. Use std::vector for "requests".
12350 (struct load_progress_data): Add initializers.
12351 (load_section_callback): Update. Use "new".
12352 (clear_memory_write_data): Remove.
12353 (generic_load): Update.
12355 2018-02-27 Alan Hayward <alan.hayward@arm.com>
12357 * arch/aarch64.h: Use common/tdesc.h.
12359 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12361 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
12362 architecture with a 64-bit ABI.
12364 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12366 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
12367 ahead of target description loading.
12369 2018-02-26 Tom Tromey <tom@tromey.com>
12371 * stack.c (backtrace_command_1): Update.
12372 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
12374 * python/py-framefilter.c (py_print_frame)
12375 (gdbpy_apply_frame_filter): Change type of "flags".
12376 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
12378 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
12379 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
12380 * extension.h (enum frame_filter_flag): Rename from
12381 frame_filter_flags.
12382 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
12383 (apply_ext_lang_frame_filter): Change type of "flags".
12384 * extension.c (apply_ext_lang_frame_filter): Change type of
12386 * extension-priv.h (struct extension_language_ops)
12387 <apply_frame_filter>: Change type of "flags".
12389 2018-02-26 Tom Tromey <tom@tromey.com>
12392 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
12393 off-by-one in py_end computation.
12394 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
12396 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
12399 2018-02-26 Tom Tromey <tom@tromey.com>
12401 * dwarf2read.c (struct variant_field): New.
12402 (struct nextfield) <variant>: New field.
12403 (dwarf2_add_field): Handle DW_TAG_variant_part.
12404 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
12405 discriminated union.
12406 (read_structure_type): Handle DW_TAG_variant_part.
12407 (handle_struct_member_die): New function, extracted from
12408 process_structure_scope. Handle DW_TAG_variant.
12409 (process_structure_scope): Handle discriminated unions. Call
12410 handle_struct_member_die.
12412 2018-02-26 Tom Tromey <tom@tromey.com>
12414 * rust-lang.h (rust_last_path_segment): Declare.
12415 * rust-lang.c (rust_last_path_segment): Now public. Change
12417 (struct disr_info): Remove.
12418 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
12419 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
12420 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
12421 (rust_enum_p, rust_enum_variant): New function.
12422 (rust_underscore_fields): Remove "offset" parameter.
12423 (rust_print_enum): New function.
12424 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12425 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12426 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12428 (rust_internal_print_type): New function, from rust_print_type.
12430 (rust_print_type): Call rust_internal_print_type.
12431 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12432 Update enum handling.
12433 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12434 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12435 (rust_union_quirks): New functions.
12436 (process_full_comp_unit, process_full_type_unit): Call
12438 (process_structure_scope): Update rust_unions if necessary.
12440 2018-02-26 Tom Tromey <tom@tromey.com>
12442 * value.h (value_union_variant): Declare.
12443 * valops.c (value_union_variant): New function.
12444 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12445 (struct discriminant_info): New.
12446 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12448 (struct main_type) <flag_discriminated_union>: New field.
12450 2018-02-26 Tom Tromey <tom@tromey.com>
12452 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12453 unittests/unpack-selftests.c.
12454 * unittests/unpack-selftests.c: New file.
12455 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12457 2018-02-26 Yao Qi <yao.qi@linaro.org>
12459 * dwarf2read.c (struct partial_die_info) <read>: New method.
12460 (read_partial_die): Remove the declaration.
12461 (load_partial_dies): Update.
12462 (partial_die_info::partial_die_info):
12463 (read_partial_die): Change it to partial_die_info::read.
12465 2018-02-26 Yao Qi <yao.qi@linaro.org>
12467 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12468 (fixup_partial_die): Remove declaration.
12469 (scan_partial_symbols): Update.
12470 (partial_die_parent_scope): Likewise.
12471 (partial_die_full_name): Likewise.
12472 (fixup_partial_die): Change it to partial_die_info::fixup.
12474 2018-02-26 Yao Qi <yao.qi@linaro.org>
12476 * dwarf2read.c (read_partial_die): Update the declaration.
12477 (load_partial_dies): Caller update.
12478 (read_partial_die): Remove one argument abbrev_len.
12480 2018-02-26 Yao Qi <yao.qi@linaro.org>
12482 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12483 assignment operator.
12484 (load_partial_dies): Use ctor and copy ctor.
12485 (read_partial_die): Update.
12486 (dwarf2_cu::find_partial_die): Use ctor.
12488 2018-02-26 Yao Qi <yao.qi@linaro.org>
12490 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12491 (find_partial_die_in_comp_unit): Change it to
12492 dwarf2_cu::find_partial_die.
12493 (find_partial_die): Update.
12495 2018-02-26 Yao Qi <yao.qi@linaro.org>
12497 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12500 2018-02-26 Yao Qi <yao.qi@linaro.org>
12502 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12504 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12506 * arch/amd64.h: Use common/tdesc.h.
12507 * arch/i386.c: Likewise.
12508 * arch/i386.h: Likewise.
12509 * arch/tic6x.c: Likewise.
12510 * arch/tdesc.h: Move file from here...
12511 * common/tdesc.h: ...to here.
12512 * features/aarch64-core.c: Regenerate.
12513 * features/aarch64-fpu.c: Regenerate.
12514 * features/i386/32bit-avx.c: Regenerate.
12515 * features/i386/32bit-avx512.c: Regenerate.
12516 * features/i386/32bit-core.c: Regenerate.
12517 * features/i386/32bit-linux.c: Regenerate.
12518 * features/i386/32bit-mpx.c: Regenerate.
12519 * features/i386/32bit-pkeys.c: Regenerate.
12520 * features/i386/32bit-sse.c: Regenerate.
12521 * features/i386/64bit-avx.c: Regenerate.
12522 * features/i386/64bit-avx512.c: Regenerate.
12523 * features/i386/64bit-core.c: Regenerate.
12524 * features/i386/64bit-linux.c: Regenerate.
12525 * features/i386/64bit-mpx.c: Regenerate.
12526 * features/i386/64bit-pkeys.c: Regenerate.
12527 * features/i386/64bit-segments.c: Regenerate.
12528 * features/i386/64bit-sse.c: Regenerate.
12529 * features/i386/x32-core.c: Regenerate.
12530 * features/tic6x-c6xp.c: Regenerate.
12531 * features/tic6x-core.c: Regenerate.
12532 * features/tic6x-gp.c: Regenerate.
12533 * target-descriptions.c: Use common/tdesc.h.
12534 * target-descriptions.h: Likewise.
12536 2018-02-24 Tom Tromey <tom@tromey.com>
12538 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12539 (try_thread_db_load_from_dir, thread_db_load_search): Use
12541 (info_auto_load_libthread_db_compare): Return bool. Change
12543 (info_auto_load_libthread_db): Use std::vector, std::string.
12546 2018-02-24 Tom Tromey <tom@tromey.com>
12548 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12550 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12552 * gdbarch.c: Rebuild.
12553 * gdbarch.h: Rebuild.
12554 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12555 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12556 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12559 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12561 * gdbtypes.h (sect_offset): Change type to uint64_t.
12562 (sect_offset_str): New function.
12563 * dwarf2read.c (create_addrmap_from_aranges): Use
12565 (error_check_comp_unit_head): Likewise.
12566 (create_debug_type_hash_table): Likewise.
12567 (read_cutu_die_from_dwo): Likewise.
12568 (init_cutu_and_read_dies): Likewise.
12569 (init_cutu_and_read_dies_no_follow): Likewise.
12570 (process_psymtab_comp_unit_reader): Likewise.
12571 (partial_die_parent_scope): Likewise.
12572 (peek_die_abbrev): Likewise.
12573 (process_queue): Likewise.
12574 (dwarf2_physname): Likewise.
12575 (read_namespace_alias): Likewise.
12576 (read_import_statement): Likewise.
12577 (create_dwo_cu_reader): Likewise.
12578 (create_cus_hash_table): Likewise.
12579 (lookup_dwo_cutu): Likewise.
12580 (inherit_abstract_dies): Likewise.
12581 (read_func_scope): Likewise.
12582 (read_call_site_scope): Likewise.
12583 (dwarf2_add_member_fn): Likewise.
12584 (read_common_block): Likewise.
12585 (read_module_type): Likewise.
12586 (read_typedef): Likewise.
12587 (read_subrange_type): Likewise.
12588 (load_partial_dies): Likewise.
12589 (read_partial_die): Likewise.
12590 (find_partial_die): Likewise.
12591 (read_str_index): Likewise.
12592 (dwarf2_string_attr): Likewise.
12593 (build_error_marker_type): Likewise.
12594 (lookup_die_type): Likewise.
12595 (dump_die_shallow): Likewise.
12596 (follow_die_ref): Likewise.
12597 (dwarf2_fetch_die_loc_sect_off): Likewise.
12598 (dwarf2_fetch_constant_bytes): Likewise.
12599 (follow_die_sig): Likewise.
12600 (get_signatured_type): Likewise.
12601 (get_DW_AT_signature_type): Likewise.
12602 (dwarf2_find_containing_comp_unit): Likewise.
12603 (set_die_type): Likewise.
12605 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12607 * arch/aarch64.c: Include "common-defs.h".
12608 * arch/amd64.c: Likewise.
12609 * arch/i386.c: Likewise.
12611 2018-02-21 Tom Tromey <tom@tromey.com>
12613 * value.h: (extract_field_op): Update.
12614 * eval.c (extract_field_op): Return a const char *.
12615 * expression.h (parse_expression_for_completion): Update.
12616 * completer.c (complete_expression): Update.
12617 (add_struct_fields): Make fieldname const.
12618 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12619 (mark_completion_tag, parse_exp_in_context_1): Update.
12620 (parse_expression_for_completion): Change "name" to
12621 unique_xmalloc_ptr*.
12623 2018-02-21 Tom Tromey <tom@tromey.com>
12625 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12627 2018-02-21 Yao Qi <yao.qi@linaro.org>
12629 * avr-tdep.c (avr_read_pc): Change parameter type to
12631 * gdbarch.sh (read_pc): Likewise.
12632 * gdbarch.c: Re-generated.
12633 * gdbarch.h: Re-generated.
12634 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12636 * ia64-tdep.c (ia64_read_pc): Likewise.
12637 * mips-tdep.c (mips_read_pc): Likewise.
12638 * spu-tdep.c (spu_read_pc): Likewise.
12640 2018-02-21 Yao Qi <yao.qi@linaro.org>
12642 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12643 * regcache-dump.c: New file.
12644 * regcache.c: Move register_dump to regcache-dump.c.
12645 (maintenance_print_registers): Likewise.
12646 (maintenance_print_raw_registers): Likewise.
12647 (maintenance_print_cooked_registers): Likewise.
12648 (maintenance_print_register_groups): Likewise.
12649 (maintenance_print_remote_registers): Likewise.
12650 (_initialize_regcache): Likewise.
12651 * regcache.h (register_dump): Moved from regcache.c.
12653 2018-02-21 Yao Qi <yao.qi@linaro.org>
12655 * regcache.c (regcache::regcache): Update.
12656 (regcache::invalidate): Move it to detached_regcache::invalidate.
12657 (get_thread_arch_aspace_regcache): Update.
12658 (regcache::raw_update): Update.
12659 (regcache::cooked_read): Remove some code.
12660 (regcache::cooked_read_value): Likewise.
12661 (regcache::raw_write): Remove assert on m_readonly_p.
12662 (regcache::raw_supply_integer): Move it to
12663 detached_regcache::raw_supply_integer.
12664 (regcache::raw_supply_zeroed): Likewise.
12665 * regcache.h (detached_regcache) <raw_supply_integer>: New
12667 <raw_supply_zeroed, invalidate>: Likewise.
12668 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12669 <invalidate>: Likewise.
12670 <m_readonly_p>: Removed.
12672 2018-02-21 Yao Qi <yao.qi@linaro.org>
12674 * infcmd.c (get_return_value): Let stop_regs point to
12675 get_current_regcache.
12676 * regcache.c (regcache::regcache): Remove.
12677 (register_dump_reg_buffer): New class.
12678 (regcache_print): Adjust.
12679 * regcache.h (regcache): Remove constructors.
12681 2018-02-21 Yao Qi <yao.qi@linaro.org>
12683 * regcache.c (class register_dump): New class.
12684 (register_dump_regcache, register_dump_none): New class.
12685 (register_dump_remote, register_dump_groups): New class.
12686 (regcache_print): Update.
12687 * regcache.h (regcache_dump_what): Move it to regcache.c.
12688 (regcache) <dump>: Remove.
12690 2018-02-21 Yao Qi <yao.qi@linaro.org>
12692 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12694 (jit_unwind_reg_set_impl): Call raw_supply.
12695 (jit_frame_sniffer): Use reg_buffer_rw.
12696 * record-full.c (record_full_core_regbuf): Change its type.
12697 (record_full_core_open_1): Use reg_buffer_rw.
12698 (record_full_close): Likewise.
12699 (record_full_core_fetch_registers): Use regcache->raw_supply.
12700 (record_full_core_store_registers): Likewise.
12701 * regcache.c (regcache::get_register_status): Move it to
12703 (regcache_raw_set_cached_value): Remove.
12704 (regcache::raw_set_cached_value): Remove.
12705 (regcache::raw_write): Call raw_supply.
12706 (regcache::raw_supply): Move it to reg_buffer_rw.
12707 * regcache.h (regcache_raw_set_cached_value): Remove.
12708 (reg_buffer_rw): New class.
12710 2018-02-21 Yao Qi <yao.qi@linaro.org>
12712 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12713 readonly_detached_regcache.
12714 (dummy_frame_prev_register): Use regcache->cooked_read.
12715 * frame.c (frame_save_as_regcache): Change return type.
12716 (frame_pop): Update.
12717 * frame.h (frame_save_as_regcache): Update declaration.
12718 * inferior.h (get_infcall_suspend_state_regcache): Update
12720 * infrun.c (infcall_suspend_state) <registers>: use
12721 readonly_detached_regcache.
12722 (save_infcall_suspend_state): Don't use regcache_dup.
12723 (get_infcall_suspend_state_regcache): Change return type.
12724 * linux-fork.c (struct fork_info) <savedregs>: Change to
12725 readonly_detached_regcache.
12727 (fork_save_infrun_state): Don't use regcache_dup.
12728 (info_checkpoints_command): Adjust.
12729 * mi/mi-main.c (register_changed_p): Update declaration.
12730 (mi_cmd_data_list_changed_registers): Use
12731 readonly_detached_regcache.
12732 (register_changed_p): Change parameter type to
12733 readonly_detached_regcache.
12734 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12735 readonly_detached_regcache.
12736 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12737 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12739 (regcache::save): Move it to reg_buffer.
12740 (regcache::restore): Change parameter type.
12741 (regcache_dup): Remove.
12742 * regcache.h (reg_buffer) <save>: New method.
12743 (readonly_detached_regcache): New class.
12744 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12745 readonly_detached_regcache.
12746 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12748 2018-02-21 Yao Qi <yao.qi@linaro.org>
12750 * frame.c (frame_save_as_regcache): Use regcache method save.
12751 (frame_pop): Use regcache method restore.
12752 * infrun.c (restore_infcall_suspend_state): Likewise.
12753 * linux-fork.c (fork_load_infrun_state): Likewise.
12754 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12756 * regcache.c (regcache_save): Remove.
12757 (regcache::restore): More asserts.
12758 (regcache_cpy): Remove.
12759 * regcache.h (regcache_save): Remove the declaration.
12760 (regcache::restore): Move from private to public.
12761 Remove the friend declaration of regcache_cpy.
12762 (regcache_cpy): Remove declaration.
12764 2018-02-21 Yao Qi <yao.qi@linaro.org>
12766 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12767 parameter type to 'readable_regcache *'.
12768 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12769 * arm-tdep.c (arm_neon_quad_read): Likewise.
12770 (arm_pseudo_read): Likewise.
12771 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12772 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12773 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12774 * gdbarch.c: Re-generated.
12775 * gdbarch.h: Re-generated.
12776 * gdbarch.sh (pseudo_register_read): Change parameter type to
12777 'readable_regcache *'.
12778 (pseudo_register_read_value): Likewise.
12779 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12780 (h8300_pseudo_register_read): Likewise.
12781 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12782 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12783 (i386_pseudo_register_read_into_value): Likewise.
12784 (i386_pseudo_register_read_value): Likewise.
12785 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12787 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12788 * m32c-tdep.c (m32c_raw_read): Likewise.
12789 (m32c_read_flg): Likewise.
12790 (m32c_banked_register): Likewise.
12791 (m32c_banked_read): Likewise.
12792 (m32c_sb_read): Likewise.
12793 (m32c_part_read): Likewise.
12794 (m32c_cat_read): Likewise.
12795 (m32c_r3r2r1r0_read): Likewise.
12796 (m32c_pseudo_register_read): Likewise.
12797 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12798 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12799 (mep_pseudo_cr64_read): Likewise.
12800 (mep_pseudo_register_read): Likewise.
12801 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12802 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12803 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12804 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12805 (regcache::cooked_read): Likewise.
12806 (regcache::cooked_read_value): Likewise.
12807 (regcache_cooked_read_signed):
12808 (regcache::cooked_read): Likewise.
12809 * regcache.h (readable_regcache): New class.
12810 (regcache): Inherit readable_regcache. Move some methods to
12812 * rl78-tdep.c (rl78_pseudo_register_read): Change
12813 parameter type to 'readable_regcache *'.
12814 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12815 (e500_pseudo_register_read): Change parameter type to
12816 'readable_regcache *'.
12817 (dfp_pseudo_register_read): Likewise.
12818 (vsx_pseudo_register_read): Likewise.
12819 (efpr_pseudo_register_read): Likewise.
12820 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12821 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12822 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12823 (sh64_pseudo_register_read): Likewise.
12824 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12825 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12826 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12827 (spu_pseudo_register_read): Likewise.
12828 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12829 (xtensa_pseudo_register_read): Likewise.
12831 2018-02-21 Yao Qi <yao.qi@linaro.org>
12833 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12834 (regcache::arch): Move it to reg_buffer::arch.
12835 (regcache::register_buffer): Likewise.
12836 (regcache::assert_regnum): Likewise.
12837 (regcache::num_raw_registers): Likewise.
12838 * regcache.h (reg_buffer): New class.
12839 (regcache): Inherit reg_buffer.
12841 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12843 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12844 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12846 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12848 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12850 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12852 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12853 (SFILES): Remove common/*.c files.
12854 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12855 * common/common.host: Add common reference.
12856 * configure.ac: Likewise.
12857 * configure: Regenerate.
12859 2018-02-16 Yao Qi <yao.qi@linaro.org>
12861 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12862 (block_initialize_namespace): Use new.
12863 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12864 (dwarf2_free_objfile): Use delete.
12865 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12866 (copy_type_recursive): Use new.
12867 * gdb_obstack.h (allocate_on_obstack): New.
12869 2018-02-15 Yao Qi <yao.qi@linaro.org>
12872 * inferior.c (exit_inferior_1): Reset inf->control.
12874 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12876 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12879 2018-02-14 Pedro Alves <palves@redhat.com>
12881 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12882 frame_cleanup_after_sniffer on exception.
12884 2018-02-14 Tom Tromey <tom@tromey.com>
12886 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12888 (solib_bfd_open): Make pathname const.
12889 * solib.c (solib_bfd_open): Make pathname const.
12890 * solib-spu.c (spu_bfd_fopen): Make name const.
12891 (spu_bfd_open): Make pathname const.
12892 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12893 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12895 2018-02-14 Tom Tromey <tom@tromey.com>
12897 * symfile.c (symfile_bfd_open): Update.
12898 * source.h (openp, source_full_path_of, find_and_open_source):
12899 Change argument type to unique_xmalloc_ptr.
12900 * source.c (openp): Take a unique_xmalloc_ptr.
12901 (source_full_path_of, find_and_open_source): Likewise.
12902 (open_source_file, symtab_to_fullname): Update.
12903 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12904 unique_xmalloc_ptr.
12905 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12906 (exec_file_find): Update.
12907 * psymtab.c (psymtab_to_fullname): Update.
12908 * nto-tdep.h (nto_find_and_open_solib): Update.
12909 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12910 unique_xmalloc_ptr.
12911 * exec.c (exec_file_attach): Update.
12912 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12913 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12915 2018-02-14 Tom Tromey <tom@tromey.com>
12917 * solib.c: Include source.h.
12918 * nto-tdep.c: Include source.h.
12919 * mi/mi-cmd-env.c: Include source.h.
12920 * infcmd.c: Include source.h.
12921 * exec.c: Include source.h.
12922 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12923 (add_path, directory_switch, source_path, init_source_path): Move
12925 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12926 (add_path, directory_switch, source_path, init_source_path):
12929 2018-02-14 Tom Tromey <tom@tromey.com>
12931 * solist.h (exec_file_find, solib_find): Return
12932 unique_xmalloc_ptr.
12933 (solib_bfd_fopen): Take a const char *.
12934 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12935 (exec_file_find, solib_find): Likewise.
12936 (solib_bfd_fopen): Do not take ownership of "pathname".
12937 (solib_bfd_open): Use unique_xmalloc_ptr.
12938 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12939 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12940 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12941 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12943 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12945 * ada-lang.c (name_match_type_from_name): Remove reference to
12946 ada_name_for_lookup in function's documentation.
12947 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12949 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12951 * defs.h (enum openp_flags): New enum.
12952 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12953 Move to enum openp_flags.
12954 (openp_flags): New enum flags.
12955 (openp): Change parameter type to openp_flags.
12956 * source.c (openp): Change parameter type to openp_flags.
12957 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12958 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12960 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12962 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12965 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12967 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12969 (class dwarf2_queue_guard): ...the destructor of this new class.
12970 (dw2_do_instantiate_symtab): Create instance of the new class
12971 dwarf2_queue_guard, remove cleanup.
12973 2018-02-09 Tom Tromey <tom@tromey.com>
12975 * source.c (find_source_lines): Don't reference past the end of
12978 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12980 * remote.c (remote_btrace_maybe_reopen): Change error message.
12981 * btrace.c (btrace_enable): Likewise.
12982 (parse_xml_btrace): Likewise.
12983 (parse_xml_btrace_conf): Likewise.
12985 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12987 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
12988 (linux_enable_pt, linux_enable_bts): Call
12989 diagnose_perf_event_open_fail.
12991 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
12993 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
12994 Remove parameter and change return type. Update callers. Move it.
12995 (linux_enable_bts, linux_enable_pt): Improve error message.
12996 (linux_enable_pt): Remove zero buffer size check.
12997 (linux_enable_btrace): Improve error messages. Remove NULL return
13000 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13002 * btrace.c (btrace_enable): Remove target_supports_btrace call.
13003 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
13004 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
13005 (linux_supports_pt, linux_supports_btrace): Remove.
13006 (linux_enable_bts): Call cpu_supports_bts.
13007 * nat/linux-btrace.h (linux_supports_btrace): Remove.
13008 * remote.c (remote_supports_btrace): Remove.
13009 (init_remote_ops): Remove remote_supports_btrace.
13010 * target-delegates.c: Regenerated.
13011 * target.c (target_supports_btrace): Remove.
13012 * target.h (target_ops) <to_supports_btrace>: Remove
13013 (target_supports_btrace): Remove.
13014 * x86-linux-nat.c (x86_linux_create_target): Remove
13015 linux_supports_btrace.
13017 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13019 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
13021 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
13022 exception and use message in own exception.
13024 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13026 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
13027 (perf_event_pt_event_type): Use gdb_file_up.
13028 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
13029 scoped_fd, and scoped_mmap.
13031 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13033 * common/scoped_mmap.h: New.
13034 * unittests/scoped_mmap-selftest.c: New.
13035 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13036 unittests/scoped_mmap-selftest.c.
13038 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13040 * common/scoped_fd.h: New.
13041 * unittests/scoped_fd-selftest.c: New.
13042 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13043 unittests/scoped_fd-selftest.c.
13045 2018-02-09 Tom Tromey <tom@tromey.com>
13047 * auto-load.c (auto_load_section_scripts): Use
13048 gdb::unique_xmalloc_ptr.
13050 2018-02-09 Tom Tromey <tom@tromey.com>
13052 * auto-load.c (execute_script_contents): Use std::string.
13054 2018-02-09 Joel Brobecker <brobecker@adacore.com>
13056 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
13057 Python function, rather than a new command.
13059 2018-02-08 Tom Tromey <tom@tromey.com>
13061 * solib.c (solib_find_1): Use std::string.
13062 (solib_bfd_fopen): Use unique_xmalloc_ptr.
13064 2018-02-08 Tom Tromey <tom@tromey.com>
13066 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
13068 2018-02-08 Tom Tromey <tom@tromey.com>
13070 * source.c (find_source_lines): Use gdb::def_vector.
13072 2018-02-08 Tom Tromey <tom@tromey.com>
13074 * macrocmd.c (struct temporary_macro_definition): New.
13075 (macro_define_command): Use temporary_macro_definition. Remove
13077 (free_macro_definition_ptr): Remove.
13079 2018-02-08 Tom Tromey <tom@tromey.com>
13081 * macroexp.c (maybe_expand): Use std::string.
13083 2018-02-08 Tom Tromey <tom@tromey.com>
13085 * macroexp.c (struct macro_buffer): Add initializers for some
13087 (init_buffer, init_shared_buffer, free_buffer)
13088 (free_buffer_return_text): Remove.
13089 (macro_buffer): New constructors.
13090 (~macro_buffer): New destructor.
13091 (macro_buffer::set_shared): New method.
13092 (macro_buffer::resize_buffer, macro_buffer::appendc)
13093 (macro_buffer::appendmem): Now methods, not free functions.
13094 (set_token, append_tokens_without_splicing, stringify)
13095 (macro_stringify): Update.
13096 (gather_arguments): Change return type. Remove argc_p argument,
13097 add args_ptr argument. Use std::vector.
13098 (substitute_args): Remove argc argument. Accept std::vector.
13099 (expand): Update. Use std::vector.
13100 (scan, macro_expand, macro_expand_next): Update.
13102 2018-02-08 Tom Tromey <tom@tromey.com>
13104 * symtab.c (default_collect_symbol_completion_matches_break_on):
13105 Use unique_xmalloc_ptr.
13106 * macroscope.h: (sal_macro_scope, user_macro_scope)
13107 (default_macro_scope): Return unique_xmalloc_ptr.
13108 * macroscope.c (sal_macro_scope, user_macro_scope)
13109 (default_macro_scope): Return unique_xmalloc_ptr.
13110 * macroexp.h (macro_expand, macro_expand_once): Return
13111 unique_xmalloc_ptr.
13112 * macroexp.c (macro_expand, macro_expand_once): Return
13113 unique_xmalloc_ptr.
13114 * macrocmd.c (macro_expand_command, macro_expand_once_command)
13115 (info_macro_command, info_macros_command): Use
13116 unique_xmalloc_ptr.
13117 * compile/compile-c-support.c (write_macro_definitions): Use
13118 unique_xmalloc_ptr.
13119 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
13121 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
13123 * value.c (value_static_field): Assign field type instead of
13124 containing type when returning an optimized out value.
13126 2018-02-06 Yao Qi <yao.qi@linaro.org>
13128 * ft32-tdep.c (ft32_read_pc): Remove.
13129 (ft32_write_pc): Remove.
13130 (ft32_gdbarch_init): Update.
13131 * m32r-tdep.c (m32r_read_pc): Remove.
13132 (m32r_gdbarch_init): Update.
13133 * mep-tdep.c (mep_read_pc): Remove.
13134 (mep_gdbarch_init): Update.
13135 * microblaze-tdep.c (microblaze_write_pc): Remove.
13136 (microblaze_gdbarch_init): Update.
13137 * mn10300-tdep.c (mn10300_read_pc): Remove.
13138 (mn10300_write_pc): Remove.
13139 (mn10300_gdbarch_init): Update.
13140 * moxie-tdep.c (moxie_read_pc): Remove.
13141 (moxie_write_pc): Remove.
13142 (moxie_gdbarch_init): Update.
13144 2018-02-06 Yao Qi <yao.qi@linaro.org>
13146 * expprint.c (print_subexp_standard): Handle
13147 OP_F77_UNDETERMINED_ARGLIST.
13148 (dump_subexp_body_standard): Likewise.
13150 2018-02-05 Alan Hayward <alan.hayward@arm.com>
13152 * target-descriptions.c (tdesc_element_visitor) Add empty
13154 (tdesc_type): Move make_gdb_type from here.
13155 (tdesc_type_builtin): Likewise.
13156 (tdesc_type_vector): Likewise.
13157 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
13158 (make_gdb_type_struct): Move from tdesc_type_with_fields.
13159 (make_gdb_type_union): Likewise.
13160 (make_gdb_type_flags): Likewise.
13161 (make_gdb_type_enum): Likewise.
13162 (make_gdb_type): New function.
13163 (tdesc_register_type): Use static make_gdb_type.
13165 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
13167 * infcmd.c (default_print_one_register_info): Align natural-format
13168 column values consistently one under another.
13169 (pad_to_column): New function.
13171 2018-02-05 Joel Brobecker <brobecker@adacore.com>
13173 * dwarf2read.c (dwarf2_physname): Move commment.
13175 2018-02-01 Leszek Swirski <leszeks@google.com>
13177 * varobj.c (varobj_formatted_print_options): Allow recursive
13178 pretty printing if pretty printing is enabled.
13180 2018-02-01 Leszek Swirski <leszeks@google.com>
13182 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
13183 names after a structop as a filename.
13185 2018-02-01 Yao Qi <yao.qi@linaro.org>
13187 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
13188 (arm_record_coproc_data_proc): Likewise.
13190 2018-02-01 Yao Qi <yao.qi@linaro.org>
13192 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
13194 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
13196 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
13197 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
13199 2018-01-31 Pedro Alves <palves@redhat.com>
13201 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
13202 * inflow.c (child_terminal_save_inferior): Wrap reference to
13203 tcgetpgrp in HAVE_TERMIOS_H.
13204 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
13206 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
13207 always iterate over all inferiors.
13208 (gdbsim_cntrl_c): Adjust.
13209 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
13211 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13213 * gdbtypes.c (lookup_array_range_type): Make sure the array's
13214 index type is objfile-owned if the element type is as well.
13216 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13220 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
13222 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
13223 "features/s390x-linux64.c".
13224 (_initialize_s390_linux_tdep): Remove initialization of tdescs
13225 s390_linux32 and s390x_linux64.
13226 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
13228 * s390-tdep.c: Include "features/s390-linux32.c" and
13229 "features/s390x-linux64.c".
13230 (s390_tdesc_valid): Add check for tdesc_has_registers.
13231 (s390_gdbarch_init): Make sure there is always a valid tdesc.
13232 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
13233 tdesc_s390x_linux64.
13234 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
13235 tdesc_s390x_linux64 to...
13236 * s390-tdep.h: ...here.
13238 2018-01-30 Pedro Alves <palves@redhat.com>
13241 * config.in, configure: Regenerate.
13242 * configure.ac: Check for getpgid.
13243 * go32-nat.c (go32_pass_ctrlc): New.
13244 (go32_target): Install it.
13245 * inf-child.c (inf_child_target): Install
13246 child_terminal_save_inferior, child_pass_ctrlc and
13248 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
13249 (inf_ptrace_target): No longer install it.
13250 * infcmd.c (interrupt_target_1): Adjust.
13251 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
13252 (child_interrupt): Declare.
13253 (inferior::terminal_state): New.
13254 * inflow.c (struct terminal_info): Update comments.
13255 (inferior_process_group): Delete.
13256 (terminal_is_ours): Delete.
13257 (gdb_tty_state): New.
13258 (child_terminal_init): Adjust.
13259 (is_gdb_terminal, sharing_input_terminal_1)
13260 (sharing_input_terminal): New functions.
13261 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
13262 Set the process's actual process group in the foreground if
13263 possible. Handle is_ours_for_output/is_ours distinction. Don't
13264 mark terminal as the inferior's if not sharing GDB's terminal.
13265 Don't check attach_flag.
13266 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
13267 pass down a target_terminal_state.
13268 (child_terminal_save_inferior): New, factored out from ...
13269 (child_terminal_ours_1): ... this. Handle
13270 target_terminal_state::is_ours_for_output.
13271 (child_interrupt, child_pass_ctrlc): New.
13272 (inflow_inferior_exit): Clear the inferior's terminal_state.
13273 (copy_terminal_info): Copy the inferior's terminal state.
13274 (_initialize_inflow): Remove reference to terminal_is_ours.
13275 * inflow.h (inferior_process_group): Delete.
13276 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
13277 * procfs.c (procfs_target): Don't install procfs_interrupt.
13278 (procfs_interrupt): Delete.
13279 * remote.c (remote_serial_quit_handler): Adjust.
13280 (remote_interrupt): Remove ptid parameter. Adjust.
13281 * target-delegates.c: Regenerate.
13282 * target.c: Include "terminal.h".
13283 (target_terminal::terminal_state): Rename to ...
13284 (target_terminal::m_terminal_state): ... this.
13285 (target_terminal::init): Adjust.
13286 (target_terminal::inferior): Adjust to per-inferior
13288 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
13289 (target_terminal::ours, target_terminal::ours_for_output): Use
13290 target_terminal_is_ours_kind.
13291 (target_interrupt): Remove ptid parameter. Adjust.
13292 (default_target_pass_ctrlc): Adjust.
13293 * target.h (target_ops::to_terminal_save_inferior): New field.
13294 (target_ops::to_interrupt): Remove ptid_t parameter.
13295 (target_interrupt): Remove ptid_t parameter. Update comment.
13296 (target_pass_ctrlc): Update comment.
13297 * target/target.h (target_terminal_state): New scoped enum,
13298 factored out of ...
13299 (target_terminal::terminal_state): ... here.
13300 (target_terminal::inferior): Update comments.
13301 (target_terminal::restore_inferior): New.
13302 (target_terminal::is_inferior, target_terminal::is_ours)
13303 (target_terminal::is_ours_for_output): Adjust.
13304 (target_terminal::scoped_restore_terminal_state): Adjust to
13305 rename, and call restore_inferior() instead of inferior().
13306 (target_terminal::scoped_restore_terminal_state::m_state): Change
13308 (target_terminal::terminal_state): Rename to ...
13309 (target_terminal::m_terminal_state): ... this and change type.
13311 2018-01-30 Pedro Alves <palves@redhat.com>
13313 * linux-nat.c (wait_for_signal): New function.
13314 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
13316 (async_terminal_is_ours)
13317 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
13318 (linux_nat_add_target): Don't override
13319 to_terminal_inferior/to_terminal_ours.
13321 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
13323 * remote.c (remote_follow_fork): Don't call "detach_inferior".
13325 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
13327 * dwarf2read.c (free_dwo_files): Add forward-declaration.
13328 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
13329 dwarf2_per_objfile_free here.
13330 (dwarf2_per_objfile_free): Remove.
13331 (_initialize_dwarf2_read): Don't register
13332 dwarf2_per_objfile_free as a registry cleanup.
13334 2018-01-27 Eli Zaretskii <eliz@gnu.org>
13336 Avoid compilation errors in MinGW native builds
13338 The error is triggered by including python-internal.h, and the
13341 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
13342 from build-gnulib/import/math.h:27,
13343 from d:/usr/Python26/include/pyport.h:235,
13344 from d:/usr/Python26/include/Python.h:58,
13345 from python/python-internal.h:94,
13346 from python/py-arch.c:24:
13347 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
13351 This happens because Python headers define 'hypot' to expand t
13352 '_hypot' in the Windows builds.
13353 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
13354 'hypoth'. This avoids a compilation error.
13356 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13358 * MAINTAINERS (Write After Approval): Fix ordering.
13360 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13362 * MAINTAINERS (Write After Approval): Add Alan Hayward.
13364 2018-01-26 Alan Modra <amodra@gmail.com>
13366 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
13367 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
13368 Remove nop. Make const. Comment.
13369 (powerpc32_plt_stub_so_2): New.
13370 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
13371 Correct count. Update uses.
13372 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
13373 Move common code reading PLT entry word. Correct
13374 powerpc32_plt_stub PLT address calculation.
13375 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
13376 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
13377 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
13378 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
13379 (ppc64_standard_linkage8): Likewise.
13380 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
13381 Correct insns description.
13382 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
13384 2018-01-24 Pedro Alves <palves@redhat.com>
13386 GCC PR libstdc++/83906
13387 * gdbtypes.c (operator==(const dynamic_prop &,
13388 const dynamic_prop &)): New.
13389 (operator==(const range_bounds &, const range_bounds &)): New.
13390 (check_types_equal): Use them instead of memcmp.
13391 * gdbtypes.h (operator==(const dynamic_prop &,
13392 const dynamic_prop &)): Declare.
13393 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
13394 (operator==(const range_bounds &, const range_bounds &)): Declare.
13395 (operator!=(const range_bounds &, const range_bounds &)): Declare.
13397 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13399 * s390-linux-tdep.c (s390_record_address_mask)
13400 (s390_record_calc_disp_common, s390_record_calc_disp)
13401 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13402 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13403 (s390_process_record): Move to s390-tdep.c.
13404 (s390_linux_init_abi_any): Adjust.
13405 * s390-tdep.c (s390_record_address_mask)
13406 (s390_record_calc_disp_common, s390_record_calc_disp)
13407 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13408 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13409 (s390_process_record): Moved from s390-linux-tdep.c
13410 (s390_gdbarch_init): Adjust.
13412 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13414 * s390-linux-nat.c (s390-tdep.h): New include.
13415 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
13416 (HFILES_NO_SRCDIR): Add s390-tdep.h.
13417 (ALLDEPFILES): Add s390-tdep.c.
13418 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
13419 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
13420 * s390-tdep.h: ...this. New file.
13421 * s390-linux-tdep.c (s390-tdep.h): New include.
13422 (_initialize_s390_tdep): Rename to...
13423 (_initialize_s390_linux_tdep): ...this and adjust.
13424 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13425 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13427 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13428 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13429 (s390_is_partial_instruction, s390_software_single_step)
13430 (is_non_branch_ril, s390_displaced_step_copy_insn)
13431 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13432 (s390_prologue_data, s390_addr, s390_store, s390_load)
13433 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13434 (s390_register_call_saved, s390_guess_tracepoint_registers)
13435 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13436 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13437 (s390_pseudo_register_name, s390_pseudo_register_type)
13438 (s390_pseudo_register_read, s390_pseudo_register_write)
13439 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13440 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13441 (s390_addr_bits_remove, s390_address_class_type_flags)
13442 (s390_address_class_type_flags_to_name)
13443 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13444 (s390_function_arg_float, s390_function_arg_vector)
13445 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13446 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13447 (s390_frame_align, s390_register_return_value, s390_return_value)
13448 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13449 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13450 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13451 (s390_trad_frame_prev_register, s390_unwind_cache)
13452 (s390_prologue_frame_unwind_cache)
13453 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13454 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13455 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13456 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13457 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13458 (s390_frame_base_address, s390_local_base_address)
13459 (s390_frame_base, s390_gcc_target_options)
13460 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13461 (s390_validate_reg_range, s390_tdesc_valid)
13462 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13463 * s390-tdep.c: ...this. New file.
13465 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13467 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13468 (s390_process_record, s390_gdbarch_tdep_alloc)
13469 (s390_linux_init_abi_any): Use/set new hook.
13471 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13473 * s390-linux-tdep.c (osabi.h): New include.
13474 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13475 (s390_linux_init_abi_any): New functions.
13476 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13478 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13480 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13481 tdesc_has_registers check
13483 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13485 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13486 (s390_validate_reg_range): New macro.
13487 (s390_gdbarch_init): Adjust.
13489 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13491 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13492 (s390_gdbarch_tdep_alloc): Adjust.
13493 (s390_gdbarch_init): Adjust.
13495 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13497 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13498 <have_tdb>: Change type to bool.
13499 (s390_gdbarch_tdep_alloc): Adjust.
13500 (s390_gdbarch_init): Adjust.
13502 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13504 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13505 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13506 (s390_gdbarch_tdep_alloc): New function.
13507 (s390_gdbarch_init): Allocate tdep at start and use its fields
13508 instead of separate variables.
13510 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13512 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13513 when looking for cached gdbarch and add comment for remaining.
13515 2018-01-22 Pedro Alves <palves@redhat.com>
13516 Sergio Durigan Junior <sergiodj@redhat.com>
13518 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13521 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13523 * MAINTAINERS: Update my company e-mail address.
13525 2018-01-22 Yao Qi <yao.qi@linaro.org>
13527 * regcache.c (cooked_write_test): New function.
13528 (_initialize_regcache): Register the test.
13530 2018-01-22 Yao Qi <yao.qi@linaro.org>
13532 * ia64-tdep.c (ia64_pseudo_register_read): Call
13533 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13534 * m32c-tdep.c (m32c_cat_read): Likewise.
13535 (m32c_r3r2r1r0_read): Likewise.
13536 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13537 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13539 2018-01-22 Yao Qi <yao.qi@linaro.org>
13541 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13542 method raw_read instead of regcache_raw_read.
13543 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13544 * arm-tdep.c (arm_neon_quad_read): Likewise.
13545 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13546 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13547 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13548 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13549 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13550 (i386_pseudo_register_read_into_value): Likewise.
13551 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13552 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13553 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13554 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13555 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13556 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13557 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13558 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13559 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13561 2018-01-22 Yao Qi <yao.qi@linaro.org>
13563 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13564 * configure.tgt: Remove target mt.
13565 * mt-tdep.c: Remove.
13566 * regcache.c (cooked_read_test): Remove the check for mt.
13568 2018-01-22 Yao Qi <yao.qi@linaro.org>
13570 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13571 instead of gdbarch_pseudo_register_read_value.
13573 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13575 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13578 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13580 * linespec.c (create_sals_line_offset): Remove code that preserved
13581 the symtab_and_line's line number.
13583 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13585 * varobj.c (varobj_create): Don't set valid_block when creating a
13588 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13590 * varobj.c (varobj_create): Remove out of date comment.
13592 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13595 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13596 updating innermost block.
13597 * parse.c (innermost_block_tracker::update): Take extra type
13598 parameter, and check types match before updating innermost block.
13599 (write_dollar_variable): Update innermost block for registers.
13600 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13601 (innermost_block_tracker::innermost_block_tracker): Initialise
13603 (innermost_block_tracker::reset): Take type parameter.
13604 (innermost_block_tracker::update): Take type parameter, and pass
13605 type through as needed.
13606 (innermost_block_tracker::m_types): New member.
13607 * varobj.c (varobj_create): Pass type when reseting innermost
13610 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13612 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13613 * ada-lang.c (resolve_subexp): Likewise.
13614 * breakpoint.c (set_breakpoint_condition) Likewise.
13615 (watch_command_1) Likewise.
13616 * c-exp.y (variable): Likewise.
13617 * d-exp.y (PrimaryExpression): Likewise.
13618 * f-exp.y (variable): Likewise.
13619 * go-exp.y (variable): Likewise.
13620 * m2-exp.y (variable): Likewise.
13621 * objfiles.c (objfile::~objfile): Likewise.
13622 * p-exp.y (variable): Likewise.
13623 * parse.c (innermost_block): Change type.
13624 * parser-defs.h (class innermost_block_tracker): New.
13625 (innermost_block): Change to innermost_block_tracker.
13626 * printcmd.c (display_command): Switch to innermost_block API.
13627 (do_one_display): Likewise.
13628 * rust-exp.y (do_one_display): Likewise.
13629 * symfile.c (clear_symtab_users): Likewise.
13630 * varobj.c (varobj_create): Switch to innermost_block API, replace
13631 use of innermost_block with block stored on varobj object.
13633 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13635 * expression.h (innermost_block): Remove declaration.
13636 * varobj.c: Add 'parser-defs.h' include.
13638 2018-01-19 Tom Tromey <tom@tromey.com>
13640 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13641 symbols in the static and global blocks.
13643 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13645 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13646 gdb_ptrace.h, and move including gdb_wait.h ...
13647 * nat/linux-ptrace.h: ... to here.
13649 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13651 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13652 inf_ptrace_detach_success.
13653 (inf_ptrace_detach_success): Add inferior parameter, use it
13654 instead of inferior_ptid, pass it to detach_inferior.
13655 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13657 * inferior.c (detach_inferior): Add overload that takes an
13659 * inferior.h (detach_inferior): Likewise.
13660 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13661 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13662 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13664 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13666 * target.h (struct target_ops) <to_detach>: Add inferior
13668 (target_detach): Likewise.
13669 * target.c (dispose_inferior): Pass inferior down.
13670 (target_detach): Pass inferior down. Assert that it is equal to
13671 the current inferior.
13672 * aix-thread.c (aix_thread_detach): Pass inferior down.
13673 * corefile.c (core_file_command): Pass current_inferior() down.
13674 * corelow.c (core_detach): Add inferior parameter.
13675 * darwin-nat.c (darwin_detach): Likewise.
13676 * gnu-nat.c (gnu_detach): Likewise.
13677 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13678 * infcmd.c (detach_command): Pass current_inferior() down to
13680 * infrun.c (follow_fork_inferior): Pass parent_inf to
13682 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13684 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13685 * linux-thread-db.c (thread_db_detach): Likewise.
13686 * nto-procfs.c (procfs_detach): Likewise.
13687 * procfs.c (procfs_detach): Likewise.
13688 * record.c (record_detach): Likewise.
13689 * record.h (struct inferior): Forward-declare.
13690 (record_detach): Add inferior parameter.
13691 * remote-sim.c (gdbsim_detach): Likewise.
13692 * remote.c (remote_detach_1): Likewise.
13693 (remote_detach): Likewise.
13694 (extended_remote_detach): Likewise.
13695 * sol-thread.c (sol_thread_detach): Likewise.
13696 * target-debug.h (target_debug_print_inferior_p): New macro.
13697 * target-delegates.c: Re-generate.
13698 * top.c (kill_or_detach): Pass inferior down to target_detach.
13699 * windows-nat.c (windows_detach): Add inferior parameter.
13701 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13703 * target.h (struct target_ops) <to_detach>: Remove args
13705 (target_detach): Likewise.
13706 * target.c (dispose_inferior): Adjust.
13707 (target_detach): Remove args parameter, adjust.
13708 * aix-thread.c (aix_thread_detach): Adjust.
13709 * corefile.c (core_file_command): Adjust.
13710 * corelow.c (core_detach): Adjust.
13711 * darwin-nat.c (darwin_detach): Adjust.
13712 * gnu-nat.c (gnu_detach): Adjust.
13713 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13714 * infcmd.c (detach_command): Adjust
13715 * infrun.c (follow_fork_inferior): Adjust.
13716 (handle_vfork_child_exec_or_exit): Adjust.
13717 * linux-fork.c (linux_fork_detach): Remove args parameter.
13718 * linux-fork.h (linux_fork_detach): Likewise.
13719 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13720 * linux-thread-db.c (thread_db_detach): Likewise.
13721 * nto-procfs.c (procfs_detach): Likewise.
13722 * procfs.c (procfs_detach): Likewise.
13723 (do_detach): Remove signo parameter.
13724 * record.c (record_detach): Remove args parameter.
13725 * record.h (record_detach): Likewise.
13726 * remote-sim.c (gdbsim_detach): Likewise.
13727 * remote.c (remote_detach_1): Likewise.
13728 (remote_detach): Likewise.
13729 (extended_remote_detach): Likewise.
13730 * sol-thread.c (sol_thread_detach): Likewise.
13731 * target-delegates.c: Re-generate.
13732 * top.c (struct qt_args) <args>: Remove field.
13733 (kill_or_detach): Don't pass args.
13734 (quit_force): Don't set args.
13735 * windows-nat.c (windows_detach): Remove args parameter.
13737 2018-01-19 Yao Qi <yao.qi@linaro.org>
13739 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13740 (arm_linux_init_abi): Install it.
13742 2018-01-19 Yao Qi <yao.qi@linaro.org>
13744 * osabi.c (gdb_osabi_names): Extend the regexp for
13745 arm-linux-gnueabihf.
13747 2018-01-18 Yao Qi <yao.qi@linaro.org>
13749 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13751 (abbrev_table::add_abbrev): Update.
13752 (abbrev_table::lookup_abbrev): Update.
13754 2018-01-18 Yao Qi <yao.qi@linaro.org>
13756 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13758 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13760 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13763 2018-01-17 Tom Tromey <tom@tromey.com>
13765 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13767 2018-01-17 Tom Tromey <tom@tromey.com>
13769 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13770 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13771 (create_array_type_with_stride): Update.
13772 * dwarf2read.c (set_die_type): Update.
13774 2018-01-17 Tom Tromey <tom@tromey.com>
13776 * dwarf2read.c (delayed_method_info): Remove typedef.
13777 (dwarf2_cu::method_info): Now a std::vector.
13778 (add_to_method_list): Update.
13779 (free_delayed_list): Remove.
13780 (compute_delayed_physnames): Update.
13781 (process_full_comp_unit, process_full_type_unit): Clear the method
13782 list. Remove cleanups.
13783 (psymtab_include_file_name): Add name_holder parameter. Use
13784 unique_xmalloc_ptr.
13785 (dwarf_decode_lines): Update.
13787 2018-01-17 Tom Tromey <tom@tromey.com>
13788 Simon Marchi <simon.marchi@ericsson.com>
13790 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13791 (dwarf2_per_objfile::free_cached_comp_units)
13792 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13793 (init_cutu_and_read_dies_no_follow): Update.
13794 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13795 (dwarf2_cu::~dwarf2_cu): New.
13796 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13797 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13799 2018-01-17 Tom Tromey <tom@tromey.com>
13800 Simon Marchi <simon.marchi@ericsson.com>
13802 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13803 (struct die_reader_specs) <abbrev_table>: New member.
13804 (struct abbrev_table): Add constructor.
13805 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13806 <abbrev_obstack>: Now an auto_obstack.
13807 (abbrev_table_up): New typedef.
13808 (init_cu_die_reader): Add abbrev_table parameter.
13809 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13810 Add result_dwo_abbrev_table.
13811 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13812 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13814 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13816 (skip_children): Update.
13817 (abbrev_table::alloc_abbrev): Rename from
13818 abbrev_table_alloc_abbrev.
13819 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13820 (abbrev_table::lookup_abbrev): Rename from
13821 abbrev_table_lookup_abbrev.
13822 (abbrev_table_read_table): Return abbrev_table_up.
13823 (abbrev_table_free, abbrev_table_free_cleanup)
13824 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13825 (load_partial_dies): Update.
13827 2018-01-17 Tom Tromey <tom@tromey.com>
13829 * dwarf2read.c (dwarf2_compute_name): Update comment.
13830 (read_func_scope, read_variable): Update.
13831 (new_symbol): Remove.
13832 (new_symbol_full): Rename to new_symbol.
13834 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13837 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13838 a warning instead of throwing an error, set section size to 0 and return
13840 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13842 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13844 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13846 (linux_ptrace_attach_fail_reason_string): Likewise.
13847 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13849 (linux_ptrace_attach_fail_reason_string): Likewise.
13850 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13852 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13854 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13856 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13859 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13860 checking for fs_base/gs_base fields in struct user_regs_struct.
13861 * configure: Regenerate.
13863 2018-01-17 Yao Qi <yao.qi@linaro.org>
13865 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13867 (aarch64_linux_init_abi): Install it to gdbarch hook
13868 gcc_target_options.
13870 2018-01-15 Pedro Alves <palves@redhat.com>
13872 * common/signals-state-save-restore.c
13873 (save_original_signals_state): Fix typos.
13875 2017-01-12 Tom Tromey <tom@tromey.com>
13876 Sergio Durigan Junior <sergiodj@redhat.com>
13878 * Makefile.in (install-only): Install gdb-add-index.
13880 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13882 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13884 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13886 * infrun.c (keep_going_pass_signal): Clear step-over info when
13887 insert_breakpoints fails.
13889 2018-01-11 Pedro Alves <palves@redhat.com>
13892 * infrun.c (resume): Rename to ...
13893 (resume_1): ... this.
13894 (resume): Reimplement as wrapper around resume_1.
13896 2018-01-11 Pedro Alves <palves@redhat.com>
13899 * remote.c (remote_parse_stop_reply): Default to the last-set
13900 general thread instead of to 'magic_null_ptid'.
13902 2018-01-10 Pedro Alves <palves@redhat.com>
13904 * language.h (language_get_symbol_name_matcher): Rename ...
13905 (get_symbol_name_matcher): ... this.
13906 * language.c (language_get_symbol_name_matcher): Ditto.
13907 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13910 2018-01-10 Pedro Alves <palves@redhat.com>
13914 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13915 Adjust to use language_get_symbol_name_matcher instead of
13916 language_defn::la_get_symbol_name_matcher.
13917 * language.c (language_get_symbol_name_matcher): If in Ada mode
13918 and the lookup name is a verbatim match, return Ada's matcher.
13919 * language.h (language_get_symbol_name_matcher): Adjust comment.
13920 (ada_lookup_name_info::verbatim_p):: New method.
13922 2018-01-10 Pedro Alves <palves@redhat.com>
13925 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13926 minsym's language is language_auto or language_cplus, pass down
13927 language_ada instead.
13928 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13930 2018-01-10 Pedro Alves <palves@redhat.com>
13933 * minsyms.c (linkage_name_str): New function.
13934 (iterate_over_minimal_symbols): Use it.
13936 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13938 * NEWS: Document that 'info proc' now works on FreeBSD.
13940 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13942 * configure.ac: Check for kinfo_getfile in libutil.
13943 * configure: Regenerate.
13944 * config.in: Regenerate.
13945 * fbsd-nat.c: Include "fbsd-tdep.h".
13946 (fbsd_fetch_cmdline): New.
13947 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13948 rather than calling error.
13949 (fbsd_info_proc): New.
13950 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13951 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13952 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13954 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13956 * fbsd-nat.c (struct free_deleter): Remove.
13957 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13959 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13961 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13962 NULL for an empty pathname.
13964 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13966 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13967 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13968 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13969 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13970 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13971 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13972 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13973 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
13974 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
13975 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
13976 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
13977 (fbsd_core_fetch_timeval, fbsd_print_sigset)
13978 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
13979 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
13980 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
13982 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
13984 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
13985 (gnu_xfer_auxv): New function.
13986 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
13987 TARGET_OBJECT_AUXV.
13989 2018-01-08 Yao Qi <yao.qi@linaro.org>
13990 Simon Marchi <simon.marchi@ericsson.com>
13992 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
13994 (COMMON_OBS): Remove selftest.o.
13995 * configure.ac: Append selftest-arch.c and common/selftest.c to
13996 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
13997 * configure: Re-generated.
13998 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
14000 (maintenance_info_selftests): Likewise.
14002 2018-01-08 Xavier Roirand <roirand@adacore.com>
14004 * ada-valprint.c (val_print_packed_array_elements): Use
14005 proper number of elements when printing an array indexed
14006 by an enumeration type.
14008 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14010 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
14011 (dw2_get_file_names_reader): Adjust.
14012 (lookup_dwo_signatured_type): Adjust.
14013 (lookup_dwp_signatured_type): Adjust.
14014 (lookup_signatured_type): Adjust.
14015 (create_type_unit_group): Adjust.
14016 (get_type_unit_group): Adjust.
14017 (process_psymtab_comp_unit_reader): Adjust.
14018 (build_type_psymtabs_reader): Adjust.
14019 (scan_partial_symbols): Adjust.
14020 (add_partial_symbol): Adjust.
14021 (add_partial_subprogram): Adjust.
14022 (peek_die_abbrev): Adjust.
14023 (fixup_go_packaging): Adjust.
14024 (process_imported_unit_die): Adjust.
14025 (dwarf2_compute_name): Adjust.
14026 (dwarf2_physname): Adjust.
14027 (read_import_statement): Adjust.
14028 (handle_DW_AT_stmt_list): Adjust.
14029 (read_file_scope): Adjust.
14030 (read_func_scope): Adjust.
14031 (read_lexical_block_scope): Adjust.
14032 (read_call_site_scope): Adjust.
14033 (read_variable): Adjust.
14034 (dwarf2_rnglists_process): Adjust.
14035 (dwarf2_ranges_process): Adjust.
14036 (dwarf2_ranges_read): Adjust.
14037 (dwarf2_get_pc_bounds): Adjust.
14038 (dwarf2_record_block_ranges): Adjust.
14039 (dwarf2_add_field): Adjust.
14040 (dwarf2_add_member_fn): Adjust.
14041 (read_structure_type): Adjust.
14042 (process_structure_scope): Adjust.
14043 (read_enumeration_type): Adjust.
14044 (read_array_type): Adjust.
14045 (mark_common_block_symbol_computed): Adjust.
14046 (read_common_block): Adjust.
14047 (read_namespace_type): Adjust.
14048 (read_namespace): Adjust.
14049 (read_module_type): Adjust.
14050 (read_tag_pointer_type): Adjust.
14051 (read_tag_ptr_to_member_type): Adjust.
14052 (read_tag_string_type): Adjust.
14053 (read_subroutine_type): Adjust.
14054 (read_typedef): Adjust.
14055 (read_base_type): Adjust.
14056 (attr_to_dynamic_prop): Adjust.
14057 (read_subrange_type): Adjust.
14058 (read_unspecified_type): Adjust.
14059 (dwarf2_read_abbrevs): Adjust.
14060 (load_partial_dies): Adjust.
14061 (read_partial_die): Adjust.
14062 (find_partial_die): Adjust.
14063 (guess_partial_die_structure_name): Adjust.
14064 (fixup_partial_die): Adjust.
14065 (read_attribute_value): Adjust.
14066 (read_addr_index): Adjust.
14067 (read_addr_index_from_leb128): Adjust.
14068 (read_str_index): Adjust.
14069 (dwarf2_string_attr): Adjust.
14070 (get_debug_line_section): Adjust.
14071 (dwarf_decode_line_header): Adjust.
14072 (lnp_state_machine::check_line_address): Adjust.
14073 (dwarf_decode_lines_1): Adjust.
14074 (dwarf_decode_lines): Adjust.
14075 (dwarf2_start_symtab): Adjust.
14076 (var_decode_location): Adjust.
14077 (new_symbol_full): Adjust.
14078 (dwarf2_const_value_data): Adjust.
14079 (dwarf2_const_value_attr): Adjust.
14080 (dwarf2_const_value): Adjust.
14081 (die_type): Adjust.
14082 (die_containing_type): Adjust.
14083 (build_error_marker_type): Adjust.
14084 (lookup_die_type): Adjust.
14085 (guess_full_die_structure_name): Adjust.
14086 (anonymous_struct_prefix): Adjust.
14087 (determine_prefix): Adjust.
14088 (dwarf2_name): Adjust.
14089 (follow_die_ref_or_sig): Adjust.
14090 (follow_die_offset): Adjust.
14091 (follow_die_ref): Adjust.
14092 (follow_die_sig_1): Adjust.
14093 (follow_die_sig): Adjust.
14094 (get_signatured_type): Adjust.
14095 (get_DW_AT_signature_type): Adjust.
14096 (decode_locdesc): Adjust.
14097 (dwarf_decode_macros): Adjust.
14098 (cu_debug_loc_section): Adjust.
14099 (fill_in_loclist_baton): Adjust.
14100 (dwarf2_symbol_mark_computed): Adjust.
14101 (init_one_comp_unit): Don't assign
14102 dwarf2_cu::dwarf2_per_objfile.
14103 (set_die_type): Adjust.
14105 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14107 * dwarf2read.c (struct mapped_debug_names): Add constructor.
14108 <dwarf2_per_objfile>: New field.
14109 (dwarf2_per_objfile): Remove global.
14110 (get_dwarf2_per_objfile): New function.
14111 (set_dwarf2_per_objfile): New function.
14112 (dwarf2_build_psymtabs_hard): Change objfile parameter to
14113 dwarf2_per_objfile.
14114 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14115 (read_abbrev_offset): Likewise.
14116 (read_indirect_string): Likewise.
14117 (read_indirect_line_string): Likewise.
14118 (read_indirect_string_at_offset): Likewise.
14119 (read_indirect_string_from_dwz): Likewise.
14120 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14121 dwarf2_per_objfile.
14122 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14123 (create_all_comp_units): Change objfile parameter to
14124 dwarf2_per_objfile.
14125 (create_all_type_units): Likewise.
14126 (process_queue): Add dwarf2_per_objfile parameter.
14127 (read_and_check_comp_unit_head): Likewise.
14128 (lookup_dwo_unit_in_dwp): Likewise.
14129 (get_dwp_file): Likewise.
14130 (process_cu_includes): Likewise.
14131 (struct free_dwo_file_cleanup_data): New struct.
14132 (dwarf2_has_info): Use get_dwarf2_per_objfile and
14133 set_dwarf2_per_objfile.
14134 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
14135 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
14136 context, adjust calls.
14137 (dw2_instantiate_symtab): Likewise.
14138 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
14139 (dw2_get_cu): Likewise.
14140 (create_cu_from_index_list): Change objfile parameter to
14141 dwarf2_per_objfile.
14142 (create_cus_from_index_list): Get dwarf2_per_objfile from
14143 context, adjust calls.
14144 (create_cus_from_index): Likewise.
14145 (create_signatured_type_table_from_index): Change objfile
14146 parameter to dwarf2_per_objfile.
14147 (create_signatured_type_table_from_debug_names): Change objfile
14148 parameter to dwarf2_per_objfile.
14149 (create_addrmap_from_index): Likewise.
14150 (create_addrmap_from_aranges): Likewise.
14151 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
14152 (dw2_setup): Remove.
14153 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
14155 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
14156 get_dwarf2_per_objfile.
14157 (dw2_forget_cached_source_info): Likewise.
14158 (dw2_map_symtabs_matching_filename): Likewise.
14159 (struct dw2_symtab_iterator) <index>: Remove.
14160 <dwarf2_per_objfile>: New field.
14161 (dw2_symtab_iter_init): Replace index parameter with
14162 dwarf2_per_objfile.
14163 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
14164 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
14165 (dw2_print_stats): Likewise.
14166 (dw2_dump): Likewise.
14167 (dw2_expand_symtabs_for_function): Likewise.
14168 (dw2_expand_all_symtabs): Likewise.
14169 (dw2_expand_symtabs_with_fullname): Likewise.
14170 (dw2_expand_marked_cus): Replace index and objfile parameters
14171 with dwarf2_per_objfile.
14172 (dw_expand_symtabs_matching_file_matcher): Add
14173 dwarf2_per_objfile parameter and adjust calls.
14174 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
14176 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
14177 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
14179 (create_cus_from_debug_names_list): Replace objfile parameter
14180 with dwarf2_per_objfile and adjust calls.
14181 (create_cus_from_debug_names): Likewise.
14182 (dwarf2_read_debug_names): Likewise.
14183 (mapped_debug_names::namei_to_name): Adjust call.
14184 (dw2_debug_names_iterator::next): Likewise.
14185 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
14186 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
14187 (dw2_debug_names_dump): Likewise.
14188 (dw2_debug_names_expand_symtabs_for_function): Likewise.
14189 (dw2_debug_names_expand_symtabs_matching): Likewise.
14190 (dwarf2_initialize_objfile): Likewise.
14191 (dwarf2_build_psymtabs): Likewise.
14192 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
14194 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
14195 (read_and_check_comp_unit_head): Likewise.
14196 (read_abbrev_offset): Likewise.
14197 (create_debug_type_hash_table): Likewise.
14198 (create_debug_types_hash_table): Likewise.
14199 (create_all_type_units): Replace objfile parameter with
14200 dwarf2_per_objfile.
14201 (add_type_unit): Add dwarf2_per_objfile parameter.
14202 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
14203 with dwarf2_per_objfile.
14204 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
14205 (lookup_dwp_signatured_type): Likewise.
14206 (lookup_signatured_type): Likewise.
14207 (read_cutu_die_from_dwo): Likewise.
14208 (init_tu_and_read_dwo_dies): Likewise.
14209 (init_cutu_and_read_dies): Likewise.
14210 (init_cutu_and_read_dies_no_follow): Likewise.
14211 (allocate_type_unit_groups_table): Add objfile parameter.
14212 (create_type_unit_group): Use dwarf2_per_objfile from cu.
14213 (get_type_unit_group): Likewise.
14214 (process_psymtab_comp_unit): Update call.
14215 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
14216 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
14217 (print_tu_stats): Likewise.
14218 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
14219 in void* parameter.
14220 (build_type_psymtabs): Change objfile parameter to
14221 dwarf2_per_objfile.
14222 (process_skeletonless_type_unit): Use dwarf2_per_objfile
14223 passed in void* parameter.
14224 (process_skeletonless_type_units): Change objfile parameter to
14225 dwarf2_per_objfile.
14226 (set_partial_user): Likewise.
14227 (dwarf2_build_psymtabs_hard): Likewise.
14228 (read_comp_units_from_section): Likewise.
14229 (create_all_comp_units): Likewise.
14230 (scan_partial_symbols): Update calls.
14231 (add_partial_symbol): Likewise.
14232 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
14233 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
14234 (process_queue): Add dwarf2_per_objfile parameter.
14235 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
14236 (compute_compunit_symtab_includes): Likewise.
14237 (process_cu_includes): Add dwarf2_per_objfile parameter.
14238 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
14239 (process_full_type_unit): Likewise.
14240 (process_imported_unit_die): Update call.
14241 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
14242 (read_file_scope): Likewise.
14243 (allocate_dwo_file_hash_table): Add objfile parameter.
14244 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
14245 (create_cus_hash_table): Likewise.
14246 (create_dwp_hash_table): Likewise.
14247 (create_dwo_unit_in_dwp_v1): Likewise.
14248 (create_dwp_v2_section): Likewise.
14249 (create_dwo_unit_in_dwp_v2): Likewise.
14250 (lookup_dwo_unit_in_dwp): Likewise.
14251 (try_open_dwop_file): Likewise.
14252 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
14253 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
14254 cleanup to include a reference to dwarf2_per_objfile.
14255 (open_dwp_file): Add dwarf2_per_objfile parameter.
14256 (open_and_init_dwp_file): Likewise.
14257 (get_dwp_file): Likewise.
14258 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
14259 (queue_and_load_all_dwo_tus): Update call.
14260 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
14262 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
14263 (dwarf2_ranges_process): Likewise.
14264 (dwarf2_get_pc_bounds): Likewise.
14265 (mark_common_block_symbol_computed): Likewise.
14266 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14267 (dwarf2_read_abbrevs): Update call.
14268 (read_partial_die): Use dwarf2_per_objfile from cu.
14269 (find_partial_die): Likewise.
14270 (fixup_partial_die): Likewise.
14271 (read_attribute_value): Likewise.
14272 (read_indirect_string_at_offset_from): Add objfile parameter.
14273 (read_indirect_string_at_offset): Add dwarf2_per_objfile
14275 (read_indirect_string_from_dwz): Add objfile parameter.
14276 (read_indirect_string): Add objfile parameter.
14277 (read_addr_index_1): Add dwarf2_per_objfile parameter.
14278 (read_addr_index): Use dwarf2_per_objfile from cu.
14279 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
14281 (read_str_index): Use dwarf2_per_objfile from cu.
14282 (get_debug_line_section): Likewise.
14283 (read_formatted_entries): Add dwarf2_per_objfile parameter.
14284 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
14285 (new_symbol_full): Use dwarf2_per_objfile from cu.
14286 (build_error_marker_type): Likewise.
14287 (lookup_die_type): Likewise.
14288 (determine_prefix): Likewise.
14289 (follow_die_offset): Likewise.
14290 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
14291 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
14292 (dwarf2_fetch_die_type_sect_off): Likewise.
14293 (dwarf2_get_die_type): Likewise.
14294 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
14295 (get_signatured_type): Likewise.
14296 (get_DW_AT_signature_type): Likewise.
14297 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
14298 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
14299 (cu_debug_loc_section): Likewise.
14300 (fill_in_loclist_baton): Likewise.
14301 (dwarf2_symbol_mark_computed): Likewise.
14302 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14303 dwarf2_per_objfile.
14304 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
14306 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14307 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
14308 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
14309 (set_die_type): Use dwarf2_free_objfile from cu.
14310 (get_die_type_at_offset): Likewise.
14311 (dwarf2_per_objfile_free): Don't assign global variable.
14312 (debug_names) <constructor>: Add dwarf2_per_objfile
14313 parameter, update m_debugstrlookup construction.
14314 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
14316 <m_dwarf2_per_objfile>: New field.
14317 <lookup>: Use m_dwarf2_per_objfile.
14318 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
14319 (psyms_seen_size): Likewise.
14320 (write_gdbindex): Replace objfile parameter with
14321 dwarf2_per_objfile.
14322 (write_debug_names): Likewise.
14323 (write_psymtabs_to_index): Likewise.
14324 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
14327 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14329 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
14330 <dwarf2_per_objfile>: New field.
14331 (struct dwarf2_per_cu_data) <objfile>: Remove.
14332 <dwarf2_per_objfile>: New field.
14333 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
14335 (create_signatured_type_table_from_index): Likewise.
14336 (create_debug_type_hash_table): Likewise.
14337 (fill_in_sig_entry_from_dwo_entry): Likewise.
14338 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
14339 (create_type_unit_group): Assign dwarf2_per_objfile instead of
14341 (create_partial_symtab): Access objfile through
14342 dwarf2_per_objfile.
14343 (process_psymtab_comp_unit_reader): Likewise.
14344 (read_comp_units_from_section): Likewise.
14345 (scan_partial_symbols): Likewise.
14346 (add_partial_symbol): Likewise.
14347 (add_partial_subprogram): Likewise.
14348 (peek_die_abbrev): Likewise.
14349 (fixup_go_packaging): Likewise.
14350 (process_full_comp_unit): Likewise.
14351 (process_full_type_unit): Likewise.
14352 (process_imported_unit_die): Likewise.
14353 (dwarf2_compute_name): Likewise.
14354 (dwarf2_physname): Likewise.
14355 (read_import_statement): Likewise.
14356 (create_cus_hash_table): Assign dwarf2_physname instead of
14358 (read_func_scope): Access objfile through dwarf2_per_objfile.
14359 (read_lexical_block_scope): Likewise.
14360 (read_call_site_scope): Likewise.
14361 (read_variable): Likewise.
14362 (dwarf2_rnglists_process): Likewise.
14363 (dwarf2_ranges_process): Likewise.
14364 (dwarf2_ranges_read): Likewise.
14365 (dwarf2_record_block_ranges): Likewise.
14366 (dwarf2_add_field): Likewise.
14367 (dwarf2_add_member_fn): Likewise.
14368 (read_structure_type): Likewise.
14369 (process_structure_scope): Likewise.
14370 (read_enumeration_type): Likewise.
14371 (read_array_type): Likewise.
14372 (read_common_block): Likewise.
14373 (read_namespace_type): Likewise.
14374 (read_namespace): Likewise.
14375 (read_module_type): Likewise.
14376 (read_tag_pointer_type): Likewise.
14377 (read_tag_ptr_to_member_type): Likewise.
14378 (read_tag_string_type): Likewise.
14379 (read_subroutine_type): Likewise.
14380 (read_typedef): Likewise.
14381 (read_base_type): Likewise.
14382 (attr_to_dynamic_prop): Likewise.
14383 (read_subrange_type): Likewise.
14384 (read_unspecified_type): Likewise.
14385 (load_partial_dies): Likewise.
14386 (read_partial_die): Likewise.
14387 (find_partial_die): Likewise.
14388 (guess_partial_die_structure_name): Likewise.
14389 (fixup_partial_die): Likewise.
14390 (read_attribute_value): Likewise.
14391 (read_addr_index_from_leb128): Likewise.
14392 (dwarf2_read_addr_index): Likewise.
14393 (dwarf2_string_attr): Likewise.
14394 (lnp_state_machine::check_line_address): Likewise.
14395 (dwarf_decode_lines_1): Likewise.
14396 (dwarf_decode_lines): Likewise.
14397 (dwarf2_start_symtab): Likewise.
14398 (var_decode_location): Likewise.
14399 (new_symbol_full): Likewise.
14400 (dwarf2_const_value_data): Likewise.
14401 (dwarf2_const_value_attr): Likewise.
14402 (dwarf2_const_value): Likewise.
14403 (die_type): Likewise.
14404 (die_containing_type): Likewise.
14405 (lookup_die_type): Likewise.
14406 (guess_full_die_structure_name): Likewise.
14407 (anonymous_struct_prefix): Likewise.
14408 (dwarf2_name): Likewise.
14409 (follow_die_ref_or_sig): Likewise.
14410 (follow_die_offset): Likewise.
14411 (follow_die_ref): Likewise.
14412 (dwarf2_fetch_die_loc_sect_off): Likewise.
14413 (dwarf2_fetch_constant_bytes): Likewise.
14414 (dwarf2_fetch_die_type_sect_off): Likewise.
14415 (dwarf2_get_die_type): Likewise.
14416 (follow_die_sig): Likewise.
14417 (decode_locdesc): Likewise.
14418 (dwarf2_per_cu_objfile): Likewise.
14419 (dwarf2_per_cu_text_offset): Likewise.
14420 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
14422 (set_die_type): Access objfile through
14423 dwarf2_per_objfile.
14425 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14427 * valprint.c (converted_character_d): Remove typedef.
14428 (DEF_VEC_O (converted_character_d)): Remove.
14429 (count_next_character): Use std::vector.
14430 (print_converted_chars_to_obstack): Likewise.
14431 (generic_printstr): Likewise.
14433 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14435 * xml-support.h (struct gdb_xml_value): Add constructor.
14436 <value>: Change type to unique_xmalloc_ptr.
14437 (gdb_xml_value_s): Remove typedef.
14438 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14439 (gdb_xml_element_start_handler): Change parameter type to
14441 (xml_find_attribute): Likewise.
14442 * xml-support.c (xml_find_attribute): Change parameter type to
14443 std::vector and adjust.
14444 (gdb_xml_values_cleanup): Remove.
14445 (gdb_xml_parser::start_element): Adjust to std::vector.
14446 (xinclude_start_include): Change paraeter type to std::vector
14448 * btrace.c (check_xml_btrace_version): Likewise.
14449 (parse_xml_btrace_block): Likewise.
14450 (parse_xml_btrace_pt_config_cpu): Likewise.
14451 (parse_xml_btrace_pt): Likewise.
14452 (parse_xml_btrace_conf_bts): Likewise.
14453 (parse_xml_btrace_conf_pt): Likewise.
14454 * memory-map.c (memory_map_start_memory): Likewise.
14455 (memory_map_start_property): Likewise.
14456 * osdata.c (osdata_start_osdata): Likewise.
14457 (osdata_start_item): Likewise.
14458 (osdata_start_column): Likewise.
14459 * remote.c (start_thread): Likewise.
14460 * solib-aix.c (library_list_start_library): Likewise.
14461 (library_list_start_list): Likewise.
14462 * solib-svr4.c (library_list_start_library): Likewise.
14463 (svr4_library_list_start_list): Likewise.
14464 * solib-target.c (library_list_start_segment): Likewise.
14465 (library_list_start_section): Likewise.
14466 (library_list_start_library): Likewise.
14467 (library_list_start_list): Likewise.
14468 * tracepoint.c (traceframe_info_start_memory): Likewise.
14469 (traceframe_info_start_tvar): Likewise.
14470 * xml-syscall.c (syscall_start_syscall): Likewise.
14471 * xml-tdesc.c (tdesc_start_target): Likewise.
14472 (tdesc_start_feature): Likewise.
14473 (tdesc_start_reg): Likewise.
14474 (tdesc_start_union): Likewise.
14475 (tdesc_start_struct): Likewise.
14476 (tdesc_start_flags): Likewise.
14477 (tdesc_start_enum): Likewise.
14478 (tdesc_start_field): Likewise.
14479 (tdesc_start_enum_value): Likewise.
14480 (tdesc_start_vector): Likewise.
14482 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14484 * extension.h (struct xmethod_worker) <clone>: Remove.
14485 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14487 (python_xmethod_worker::clone): Remove.
14488 * valops.c (find_overload_match): Use std::move instead of
14491 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14493 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14494 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14495 <free_xmethod_worker_data>: Remove.
14496 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14497 <get_xmethod_arg_types>: Remove.
14498 <get_xmethod_result_type>: Remove.
14499 <invoke_xmethod>: Remove.
14500 * extension.c (new_xmethod_worker): Remove.
14501 (clone_xmethod_worker): Remove.
14502 (get_matching_xmethod_workers): Return void, pass std::vector by
14504 (get_xmethod_arg_types): Rename to...
14505 (xmethod_worker::get_arg_types): ... this, and adjust.
14506 (get_xmethod_result_type): Rename to...
14507 (xmethod_worker::get_result_type): ... this, and adjust.
14508 (invoke_xmethod): Remove.
14509 (free_xmethod_worker): Remove.
14510 (free_xmethod_worker_vec): Remove.
14511 * extension.h (enum ext_lang_rc): Move here from
14513 (struct xmethod_worker): Add constructor and destructor.
14516 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14517 virtual pure methods.
14518 <get_arg_types, get_result_type>: New methods.
14519 (xmethod_worker_ptr): Remove typedef.
14520 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14521 (xmethod_worker_vec): Remove typedef.
14522 (xmethod_worker_up): New typedef.
14523 (invoke_xmethod): Remove.
14524 (clone_xmethod_worker): Remove.
14525 (free_xmethod_worker): Remove.
14526 (free_xmethod_worker_vec): Remove.
14527 (get_xmethod_arg_types): Remove.
14528 (get_xmethod_result_type): Remove.
14529 * valops.c (find_method_list): Use std::vector, don't use
14530 intermediate vector.
14531 (value_find_oload_method_list): Use std::vector.
14532 (find_overload_match): Use std::vector.
14533 (find_oload_champ): Use std::vector.
14534 * value.c (value_free): Use operator delete.
14535 (value_of_xmethod): Rename to...
14536 (value_from_xmethod): ... this. Don't assign
14537 xmethod_worker::value, take rvalue-reference.
14538 (result_type_of_xmethod): Adjust.
14539 (call_xmethod): Adjust.
14540 * value.h: Include extension.h.
14541 (struct xmethod_worker): Don't forward-declare.
14542 (value_of_xmethod): Rename to...
14543 (value_from_xmethod): ... this, take rvalue-reference.
14544 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14545 (struct python_xmethod_worker): ... this, add constructor and
14547 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14548 (gdbpy_free_xmethod_worker_data): Rename to...
14549 (python_xmethod_worker::~python_xmethod_worker): ... this and
14551 (gdbpy_clone_xmethod_worker_data): Rename to...
14552 (python_xmethod_worker::clone): ... this and adjust.
14553 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14555 (gdbpy_get_xmethod_arg_types): Rename to...
14556 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14557 (gdbpy_get_xmethod_result_type): Rename to...
14558 (python_xmethod_worker::do_get_result_type): ... this and
14560 (gdbpy_invoke_xmethod): Rename to...
14561 (python_xmethod_worker::invoke): ... this and adjust.
14562 (new_python_xmethod_worker): Rename to...
14563 (python_xmethod_worker::python_xmethod_worker): ... this and
14565 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14567 (gdbpy_free_xmethod_worker_data): Remove.
14568 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14569 (gdbpy_get_xmethod_arg_types): Remove.
14570 (gdbpy_get_xmethod_result_type): Remove.
14571 (gdbpy_invoke_xmethod): Remove.
14572 * python/python.c (python_extension_ops): Remove obsolete
14575 2018-01-05 Pedro Alves <palves@redhat.com>
14578 * common/signals-state-save-restore.c
14579 (save_original_signals_state): New parameter 'quiet'. Warn if we
14580 find a custom handler preinstalled, instead of internal erroring.
14581 But only warn if !quiet.
14582 * common/signals-state-save-restore.h
14583 (save_original_signals_state): New parameter 'quiet'.
14584 * main.c (captured_main_1): Move save_original_signals_state call
14585 after option handling, and pass QUIET.
14587 2018-01-05 Pedro Alves <palves@redhat.com>
14589 * spu-tdep.c (spu_catch_start): Pass
14590 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14592 2018-01-05 Pedro Alves <palves@redhat.com>
14595 * ada-lang.c (literal_symbol_name_matcher): New function.
14596 (ada_get_symbol_name_matcher): Use it for
14597 symbol_name_match_type::SEARCH_NAME.
14598 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14599 it down instead of assuming symbol_name_match_type::FULL.
14600 * block.h (block_lookup_symbol): New parameter 'match_type'.
14601 * c-valprint.c (print_unpacked_pointer): Use
14602 lookup_symbol_search_name instead of lookup_symbol.
14603 * compile/compile-object-load.c (get_out_value_type): Pass down
14604 symbol_name_match_type::SEARCH_NAME.
14605 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14606 symbol_name_match_type::FULL.
14607 * cp-support.c (cp_get_symbol_name_matcher): Handle
14608 symbol_name_match_type::SEARCH_NAME.
14609 * infrun.c (insert_exception_resume_breakpoint): Use
14610 lookup_symbol_search_name.
14611 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14612 * psymtab.c (maintenance_check_psymtabs): Use
14613 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14614 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14615 SYMBOL_SEARCH_NAME.
14616 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14617 if symbol_name_match_type::SEARCH_NAME.
14618 (lookup_symbol_in_language): Pass down
14619 symbol_name_match_type::FULL.
14620 (lookup_symbol_search_name): New.
14621 (lookup_language_this): Pass down
14622 symbol_name_match_type::SEARCH_NAME.
14623 (lookup_symbol_aux, lookup_local_symbol): New parameter
14624 'match_type'. Pass it down.
14625 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14626 (lookup_symbol_search_name): New declaration.
14627 (lookup_symbol_in_block): New 'match_type' parameter.
14629 2018-01-05 Pedro Alves <palves@redhat.com>
14632 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14634 (ada_lookup_symbol): Reimplement in terms of
14635 ada_lookup_symbol_list, bits factored out from
14636 ada_lookup_encoded_symbol.
14638 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14640 * ada-exp.y (write_object_renaming): When subscripting an array
14641 using a symbol as the index, pass the block in call to
14642 ada_lookup_encoded_symbol when looking that symbol up.
14644 2018-01-05 Jerome Guitton <guitton@adacore.com>
14646 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14649 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14651 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14652 the case where VALUE_LVAL (val0) is not lval_memory.
14654 2018-01-05 Xavier Roirand <roirand@adacore.com>
14656 * ada-valprint.c (print_optional_low_bound): Handle
14657 character-indexed array printing like boolean-indexed array
14660 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14662 * NEWS: Create a new section for the next release branch.
14663 Rename the section of the current branch, now that it has
14666 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14668 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14669 * version.in: Bump version to 8.1.50.DATE-git.
14671 2018-01-03 Xavier Roirand <roirand@adacore.com>
14673 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14675 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14677 (default_exception_support_info) <catch_handlers_sym>: Add field.
14678 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14679 (ada_exception_name_addr_1): Add "catch handlers" handling.
14680 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14681 Update all callers.
14682 (create_excep_cond_exprs) <ex>: Add parameter.
14683 (re_set_exception): Update create_excep_cond_exprs call.
14684 (print_it_exception, print_one_exception, print_mention_exception)
14685 (print_recreate_exception): Add "catch handler" handling.
14686 (allocate_location_catch_handlers, re_set_catch_handlers)
14687 (check_status_catch_handlers, print_it_catch_handlers)
14688 (print_one_catch_handlers, print_mention_catch_handlers)
14689 (print_recreate_catch_handlers): New function.
14690 (catch_handlers_breakpoint_ops): New variable.
14691 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14692 Add parameter. Add "catch handler" handling.
14693 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14694 Add "catch handler" handling.
14695 (ada_exception_catchpoint_cond_string): Add "catch handler"
14697 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14699 (catch_ada_handlers_command): New function.
14700 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14701 operations structure.
14702 (_initialize_ada_language): Add "catch handlers" command entry.
14703 * NEWS: Document "catch handlers" feature.
14705 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14707 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14708 account when creating the array type of the slice.
14709 (ada_value_slice): Likewise.
14711 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14713 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14715 (create_array_type_with_stride): Add byte_stride_prop parameter.
14716 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14717 New parameter. Update all callers in this file.
14718 (array_type_has_dynamic_stride): New function.
14719 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14720 of arrays with dynamic byte strides.
14721 * dwarf2read.c (read_array_type): Add support for dynamic
14722 DW_AT_byte_stride attributes.
14724 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14726 * dwarf2read.c (read_unspecified_type): Treat
14727 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14729 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14731 Update copyright year range in all GDB files.
14733 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14735 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14736 and gdb/testsuite/gdb.base/step-line.c.
14738 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14740 * copyright.py (main): Dump the contents of
14741 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14742 even if BY_HAND is empty.
14744 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14746 * top.c (print_gdb_version): Update Copyright year in version
14749 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14751 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14753 For older changes see ChangeLog-2017.
14759 version-control: never