1 2018-10-19 Tom Tromey <tom@tromey.com>
4 * NEWS: Mention tabset deprecation.
5 * tui/tui-win.c (tui_tab_width, internal_tab_width): New globals.
6 (update_tab_width): New function.
7 (tui_set_tab_width, tui_show_tab_width): New functions.
8 (tui_set_tab_width_command): Use update_tab_width.
9 (_initialize_tui_win): Move to end of file. Deprecate "tabset".
10 Add new "set tui tab-width" command.
11 * tui/tui-source.c (tui_set_source_content): Update.
12 * tui/tui-disasm.c (tui_set_disassem_content): Update.
13 * tui/tui-data.h (tui_default_tab_len, tui_set_default_tab_len):
15 (tui_tab_width): Declare.
16 * tui/tui-data.c (default_tab_len, tui_default_tab_len)
17 (tui_set_default_tab_len): Remove.
19 2018-10-19 Tom Tromey <tom@tromey.com>
21 * tui/tui-io.h (key_is_start_sequence, key_is_end_sequence)
22 (key_is_backspace, tui_getc): Don't declare.
23 * tui/tui-io.c (key_is_start_sequence): Now static.
24 (key_is_end_sequence, key_is_backspace): Remove.
25 (tui_getc): Now static.
27 2018-10-19 Tom Tromey <tom@tromey.com>
29 * symfile.c (reread_symbols): Clear "static_links".
31 2018-10-19 Alan Hayward <alan.hayward@arm.com>
33 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_SIZE): New
35 (aarch64_linux_sigframe_init): Extra boundary checks.
37 2018-10-19 Andreas Arnez <arnez@linux.ibm.com>
39 * s390-tdep.c (s390_pseudo_register_type): For v0-v15 don't yield
40 the possibly non-existent tdesc type 'vec128', but the type of raw
43 2018-10-19 Gary Benson <gbenson@redhat.com>
45 * cli/cli-interp.c (cli_interp::~cli_interp): New function.
47 2018-10-18 Sergio Durigan Junior <sergiodj@redhat.com>
50 * cli/cli-dump.c (restore_binary_file): Check if "file" is
53 2018-10-17 Paul Koning <paul_koning@dell.com>
55 * charset.c (convert_between_encodings): Fix unsigned overflow.
57 2018-10-17 John Baldwin <jhb@FreeBSD.org>
59 * fbsd-nat.c (fbsd_nat_target::info_proc) Use
60 fbsd_info_proc_mappings_header and fbsd_info_proc_mappings_entry.
61 * fbsd-tdep.c (fbsd_vm_map_entry_flags): Mark static.
62 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
64 (fbsd_core_info_proc_mappings): Use fbsd_info_proc_mappings_header
65 and fbsd_info_proc_mappings_header.
66 * fbsd-tdep.h (fbsd_vm_map_entry_flags): Remove.
67 (fbsd_info_proc_mappings_header, fbsd_info_proc_mappings_entry):
70 2018-10-17 Joel Brobecker <brobecker@adacore.com>
72 * MAINTAINERS (Responsible Maintainers): Add Rainer Orth as
75 2018-10-15 Tom Tromey <tom@tromey.com>
77 * tui/tui.c (strcat_to_buf): Remove casts.
78 * tui/tui-winsource.c (tui_show_source_line)
79 (tui_set_is_exec_point_at, tui_line_is_displayed): Remove casts.
80 * tui/tui-wingeneral.c (tui_refresh_win, box_win): Remove casts.
81 * tui/tui-windata.c (tui_first_data_item_displayed)
82 (tui_delete_data_content_windows, tui_erase_data_content)
83 (tui_display_all_data, tui_display_data_from)
84 (tui_refresh_data_win, tui_vertical_data_scroll): Remove casts.
85 * tui/tui-win.c (tui_set_win_height)
86 (make_invisible_and_set_new_height, parse_scrolling_args): Remove
88 * tui/tui-win.c (tui_resize_all): Remove casts.
89 (tui_scroll_backward_command, tui_set_focus)
90 (tui_set_tab_width_command): Likewise.
91 * tui/tui-source.c (tui_vertical_source_scroll): Remove cast.
92 * tui/tui-regs.c (tui_show_register_group): Remove cast.
93 * tui/tui-layout.c (tui_set_layout_by_name): Remove cast.
94 * tui/tui-disasm.c (tui_vertical_disassem_scroll): Remove cast.
95 * tui/tui-data.c (tui_partial_win_by_name, tui_free_win_content):
98 2018-10-15 Simon Marchi <simon.marchi@ericsson.com>
100 * MAINTAINERS (Responsible Maintainers): Add Alan Hayward as
101 AArch64/ARM maintainer.
103 2018-10-11 Gary Benson <gbenson@redhat.com>
105 * interps.h (interp::m_name): Make private and mutable.
106 * interps.c (interp::~interp): Free m_name.
108 2018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
109 Simon Marchi <simark@simark.ca>
111 * README (`configure' options): Add documentation for new
112 "--enable-unit-tests" option.
113 * acinclude.m4: Include "selftest.m4".
114 * configure: Regenerate.
115 * configure.ac: Use "GDB_AC_SELFTEST".
116 * maint.c (maintenance_selftest): Update message informing
117 that selftests have been disabled.
118 (maintenance_info_selftests): Likewise.
119 * selftest.m4: New file.
121 2018-10-10 Gary Benson <gbenson@redhat.com>
123 * remote.c (remote_target::remote_send_printf): Add
124 missing va_end found by Coverity.
126 2018-10-10 Markus Metzger <markus.t.metzger@intel.com>
128 * btrace.c (ftrace_update_function): Add indirect jump heuristic.
130 2018-10-09 Tom Tromey <tom@tromey.com>
132 * configure: Rebuild.
133 * sanitize.m4 (AM_GDB_UBSAN): Default to no.
134 * NEWS: Update --enable-ubsan documentation.
136 2018-10-09 Gary Benson <gbenson@redhat.com>
138 * dwarf2read.c (create_dwp_hash_table): Fix buffer overrun
141 2018-10-08 Tom Tromey <tom@tromey.com>
143 * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused
145 (riscv_fbsd_init_abi): Likewise.
147 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
148 * valops.c (value_struct_elt_for_reference): Rename local variable
149 to work around the shadowing a previous local warning.
151 2018-10-08 John Baldwin <jhb@FreeBSD.org>
153 * Makefile.in (ALLDEPFILES): Add riscv-fbsd-nat.c.
154 * NEWS: Mention new FreeBSD/riscv native configuration.
155 * configure.host: Add riscv*-*-freebsd*.
156 * configure.nat: Likewise.
157 * riscv-fbsd-nat.c: New file.
159 2018-10-08 John Baldwin <jhb@FreeBSD.org>
161 * Makefile.in (ALL_TARGET_OBS): Add riscv-fbsd-tdep.o.
162 (HFILES_NO_SRCDIR): Add riscv-fbsd-tdep.h.
163 (ALLDEPFILES): Add riscv-fbsd-tdep.c.
164 * NEWS: Mention new FreeBSD/riscv target.
165 * configure.tgt: Add riscv*-*-freebsd*.
166 * riscv-fbsd-tdep.c: New file.
167 * riscv-fbsd-tdep.h: New file.
169 2018-10-08 John Baldwin <jhb@FreeBSD.org>
171 * regcache.h (struct regcache_map_entry): Note that this type can
172 be used with traditional frame caches.
173 * trad-frame.c (trad_frame_set_reg_regmap): New.
174 * trad-frame.h (trad_frame_set_reg_regmap): New.
176 2018-10-08 Weimin Pan <weimin.pan@oracle.com>
179 * valops.c (get_virtual_base_offset): New function.
180 (value_struct_elt_for_reference): Use it to get virtual base offset
181 and add it in calculating class member address.
183 2018-10-08 John Darrington <john@darrington.wattle.id.au>
185 * dwarf2read.c (dwarf2_cu) <producer_is_codewarrior>: New field.
186 (check_producer): Check if the producer is codewarrior.
187 (producer_is_codewarrior): New function.
188 (lnp_state_machine::record_line): Ignore is_stmt flag for records
189 produced by codewarrior.
190 (dwarf2_cu::dwarf2_cu): Initialize producer_is_codewarrior.
192 2018-10-06 Tom Tromey <tom@tromey.com>
195 * python/py-inferior.c: Add "architecture" entry.
196 (infpy_architecture): New function.
198 2018-10-06 Tom Tromey <tom@tromey.com>
201 * python/py-symbol.c (gdbpy_initialize_symbols): Redefine
202 SYMBOL_VARIABLES_DOMAIN, SYMBOL_FUNCTIONS_DOMAIN,
203 SYMBOL_TYPES_DOMAIN. Define SYMBOL_MODULE_DOMAIN,
204 SYMBOL_COMMON_BLOCK_DOMAIN, SYMBOL_LOC_COMMON_BLOCK.
206 2018-10-06 Tom Tromey <tom@tromey.com>
209 * Makefile.in (OPCODES_CFLAGS): Remove "-I$(OPCODES_SRC)/..".
210 * arc-tdep.c, frv-tdep.c, lm32-tdep.c, mep-tdep.c,
211 microblaze-tdep.c, or1k-tdep.h: Use ../opcodes, not opcodes, in
214 2018-10-06 Tom Tromey <tom@tromey.com>
216 * python/py-breakpoint.c (bppy_get_location): Handle a
217 bp_breakpoint without a location.
219 2018-10-06 Tom Tromey <tom@tromey.com>
221 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq)
222 (_RegEx): Reformat help text.
223 * python/lib/gdb/function/caller_is.py (CallerIs, CallerMatches)
224 (AnyCallerIs, AnyCallerMatches): Reformat help text.
225 * python/lib/gdb/function/as_string.py (_AsString): Reformat help
227 * python/lib/gdb/command/xmethods.py (InfoXMethod)
228 (EnableXMethod, DisableXMethod): Remove help indentation.
229 Capitalize meta-syntactic variables.
230 * python/lib/gdb/command/unwinders.py (InfoUnwinder)
231 (EnableUnwinder, DisableUnwinder): Remove help indentation.
232 Capitalize meta-syntactic variables.
233 * python/lib/gdb/command/explore.py (ExploreCommand)
234 (ExploreValueCommand, ExploreTypeCommand): Reformat help text.
235 * python/lib/gdb/command/type_printers.py (InfoTypePrinter)
236 (EnableTypePrinter, DisableTypePrinter): Remove help indentation.
237 * python/lib/gdb/command/pretty_printers.py (InfoPrettyPrinter):
238 Remove help indentation.
239 (EnablePrettyPrinter, DisablePrettyPrinter): Likewise.
240 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter)
241 (DisableFrameFilter, SetFrameFilterPriority)
242 (ShowFrameFilterPriority, InfoFrameFilter): Reword help text.
244 2018-10-06 Tom Tromey <tom@tromey.com>
247 * tui/tui-io.c (gdb_wgetch): New function.
248 (tui_mld_getc, tui_getc): Use it.
250 2018-10-05 Tom Tromey <tom@tromey.com>
252 * sol-thread.c (sol_thread_target::wait): Rename inner
255 2018-10-04 Tom Tromey <tom@tromey.com>
257 * configure: Rebuild.
258 * warning.m4 (AM_GDB_WARNINGS): Add -Wshadow=local.
260 2018-10-04 Tom Tromey <tom@tromey.com>
262 * guile/scm-frame.c (gdbscm_frame_read_var): Remove inner
263 declaration of "block".
265 2018-10-04 Tom Tromey <tom@tromey.com>
267 * common/filestuff.c (fdwalk): Remove inner declaration of
270 2018-10-04 Tom Tromey <tom@tromey.com>
272 * msp430-tdep.c (msp430_push_dummy_call): Rename inner
273 "structs_addr" and hoist declaration.
275 2018-10-04 Tom Tromey <tom@tromey.com>
277 * linux-tdep.c (linux_make_mappings_corefile_notes): Introduce new
280 2018-10-04 Tom Tromey <tom@tromey.com>
282 * mdebugread.c (parse_partial_symbols): Use std::string.
284 2018-10-04 Tom Tromey <tom@tromey.com>
286 * ctf.c (SET_ARRAY_FIELD): Rename "u32".
287 * p-valprint.c (pascal_val_print): Split inner "i" variable.
288 * xtensa-tdep.c (xtensa_push_dummy_call): Declare "i" in loop
290 * xstormy16-tdep.c (xstormy16_push_dummy_call): Declare "val" in
292 * xcoffread.c (read_xcoff_symtab): Rename inner "symbol".
293 * varobj.c (varobj_update): Rename inner "newobj",
295 * valprint.c (generic_emit_char): Rename inner "buf".
296 * valops.c (find_overload_match): Rename inner "temp".
297 (value_struct_elt_for_reference): Declare "v" in more inner
299 * v850-tdep.c (v850_push_dummy_call): Rename "len".
300 * unittests/array-view-selftests.c (run_tests): Rename inner
302 * tui/tui-stack.c (tui_show_frame_info): Declare "i" in loop
304 * tracepoint.c (merge_uploaded_trace_state_variables): Declare
305 "tsv" in more inner scope.
306 (print_one_static_tracepoint_marker): Rename inner
308 * tic6x-tdep.c (tic6x_analyze_prologue): Declare "inst" lower.
309 (tic6x_push_dummy_call): Don't redeclare "addr".
310 * target-float.c: Declare "dto" lower.
311 * symtab.c (lookup_local_symbol): Rename inner "sym".
312 (find_pc_sect_line): Rename inner "pc".
313 * stack.c (print_frame): Don't redeclare "gdbarch".
314 (return_command): Rename inner "gdbarch".
315 * s390-tdep.c (s390_prologue_frame_unwind_cache): Renam inner
317 * rust-lang.c (rust_internal_print_type): Declare "i" in loop
319 * rs6000-tdep.c (ppc_process_record): Rename inner "addr".
320 * riscv-tdep.c (riscv_push_dummy_call): Declare "info" in inner
322 * remote.c (remote_target::update_thread_list): Don't redeclare
324 (remote_target::process_initial_stop_replies): Rename inner
326 (remote_target::remote_parse_stop_reply): Don't redeclare "p".
327 (remote_target::wait_as): Don't redeclare "stop_reply".
328 (remote_target::get_thread_local_address): Rename inner
330 (remote_target::get_tib_address): Likewise.
332 * regcache.c (cooked_read_test): Rename "regnum".
333 * record-btrace.c (cmd_record_btrace_start): Rename inner
335 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Declare "i" in
337 * ppc-linux-tdep.c (ppc_linux_syscall_record): Declare "i" in loop
339 (ppu2spu_sniffer): Rename inner "buf".
340 * parse.c (operator_check_standard): Rename inner "type",
342 * p-valprint.c (pascal_val_print): Introduce new scope for
343 "low_bound", "high_bound".
344 * p-exp.y (yylex): Declare "i" in loop header.
345 * objfiles.c (objfile_relocate1): Declare "i" in loop header.
346 Lower declaration of "s".
347 * nios2-tdep.c (nios2_analyze_prologue): Declare "i" in loop
349 (nios2_push_dummy_call): Rename "len".
350 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Rename static
352 (linux_xfer_osdata_fds, linux_xfer_osdata_shm)
353 (linux_xfer_osdata_sem, linux_xfer_osdata_msg)
354 (linux_xfer_osdata_modules): Likewise.
355 * mips-tdep.c (mips_eabi_push_dummy_call): Rename outer "len".
356 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
357 (mips_o64_push_dummy_call): Likewise.
358 * microblaze-tdep.c (microblaze_analyze_prologue): Rename inner
360 * mi/mi-main.c (list_available_thread_groups): Rename inner
362 (mi_cmd_data_read_memory): Rename inner "opts".
363 * mi/mi-cmd-var.c (varobj_update_one): Rename inner
365 * mep-tdep.c (mep_analyze_prologue): Declare "rn" in loop header.
366 * mdebugread.c (parse_symbol): Rename inner "b". Declare "f" in
368 (parse_partial_symbols): Rename inner "pst", "p", "name"
369 * main.c (captured_main_1): Rename inner "i"s.
370 * machoread.c (macho_symfile_read_all_oso): Don't redeclare
372 * linux-tdep.c (linux_info_proc): Rename inner "filename".
373 * linespec.c (linespec_lexer_lex_string): Rename inner "p".
374 * infrun.c (handle_no_resumed): Don't redeclare "thread".
375 (handle_signal_stop): Rename inner "gdbarch".
376 (handle_command): Declare "signum" in loop header.
377 * ia64-tdep.c (ia64_pseudo_register_read): Don't redeclare
379 (examine_prologue): Rename inner "sol" and "sof".
380 (ia64_extract_return_value): Rename inner "val". Declare another
381 "val" in a more inner scope.
382 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Declare "buf" in
384 * guile/scm-symbol.c (gdbscm_lookup_symbol): Rename inner
386 * findvar.c (default_read_var_value): Don't redeclare "addr".
387 * f-exp.y (yylex): Declare "i" in loop header.
388 * eval.c (evaluate_subexp_standard): Don't redeclare "type".
389 Rename inner "type", "expect_type".
390 (evaluate_subexp_for_sizeof): Rename inner "pc".
391 * elfread.c (elf_symfile_read): Rename inner "abfd".
392 * dwarf2read.c (read_debug_names_from_section): Don't redeclare
394 (process_psymtab_comp_unit_reader): Don't redeclare "gdbarch".
395 (add_partial_subprogram): Rename inner "lowpc" and "highpc".
396 (dwarf_decode_line_header): Rename inner "lh".
397 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Don't redeclare
398 "offset". Declare "i" in loop header.
399 (disassemble_dwarf_expression): Rename inner "addr_size".
400 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Rename
402 (dwarf_expr_context::execute_stack_op): Rename inner "offset".
403 * dwarf2-frame.c (decode_frame_entry_1): Rename inner "length"s.
404 * disasm.c (do_mixed_source_and_assembly_deprecated): Rename inner
405 "inner_list_emitter".
406 (do_mixed_source_and_assembly): Rename inner "tuple_emitter".
407 * disasm-selftests.c (print_one_insn_test): Wrap "bplen"
408 declaration in a block.
409 * csky-tdep.c (csky_analyze_prologue): Declare "offset" lower.
410 * cp-valprint.c (cp_print_value_fields): Don't redeclare
411 "obstack_final_size".
412 * cp-support.c (inspect_type): Declare "i" in loop header.
413 * compile/compile.c (compile_instance::insert_symbol_error):
415 * common/agent.c (agent_run_command): Remove inner "ret"
417 * coffread.c (coff_symfile_read): Rename inner "name".
418 (coff_symfile_read): Rename inner "abfd".
419 * cli/cli-utils.c (get_number_trailer): Rename inner "val".
420 * cli/cli-cmds.c (print_disassembly): Rename inner "low" and
422 * c-exp.y (lex_one_token): Move "len" declaration lower.
423 * breakpoint.c (create_longjmp_master_breakpoint): Don't redeclare
425 (create_exception_master_breakpoint): Likewise. Don't redeclare
427 (watch_command_1): Declare "mark" later.
428 (clear_command): Don't shadow "a" or "b".
429 (delete_command): Rename inner "b".
430 (delete_trace_command): Likewise.
431 * arm-tdep.c (thumb_process_displaced_32bit_insn): Rename inner
433 (arm_gdbarch_init): Remove inner "e_flags".
434 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Declare
435 "offset" in inner blocks.
437 2018-10-04 Simon Marchi <simon.marchi@ericsson.com>
439 * dwarf-index-write.c (file_write): Don't write if the vector is
442 2018-10-05 Tom de Vries <tdevries@suse.de>
444 * python/py-progspace.c (pspy_solib_name): Fix type mismatch in
445 PyArg_ParseTuple call.
447 2018-10-05 Tom de Vries <tdevries@suse.de>
449 * python/py-record-btrace.c (recpy_bt_goto): Fix type mismatch in
450 PyArg_ParseTuple call.
452 2018-10-04 Joel Brobecker <brobecker@adacore.com>
454 * psymtab.c (recursively_search_psymtabs): Reformat parameters
455 to avoid exceeding 80 characters per line limit.
457 2018-10-04 Tom Tromey <tom@tromey.com>
459 * symfile.c (syms_from_objfile_1, finish_new_objfile)
460 (reread_symbols): Update.
461 * complaints.h (clear_complaints): Remove argument.
462 * complaints.c (enum complaint_series): Remove.
463 (series): Remove global.
464 (complaint_internal): Update.
465 (clear_complaints): Remove argument.
467 2018-10-04 Tom Tromey <tom@tromey.com>
469 * symfile.c (symbol_file_add_with_addrs): Do not print "no
470 debugging symbols" message if there is a separate debug objfile.
472 2018-10-04 Tom Tromey <tom@tromey.com>
475 * symfile.c (symbol_file_add_with_addrs): Update output.
476 * psymtab.c (require_partial_symbols): Update output.
478 2018-10-04 Tom Tromey <tom@tromey.com>
481 * complaints.c: Emit \n.
483 2018-10-04 Tom Tromey <tom@tromey.com>
485 * symfile.c (symbol_file_add_with_addrs, symbol_file_clear)
486 (separate_debug_file_exists, find_separate_debug_file)
487 (add_symbol_file_command, reread_symbols, allocate_symtab)
488 (allocate_compunit_symtab): Use filtered printing, not
490 * psymtab.c (require_partial_symbols, dump_psymtab)
491 (allocate_psymtab): Use filtered printing, not unfiltered.
493 2018-10-04 Tom Tromey <tom@tromey.com>
495 * complaints.c (complaint_internal): Correctly check complaint
498 2018-10-04 Tom Tromey <tom@tromey.com>
500 * complaints.h (struct complaints): Remove declaration.
501 * complaints.c (clear_complaints): Remove an unused variable.
503 2018-10-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
505 * MAINTAINERS (Write After Approval): Add self.
507 2018-10-03 Tom Tromey <tom@tromey.com>
509 * guile/scm-value.c (gdbscm_value_to_string): Initialize
511 * coffread.c (coff_symtab_read): Initialize "newobj".
513 2018-10-03 Simon Marchi <simon.marchi@polymtl.ca>
515 * dwarf2read.c (read_func_scope): Remove struct keyword in
518 2018-10-03 Tom Tromey <tom@tromey.com>
520 * README: Mention --enable-ubsan.
521 * NEWS: Mention --enable-ubsan.
522 * acinclude.m4: Include sanitize.m4.
523 * configure: Rebuild.
524 * configure.ac: Call AM_GDB_UBSAN.
525 * sanitize.m4: New file.
527 2018-10-03 Tom Tromey <tom@tromey.com>
529 * expression.h (enum exp_opcode): Use uint8_t as base type.
530 * expprint.c (op_name): Handle invalid opcodes.
532 2018-10-03 Tom Tromey <tom@tromey.com>
534 * parse.c (prefixify_expression): Add assert.
535 (parse_exp_in_context_1): Throw exception if the expression is
538 2018-10-03 Tom Tromey <tom@tromey.com>
540 * dwarf2read.c (read_signed_leb128): Work in ULONGEST.
542 2018-10-03 Tom Tromey <tom@tromey.com>
544 * c-exp.y (parse_number): Work in unsigned. Remove casts.
546 2018-10-03 Tom Tromey <tom@tromey.com>
548 * dwarf2read.c (read_subrange_type): Make "negative_mask"
551 2018-10-03 Tom Tromey <tom@tromey.com>
553 * findvar.c (extract_integer): Do work in an unsigned type.
555 2018-10-03 Tom Tromey <tom@tromey.com>
557 * common/enum-flags.h (enum_flags::operator~): Add static assert.
558 * symfile-add-flags.h (enum symfile_add_flag): Use unsigned as
560 * objfile-flags.h (enum objfile_flag): Use unsigned as base type.
561 * gdbtypes.h (enum type_instance_flag_value): Use unsigned as base
563 * c-lang.h (enum c_string_type_values): Use unsigned as base
565 * btrace.h (enum btrace_thread_flag): Use unsigned as base type.
567 2018-10-03 Tom Tromey <tom@tromey.com>
569 * dwarf2-frame.h (dwarf2_frame_state_reg_info)
570 <~dwarf2_frame_state_reg_info>: Update.
571 <dwarf2_frame_state_reg_info>: Update.
572 <alloc_regs>: Add assertion. Update.
573 <reg>: Now a std::vector.
576 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
577 (execute_cfa_program_test, dwarf2_frame_cache): Update.
579 2018-10-03 Tom Tromey <tom@tromey.com>
581 * namespace.c (add_using_directive): Don't pass NULL to memcpy.
583 2018-10-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
585 * tid-parse.c (tid_is_in_list): Fix wrong 'See' comment.
587 2018-10-02 Tom Tromey <tom@tromey.com>
589 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Use pulongest.
591 2018-10-02 John Darrington <john@darrington.wattle.id.au>
593 * NEWS: Mention changed commands.
594 * ser-uds.c: New file.
595 * configure.ac (SER_HARDWIRE): Add ser-uds.o.
596 * configure: Regenerate.
597 * Makefile.in: Add new file.
598 * serial.c (serial_open): Check if filename is a socket
599 and lookup the appropriate interface accordingly.
601 2018-10-01 Alan Hayward <alan.hayward@arm.com>
603 * aarch64-linux-tdep.c (AARCH64_SIGCONTEXT_RESERVED_OFFSET): Add
605 (AARCH64_EXTRA_MAGIC): Likewise.
606 (AARCH64_FPSIMD_MAGIC): Likewise.
607 (AARCH64_SVE_MAGIC): Likewise.
608 (AARCH64_EXTRA_DATAP_OFFSET): Likewise.
609 (AARCH64_FPSIMD_FPSR_OFFSET): Likewise.
610 (AARCH64_FPSIMD_FPCR_OFFSET): Likewise.
611 (AARCH64_FPSIMD_V0_OFFSET): Likewise.
612 (AARCH64_FPSIMD_VREG_SIZE): Likewise.
613 (AARCH64_SVE_CONTEXT_VL_OFFSET): Likewise.
614 (AARCH64_SVE_CONTEXT_REGS_OFFSET): Likewise.
615 (AARCH64_SVE_CONTEXT_P_REGS_OFFSET): Likewise.
616 (AARCH64_SVE_CONTEXT_FFR_OFFSET): Likewise.
617 (AARCH64_SVE_CONTEXT_SIZE): Likewise.
618 (read_aarch64_ctx): Add function.
619 (aarch64_linux_sigframe_init): Detect FP registers.
621 2018-10-01 Alan Hayward <alan.hayward@arm.com>
623 * aarch64-tdep.c (AARCH64_Q0_REGNUM): Move to here.
624 (AARCH64_D0_REGNUM): Likewise.
625 (AARCH64_S0_REGNUM): Likewise.
626 (AARCH64_H0_REGNUM): Likewise.
627 (AARCH64_B0_REGNUM): Likewise.
628 (AARCH64_SVE_V0_REGNUM): Likewise.
629 * arch/aarch64.h (AARCH64_Q0_REGNUM): Move from here.
630 (AARCH64_D0_REGNUM): Likewise.
631 (AARCH64_S0_REGNUM): Likewise.
632 (AARCH64_H0_REGNUM): Likewise.
633 (AARCH64_B0_REGNUM): Likewise.
634 (AARCH64_SVE_V0_REGNUM): Likewise.
636 2018-10-01 Gary Benson <gbenson@redhat.com>
638 * gdb_proc_service.h (gdb_prfpregset_t): Remove typedef.
639 * proc-service.c (ps_lgetfpregs, ps_lsetfpregs): Use
640 prfpregset_t instead of gdb_prfpregset_t.
641 * configure.ac (PRFPREGSET_T_BROKEN): Remove check.
642 * configure, config.in: Rebuild.
644 2018-10-01 Gary Benson <gbenson@redhat.com>
646 * common/gdb_proc_service.h: New file, factored out from...
647 * gdb_proc_service.h: Moved common code to the above file.
648 * Makefile.in (HFILES_NO_SRCDIR): Add the above new file.
650 2018-10-01 Gary Benson <gbenson@redhat.com>
652 * gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
653 undefined. Use elf_fpregset_t if prfpregset_t is undefined.
655 2018-10-01 Gary Benson <gbenson@redhat.com>
657 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t.
658 (AC_CHECK_HEADERS): Check for linux/elf.h.
659 * configure, config.in: Rebuild.
660 * gdb_proc_service.h: Include linux/elf.h if sys/procfs.h
661 doesn't define elf_fpregset_t.
663 2018-10-01 Gary Benson <gbenson@redhat.com>
665 * gdb_proc_service.h: Whitespace change.
667 2018-10-01 Tom Tromey <tom@tromey.com>
669 * unittests/scoped_mmap-selftests.c: Don't check HAVE_UNISTD_H.
670 * unittests/scoped_fd-selftests.c: Don't check HAVE_UNISTD_H.
671 * common/scoped_fd.h: Don't check HAVE_UNISTD_H.
673 2018-10-01 Tom Tromey <tom@tromey.com>
675 * README: Minor change.
677 2018-09-30 Pedro Alves <palves@redhat.com>
679 * darwin-nat-info.c (darwin_debug_regions_recurse)
680 (info_mach_exceptions_command): Remove unused local variables.
681 * darwin-nat.c (darwin_decode_notify_message)
682 (darwin_nat_target::resume, darwin_nat_target::mourn_inferior)
683 (darwin_stop_inferior, darwin_setup_exceptions)
684 (darwin_nat_target::kill, darwin_attach_pid, darwin_ptrace_him)
685 (darwin_nat_target::attach, darwin_nat_target::detach)
686 (darwin_read_write_inferior, darwin_read_dyld_info): Remove unused
688 * i386-darwin-nat.c (i386_darwin_dr_set): Remove unused local
691 2018-09-29 Tom Tromey <tom@tromey.com>
693 * README: Remove some leftover text.
695 2018-09-29 Tom Tromey <tom@tromey.com>
700 2018-09-28 John Baldwin <jhb@FreeBSD.org>
702 * disasm-selftests.c (print_one_insn_test): Add bfd_arch_riscv to
703 case with explicit breakpoint kind.
704 * riscv-tdep.c (show_use_compressed_breakpoints): Remove
705 'additional_info' and related logic.
706 (riscv_debug_breakpoints): New variable.
707 (riscv_breakpoint_kind_from_pc): Use the length of the existing
708 instruction to determine the breakpoint kind.
709 (_initialize_riscv_tdep): Add 'set/show debug riscv breakpoints'
710 flag. Update description of 'set/show riscv
711 use-compressed-breakpoints' flag.
713 2018-09-28 Andrew Burgess <andrew.burgess@embecosm.com>
715 (NEWS): Mention changes to frame related commands.
716 * cli/cli-decode.c (add_cmd_suppress_notification): New function.
717 (add_prefix_cmd_suppress_notification): New function.
718 (add_com_suppress_notification): Call
719 add_cmd_suppress_notification.
720 * command.h (add_cmd_suppress_notification): Declare.
721 (add_prefix_cmd_suppress_notification): Declare.
722 * mi/mi-cmd-stack.c: Add 'safe-ctype.h' include.
723 (parse_frame_specification): Moved from stack.c, with
724 simplification to handle a single argument.
725 (mi_cmd_stack_select_frame): Use parse_frame_specification, the
726 switch to the selected frame. Add a header comment.
727 * stack.c: Remove 'safe-ctype.h' include.
728 (find_frame_for_function): Add declaration.
729 (find_frame_for_address): New function.
730 (parse_frame_specification): Moved into mi/mi-cmd-stack.c.
731 (frame_selection_by_function_completer): New function.
732 (info_frame_command): Rename to...
733 (info_frame_command_core): ...this, and update parameter types.
734 (select_frame_command): Rename to...
735 (select_frame_command_core): ...this, and update parameter types.
736 (frame_command): Rename to...
737 (frame_command_core): ...this, and update parameter types.
738 (class frame_command_helper): New class to wrap implementations of
739 frame related sub-commands.
740 (frame_apply_cmd_list): New static global.
741 (frame_cmd_list): Make static.
742 (select_frame_cmd_list): New global for sub-commands.
743 (info_frame_cmd_list): New global for sub-commands.
744 (_initialize_stack): Register sub-commands for 'frame',
745 'select-frame', and 'info frame'. Update 'frame apply' commands
746 to use frame_apply_cmd_list. Move function local static
747 frame_apply_list to file static frame_apply_cmd_list for
749 * stack.h (select_frame_command): Delete declarationn.
750 (select_frame_for_mi): Declare new function.
752 2018-09-26 Andrew Burgess <andrew.burgess@embecosm.com>
754 * riscv-tdep.c (riscv_insn::decode): Decode c.lui.
755 (riscv_scan_prologue): Split handling of AUIPC, LUI, ADD, ADDI,
758 2018-09-26 Simon Marchi <simon.marchi@ericsson.com>
760 * elf32-nds32.c (elf32_nds32_allocate_dynrelocs): Remove.
762 2018-09-26 Tom Tromey <tom@tromey.com>
764 * valops.c (auto_abandon): Remove dead code.
766 2018-09-26 Tom Tromey <tom@tromey.com>
768 * tui/tui-win.c (WIN_HEIGHT_USAGE): Remove extra ">"s.
770 2018-09-24 Tom Tromey <tom@tromey.com>
772 * common/pathstuff.c (get_standard_cache_dir): Make
773 "xdg_cache_home" and "home" const.
774 * top.c (init_history): Make "tmpenv" const.
775 * main.c (get_init_files): Make "homedir" const.
777 2018-09-23 Tom Tromey <tom@tromey.com>
780 * python/py-param.c (get_set_value): Use gdbpy_handle_exception.
782 2018-09-23 Tom Tromey <tom@tromey.com>
784 * python/py-function.c (fnpy_call): Use gdbpy_handle_exception.
785 * python/py-cmd.c (cmdpy_function): Use gdbpy_handle_exception.
786 * python/python-internal.h (gdbpy_handle_exception): Declare.
787 * python/py-utils.c (gdbpy_handle_exception): New function.
789 2018-09-23 Tom Tromey <tom@tromey.com>
792 * python/py-type.c (typy_template_argument): Check for negative
795 2018-09-23 Tom Tromey <tom@tromey.com>
798 * python/python.c (gdbpy_run_events): Do not ignore exceptions.
800 2018-09-23 Tom Tromey <tom@tromey.com>
803 * python/py-value.c (valpy_int): Allow conversion from pointer
806 2018-09-23 Tom Tromey <tom@tromey.com>
809 * python/py-value.c (valpy_int): Respect type sign.
811 2018-09-23 Tom Tromey <tom@tromey.com>
814 * python/py-value.c (valpy_float): Allow conversions from int or
816 (valpy_int, valpy_long): Allow conversions from float.
818 2018-09-23 Tom Tromey <tom@tromey.com>
820 * ctf.c (ctf_start): Use gdb_fopen_cloexec.
821 * common/scoped_mmap.c (mmap_file): Use gdb_open_cloexec.
823 2018-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
825 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Also recognize
827 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Likewise.
829 2018-08-02 Jon Turney <jon.turney@dronecode.org.uk>
831 * windows-nat.c (windows_nat_target::wait): Remove a spurious
832 target_terminal::ours().
834 2018-09-23 Simon Marchi <simon.marchi@ericsson.com>
836 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): Change type
839 2018-09-21 Yacov Simhony <ysimhony@gmail.com>
841 * breakpoint.c (update_inserted_breakpoint_locations): Remove
844 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
846 * proc-utils.h (PROC_CTL_WORD_TYPE): Remove.
848 * procfs.c: Don't check for PR_MODEL_NATIVE definition.
849 * sparc-sol2-nat.c: Likewise. Remove Linux, __arch64__ references.
850 * sol-thread.c (ps_pdmodel): Don't guard definition.
852 * procfs.c: Fix formatting.
854 * procfs.c (sysset_t_alloc): Remove.
855 (create_procinfo): Use XNEW instead of sysset_t_alloc.
856 (procfs_debug_inferior): Likewise.
857 (procfs_set_exec_trap): Likewise.
858 (proc_set_traced_sysentry): Don't allocate argp dynamically.
859 (proc_set_traced_sysexit): Likewise.
861 * procfs.c (create_procinfo): Use xsnprintf to fix ARI warning.
862 (dead_procinfo): Likewise.
863 (proc_warn): Likewise.
864 (proc_error): Likewise.
865 (proc_get_LDT_entry): Likewise.
866 (do_attach): Likewise.
867 (procfs_target::pid_to_str): Likewise.
868 (iterate_over_mappings): Likewise.
870 * procfs.c (create_procinfo): Fix ARI warning.
871 (proc_get_status): Likewise.
872 (proc_stop_process): Likewise.
873 (proc_run_process): Likewise.
874 (proc_kill): Likewise.
875 (proc_get_LDT_entry): Likewise.
876 (procfs_find_LDT_entry): Likewise.
877 (proc_update_threads): Likewise.
878 (proc_iterate_over_threads): Likewise.
879 (do_attach): Likewise.
880 (procfs_xfer_memory): Likewise.
881 (invalidate_cache): Likewise.
882 (procfs_target::resume): Likewise.
883 (procfs_init_inferior): Likewise.
884 (procfs_set_exec_trap): Likewise.
885 (procfs_target::thread_alive): Likewise.
886 (procfs_target::pid_to_exec_file): Likewise.
887 (iterate_over_mappings): Likewise.
888 (procfs_target::make_corefile_notes): Likewise.
889 * sol-thread.c (sol_thread_target::thread_alive): Likewise.
891 * procfs.c (procfs_find_LDT_entry): Silence ARI warning.
892 (procfs_find_LDT_entry): Likewise.
893 * sol-thread.c (ps_lgetLDT): Likewise.
895 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
898 * procfs.c (procfs_target): Declare pid_to_exec_file.
899 (procfs_target::pid_to_exec_file): New.
901 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
903 * auxv.c (default_print_auxv_entry): Reflect AT_SUN_CAP_HW1
905 Handle AT_SUN_EMULATOR, AT_SUN_BRANDNAME, AT_SUN_BRAND_AUX1,
906 AT_SUN_BRAND_AUX2, AT_SUN_BRAND_AUX3, AT_SUN_CAP_HW2.
908 2018-09-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
910 * i386-v4-nat.c (regmap, supply_gregset, fill_gregset)
911 (supply_fpregset, fill_fpregset): Move ...
912 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64]: ... here.
913 Remove HAVE_GREGSET_T, HAVE_FPREGET_T guards.
914 Remove references to ioctl-based procfs.
916 Remove PR_MODEL_NATIVE guards.
917 * configure.nat <sol2, i386> (NATDEPFILES): Remove i386-v4-nat.o.
918 * Makefile.in (ALLDEPFILES): Remove i386-v4-nat.c.
920 2018-09-19 Xavier Roirand <roirand@adacore.com>
923 * solib-darwin.c (darwin_get_dyld_bfd): New function.
924 (darwin_solib_get_all_image_info_addr_at_init): Update call.
925 (darwin_solib_create_inferior_hook): Handle unrelocated dyld.
927 2018-09-19 John Baldwin <jhb@FreeBSD.org>
929 * fbsd-tdep.c (fbsd_print_sockaddr_in): Style fix.
930 (fbsd_print_sockaddr_in6): Likewise.
932 2018-09-19 Richard Bunt <richard.bunt@arm.com>
933 Chris January <chris.january@arm.com>
935 * eval.c (skip_undetermined_arglist): Skip argument list helper.
936 (evaluate_subexp_standard): Return a dummy type when
937 honoring EVAL_SKIP in OP_VAR_VALUE and handle skipping in the
938 OP_F77_UNDETERMINED_ARGLIST case.
939 * expression.h (enum noside): Update comment.
941 2018-09-19 George Vasick <george.vasick@oracle.com>
943 * solib-svr4.c (svr4_same_1): Also handle amd64 ld.so.1.
945 2018-09-19 Stefan Teleman <stefan.teleman@oracle.com>
946 April Chin <april.chin@oracle.com>
947 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
949 * procfs.c (MAX_PROC_NAME_SIZE): Allow for 6-digit PID_MAX and
951 (create_procinfo): Print pids in /proc without leading zeros.
953 2018-09-18 Sandra Loosemore <sandra@codesourcery.com>
955 * nios2-tdep.c (nios2_gcc_target_options): New.
956 (nios2_gdb_arch_init): Install new hook.
958 2018-09-18 Simon Marchi <simon.marchi@ericsson.com>
960 * patches/0001-Fix-PR-gdb-23558-Use-system-s-getcwd-when-cross-comp.patch:
962 * update-gnulib.sh: Apply patch.
963 * configure: Re-generate.
965 2018-09-18 John Baldwin <jhb@FreeBSD.org>
967 * infcmd.c (_initialize_infcmd): Remove "running" from "info proc"
968 description. Make "info proc" command descriptions more
971 2018-09-18 John Baldwin <jhb@FreeBSD.org>
973 * NEWS: Mention 'info proc files' command.
975 2018-09-18 John Baldwin <jhb@FreeBSD.org>
977 * fbsd-nat.c (fbsd_nat_target::info_proc): List open file
978 descriptors for IP_FILES and IP_ALL.
980 2018-09-18 John Baldwin <jhb@FreeBSD.org>
982 * fbsd-tdep.c (KF_FLAGS, KF_OFFSET, KF_VNODE_TYPE, KF_SOCK_DOMAIN)
983 (KF_SOCK_TYPE, KF_SOCK_PROTOCOL, KF_SA_LOCAL, KF_SA_PEER)
984 (KINFO_FILE_TYPE_SOCKET, KINFO_FILE_TYPE_PIPE)
985 (KINFO_FILE_TYPE_FIFO, KINFO_FILE_TYPE_KQUEUE)
986 (KINFO_FILE_TYPE_CRYPTO, KINFO_FILE_TYPE_MQUEUE)
987 (KINFO_FILE_TYPE_SHM, KINFO_FILE_TYPE_SEM, KINFO_FILE_TYPE_PTS)
988 (KINFO_FILE_TYPE_PROCDESC, KINFO_FILE_FD_TYPE_ROOT)
989 (KINFO_FILE_FD_TYPE_JAIL, KINFO_FILE_FD_TYPE_TRACE)
990 (KINFO_FILE_FD_TYPE_CTTY, KINFO_FILE_FLAG_READ)
991 (KINFO_FILE_FLAG_WRITE, KINFO_FILE_FLAG_APPEND)
992 (KINFO_FILE_FLAG_ASYNC, KINFO_FILE_FLAG_FSYNC)
993 (KINFO_FILE_FLAG_NONBLOCK, KINFO_FILE_FLAG_DIRECT)
994 (KINFO_FILE_FLAG_HASLOCK, KINFO_FILE_FLAG_EXEC)
995 (KINFO_FILE_VTYPE_VREG, KINFO_FILE_VTYPE_VDIR)
996 (KINFO_FILE_VTYPE_VCHR, KINFO_FILE_VTYPE_VLNK)
997 (KINFO_FILE_VTYPE_VSOCK, KINFO_FILE_VTYPE_VFIFO, FBSD_AF_UNIX)
998 (FBSD_AF_INET, FBSD_AF_INET6, FBSD_SOCK_STREAM, FBSD_SOCK_DGRAM)
999 (FBSD_SOCK_SEQPACKET, FBSD_IPPROTO_ICMP, FBSD_IPPROTO_TCP)
1000 (FBSD_IPPROTO_UDP, FBSD_IPPROTO_SCTP): New defines.
1001 (struct fbsd_sockaddr_in, struct fbsd_sockaddr_in6)
1002 (struct fbsd_sockaddr_un): New types.
1003 (fbsd_file_fd, fbsd_file_type, fbsd_file_flags, fbsd_ipproto)
1004 (fbsd_print_sockaddr_in, fbsd_print_sockaddr_in6)
1005 (fbsd_info_proc_files_header, fbsd_info_proc_files_entry)
1006 (fbsd_core_info_proc_files): New functions.
1007 (fbsd_core_info_proc): List open file descriptors for IP_FILES and
1009 * fbsd-tdep.h (fbsd_info_proc_files_header)
1010 (fbsd_info_proc_files_entry): New.
1012 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1014 * defs.h (enum info_proc_what) [IP_FILES]: New value.
1015 * infcmd.c (info_proc_cmd_files): New function.
1016 (_initialize_infcmd): Register 'info proc files' command.
1018 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1020 * gnulib/aclocal-m4-deps.mk: Re-generate.
1021 * gnulib/aclocal.m4: Re-generate.
1022 * gnulib/config.in: Re-generate.
1023 * gnulib/configure: Re-generate.
1024 * gnulib/import/Makefile.am: Re-generate.
1025 * gnulib/import/Makefile.in: Re-generate.
1026 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
1027 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
1028 * gnulib/import/arpa_inet.in.h: New file.
1029 * gnulib/import/inet_ntop.c: New file.
1030 * gnulib/import/m4/arpa_inet_h.m4: New file.
1031 * gnulib/import/m4/inet_ntop.m4: New file.
1032 * gnulib/import/m4/netinet_in_h.m4: New file.
1033 * gnulib/import/m4/socklen.m4: New file.
1034 * gnulib/import/m4/sockpfaf.m4: New file.
1035 * gnulib/import/m4/stdalign.m4: New file.
1036 * gnulib/import/m4/sys_uio_h.m4: New file.
1037 * gnulib/import/netinet_in.in.h: New file.
1038 * gnulib/import/stdalign.in.h: New file.
1039 * gnulib/import/sys_socket.c: New file.
1040 * gnulib/import/sys_socket.in.h: New file.
1041 * gnulib/import/sys_uio.in.h: New file.
1042 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add inet_ntop
1045 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1047 * gnulib/aclocal-m4-deps.mk: New file.
1048 * gnulib/update-gnulib.sh: Generate "aclocal-m4-deps.mk"
1051 2018-09-18 John Baldwin <jhb@FreeBSD.org>
1053 * fbsd-tdep.c (fbsd_core_vnode_path): Use KF_PATH instead of
1056 2018-09-18 Tom Tromey <tom@tromey.com>
1058 * compile/compile-object-load.c (struct
1059 link_hash_table_cleanup_data): Add constructor and destructor.
1060 Use DISABLE_COPY_AND_ASSIGN.
1061 (~link_hash_table_cleanup_data): Rename from
1062 link_hash_table_free. Now a destructor.
1063 (copy_sections): Use gdb::unique_xmalloc_ptr. Remove cleanups.
1065 2018-09-18 Tom Tromey <tom@tromey.com>
1067 * compile/compile-object-run.c (do_module_cleanup): Use delete.
1068 * compile/compile-object-load.c (struct munmap_list): Move to
1070 (munmap_list::add): Rename from munmap_list_add; rewrite.
1071 (munmap_list::~munmap_list): Rename from munmap_list_free.
1072 (munmap_listp_free_cleanup): Remove.
1073 (compile_object_load): Update.
1074 * compile/compile-object-load.h (struct munmap_list): Move from
1075 compile-object-load.c. Rewrite.
1077 2018-09-18 Alan Hayward <alan.hayward@arm.com>
1079 * aarch64-tdep.c (pass_in_v): Use register size.
1080 (aarch64_extract_return_value): Likewise.
1081 (aarch64_store_return_value): Likewise.
1083 2018-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1085 * utils.c (dump_core) [HAVE_SETRLIMIT]: Cast RLIM_INFINITY to
1088 2018-09-17 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1090 * python/lib/gdb/command/frame_filters.py (EnableFrameFilter):
1091 Fix short help line.
1093 2018-09-17 Tom Tromey <tom@tromey.com>
1096 * configure: Rebuild.
1097 * configure.ac: Conditionally use -DNDEBUG for Python.
1099 2018-09-17 Tom Tromey <tom@tromey.com>
1101 * configure: Rebuild.
1102 * configure.ac: Use gmp as a library dependency when checking for
1105 2018-09-17 Pedro Alves <palves@redhat.com>
1107 * python/py-inferior.c (find_inferior_object): Delete.
1109 2018-09-17 Simon Marchi <simon.marchi@ericsson.com>
1111 * compile/compile-cplus-types.c
1112 (compile_cplus_instance::enter_scope): Don't use new_scope after
1115 2018-09-17 Tom Tromey <tom@tromey.com>
1117 * common/pathstuff.c (get_standard_cache_dir): Use
1118 ~/Library/Caches on macOS.
1119 * common/pathstuff.h (get_standard_cache_dir): Update comment.
1121 2018-09-17 Simon Marchi <simon.marchi@polymtl.ca>
1124 * breakpoint.c (commands_cmd_element): New.
1125 (_initialize_breakpoint): Assign commands_cmd_element.
1126 * breakpoint.h (commands_cmd_element): New.
1127 * cli/cli-script.c (while_cmd_element, if_command,
1128 define_cmd_element): New.
1129 (command_name_equals): Remove.
1130 (process_next_line): Compare commands by pointer, not by name.
1131 (_initialize_cli_script): Assign the various cmd_list_element
1133 * compile/compile.c (compile_cmd_element): New.
1134 (_initialize_compile): Assign compile_cmd_element.
1135 * compile/compile.h (compile_cmd_element): New.
1136 * guile/guile.c (guile_cmd_element): New.
1137 (install_gdb_commands): Assign guile_cmd_element.
1138 * guile/guile.h (guile_cmd_element): New.
1139 * python/python.c (python_cmd_element): New.
1140 (_initialize_python): Assign python_cmd_element.
1141 * python/python.h (python_cmd_element): New.
1142 * tracepoint.c (while_stepping_cmd_element): New.
1143 (_initialize_tracepoint): Assign while_stepping_cmd_element.
1144 * tracepoint.h (while_stepping_cmd_element): New.
1146 2018-09-17 Tom Tromey <tom@tromey.com>
1148 * infrun.c (save_infcall_suspend_state): Return
1149 infcall_suspend_state_up.
1150 (save_infcall_control_state): Return infcall_control_state_up.
1151 * inferior.h (save_infcall_suspend_state)
1152 (save_infcall_control_state): Declare later. Return unique
1155 2018-09-17 Tom Tromey <tom@tromey.com>
1157 * infrun.c (struct stop_context): Declare constructor,
1158 destructor, "changed" method.
1159 (stop_context::stop_context): Rename from save_stop_context.
1160 (stop_context::~stop_context): Rename from
1161 release_stop_context_cleanup.
1162 (normal_stop): Update.
1163 (stop_context::changed): Rename from stop_context_changed. Return
1166 2018-09-17 Tom Tromey <tom@tromey.com>
1168 * inferior.h (struct infcall_suspend_state_deleter): New.
1169 (infcall_suspend_state_up): New typedef.
1170 (struct infcall_control_state_deleter): New.
1171 (infcall_control_state_up): New typedef.
1172 (make_cleanup_restore_infcall_suspend_state)
1173 (make_cleanup_restore_infcall_control_state): Don't declare.
1174 * infcall.c (call_function_by_hand_dummy): Update.
1175 * infrun.c (do_restore_infcall_suspend_state_cleanup)
1176 (make_cleanup_restore_infcall_suspend_state): Remove.
1177 (do_restore_infcall_control_state_cleanup)
1178 (make_cleanup_restore_infcall_control_state): Remove.
1180 2018-09-17 Tom Tromey <tom@tromey.com>
1182 * gdbthread.h (struct thread_control_state): Add initializer.
1183 (class thread_info) <control>: Remove initializer.
1184 * inferior.h (struct inferior_control_state): Add initializer.
1185 (class inferior) <control>: Remove initializer.
1186 (exit_inferior_1): Update.
1187 * infrun.c (struct infcall_control_state): Add constructors.
1188 (save_infcall_control_state): Use new.
1189 (restore_infcall_control_state, discard_infcall_control_state):
1192 2018-09-17 Tom Tromey <tom@tromey.com>
1194 * infrun.c (struct infcall_suspend_state) <registers>: Now a
1196 <siginfo_data>: Now a unique_xmalloc_ptr.
1197 (save_infcall_suspend_state, restore_infcall_suspend_state)
1198 (discard_infcall_suspend_state)
1199 (get_infcall_suspend_state_regcache): Update.
1201 2018-09-17 Tom Tromey <tom@tromey.com>
1203 * gdbthread.h (struct thread_suspend_state): Add initializers.
1204 (class thread_info) <suspend>: Remove initializer.
1205 * infrun.c (struct infcall_suspend_state): Add initializers.
1206 (save_infcall_suspend_state): Use new.
1207 (discard_infcall_suspend_state): Use delete.
1209 2018-09-16 Tom Tromey <tom@tromey.com>
1211 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1213 * python/py-varobj.c (py_varobj_iter_ctor): Change pyiter to
1214 rvalue reference. Remove CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1215 (py_varobj_iter_new): Likewise.
1216 (py_varobj_get_iterator): Use gdbpy_ref.
1218 2018-09-16 Tom Tromey <tom@tromey.com>
1220 * python/py-threadevent.c (py_get_event_thread): Simplify.
1221 * python/py-inferior.c (infpy_thread_from_thread_handle):
1222 Return immediately after calling thread_to_thread_object. Use
1224 (thread_to_thread_object): Set the exception on a NULL return.
1226 2018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1228 * Makefile.in (LIBGDB_OBS): Sort COMMON_OBS.
1230 2018-09-16 Tom Tromey <tom@tromey.com>
1232 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1235 2018-09-16 Tom Tromey <tom@tromey.com>
1237 * python/python-internal.h (thread_to_thread_object): Change
1239 * python/py-inferior.c (thread_to_thread_object): Return a new
1241 (infpy_thread_from_thread_handle): Update.
1242 * python/py-infthread.c (gdbpy_selected_thread): Update.
1243 * python/py-stopevent.c (create_stop_event_object): Update.
1244 * python/py-threadevent.c (py_get_event_thread): Return a new
1246 (py_get_event_thread): Update.
1247 * python/py-event.h (py_get_event_thread): Change return type.
1248 * python/py-continueevent.c (create_continue_event_object):
1251 2018-09-16 Tom Tromey <tom@tromey.com>
1253 * python/py-progspace.c (pspy_get_objfiles): Update.
1254 * python/python-internal.h (objfile_to_objfile_object): Change
1256 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1258 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1260 * python/python.c (gdbpy_get_current_objfile): Update.
1261 (gdbpy_objfiles): Update.
1262 * python/py-objfile.c (objfpy_get_owner, gdbpy_lookup_objfile):
1264 (objfile_to_objfile_object): Return a new reference.
1265 * python/py-symtab.c (stpy_get_objfile): Update.
1266 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
1269 2018-09-16 Tom Tromey <tom@tromey.com>
1271 * python/py-inferior.c (infpy_get_progspace): Update.
1272 * python/python-internal.h (pspace_to_pspace_object): Change
1274 * python/py-newobjfileevent.c
1275 (create_clear_objfiles_event_object): Update.
1276 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
1278 * python/python.c (gdbpy_get_current_progspace): Update.
1279 (gdbpy_progspaces): Update.
1280 * python/py-progspace.c (pspace_to_pspace_object): Return a new
1282 * python/py-objfile.c (objfpy_get_progspace): Update.
1283 * python/py-prettyprint.c (find_pretty_printer_from_progspace):
1286 2018-09-16 Tom Tromey <tom@tromey.com>
1288 * python/lib/gdb/__init__.py (current_progspace, objfiles)
1289 (solib_name, block_for_pc, find_pc_line): New functions.
1290 (execute_unwinders): Update.
1291 * python/py-block.c (gdbpy_block_for_pc): Remove.
1292 * python/py-inferior.c (infpy_get_progspace): New function.
1293 (inferior_object_getset) <progspace>: Add.
1294 * python/py-progspace.c (pspy_objfiles): Rewrite.
1295 (pspy_solib_name, pspy_block_for_pc)
1296 (pspy_find_pc_line, pspy_is_valid): New functions.
1297 (progspace_object_methods): Add entries for solib_name,
1298 block_for_pc, find_pc_line, is_valid.
1299 * python/python-internal.h (gdbpy_block_for_pc)
1300 (build_objfiles_list): Don't declare.
1301 * python/python.c: Don't include solib.h.
1302 (gdbpy_solib_name, gdbpy_find_pc_line)
1303 (gdbpy_get_current_progspace, build_objfiles_list)
1304 (gdbpy_objfiles): Remove.
1305 (GdbMethods) <current_progspace, objfiles, block_for_pc,
1306 solib_name, find_pc_line>: Remove entries.
1308 2018-09-16 Tom Tromey <tom@tromey.com>
1310 * top.c (new_ui_command): Use GNU style for metasyntactic
1312 * breakpoint.c (stopat_command): Use GNU style for metasyntactic
1314 * maint.c (maintenance_translate_address): Remove "<>" around
1316 * interps.c (interpreter_exec_cmd): Use GNU style for
1317 metasyntactic variables.
1318 * nto-procfs.c (nto_procfs_target_info): Use GNU style for
1319 metasyntactic variables.
1320 * tracepoint.c (tfind_range_command): Use GNU style for
1321 metasyntactic variables.
1322 (tfind_outside_command): Likewise.
1323 (_initialize_tracepoint): Likewise.
1324 * remote.c (extended_remote_target::create_inferior): Use GNU
1325 style for metasyntactic variables.
1326 * sparc64-tdep.c (adi_examine_command): Use GNU style for
1327 metasyntactic variables.
1328 (adi_assign_command): Likewise.
1330 2018-09-16 Tom Tromey <tom@tromey.com>
1332 * disasm.c (show_disassembler_options_sfunc): Use GNU style for
1333 metasyntactic variables. Print message if no disassembler options
1336 2018-09-15 Tom Tromey <tom@tromey.com>
1338 * infcmd.c (get_inferior_args): Return const char *.
1339 * inferior.h (get_inferior_args): Return type now const.
1340 * linux-tdep.c (linux_fill_prpsinfo): Update.
1341 * procfs.c (procfs_target::make_corefile_notes): Update.
1343 2018-09-07 Tom Tromey <tom@tromey.com>
1345 * python/python.c (execute_gdb_command): Call bpstat_do_actions
1348 2018-09-14 Sandra Loosemore <sandra@codesourcery.com>
1350 * nios2-tdep.c (nios2_type_align): New.
1351 (nios2_gdb_arch_init): Install type_align hook.
1353 2018-09-10 Andrew Burgess <andrew.burgess@embecosm.com>
1355 * eval.c (fake_method::fake_method): Call xzalloc directly for a
1356 type that is neither object file owned, nor gdbarch owned.
1357 * gdbtypes.c (get_type_gdbarch): Add an assert that returned
1358 gdbarch is non-NULL.
1359 (alloc_type_instance): Allocate non-objfile owned types on the
1361 (copy_type_recursive): Allocate TYPE_FIELDS and TYPE_RANGE_DATA
1362 using TYPE_ALLOC to ensure memory is allocated on the correct
1364 * gdbtypes.h (TYPE_ALLOC): Allocate space on either the objfile
1365 obstack, or the gdbarch obstack.
1366 (TYPE_ZALLOC): Rewrite using TYPE_ALLOC.
1368 2018-09-14 Tom Tromey <tom@tromey.com>
1370 * infcall.c (call_function_by_hand_dummy): Remove unnecessary
1373 2018-09-14 Tom Tromey <tom@tromey.com>
1375 * nat/fork-inferior.c (get_startup_shell): Remove "static".
1377 2018-09-13 Tom Tromey <tom@tromey.com>
1379 * python/py-inferior.c (infpy_thread_from_thread_handle): Now
1382 2018-09-13 Tom Tromey <tom@tromey.com>
1384 * exec.c (try_open_exec_file): Use std::string.
1386 2018-09-13 Tom Tromey <tom@tromey.com>
1388 * utils.h (gdb_bfd_errmsg): Return std::string.
1389 * exec.c (exec_file_attach): Update.
1390 * compile/compile-object-load.c (compile_object_load): Update.
1391 * utils.c (gdb_bfd_errmsg): Return std::string.
1393 2018-09-13 Tom Tromey <tom@tromey.com>
1395 * procfs.c (struct procinfo_deleter): New.
1396 (procinfo_up): New typedef.
1397 (do_destroy_procinfo_cleanup): Remove.
1398 (procfs_target::info_proc): Use procinfo_up. Remove cleanups.
1400 2018-09-13 Tom Tromey <tom@tromey.com>
1402 * source.c (add_path): Use gdb::unique_xmalloc_ptr.
1404 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1405 2018-09-13 Tom Tromey <tom@tromey.com>
1407 * python/py-progspace.c (PSPY_REQUIRE_VALID): New macro.
1408 (pspy_get_objfiles): New function.
1409 (progspace_object_methods): New.
1410 (pspace_object_type): Add tp_methods callback.
1411 * python/python-internal.h (build_objfiles_list): New
1413 * python/python.c (build_objfiles_list): New function.
1414 (gdbpy_objfiles): Implement using build_objfiles_list.
1415 * NEWS: Mention the Progspace.objfiles method.
1417 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1419 * python/py-inferior.c (infpy_get_progspace): New function.
1420 (inferior_object_getset): Add progspace property.
1421 * NEWS: Mention the new property.
1423 2018-09-13 Tom Tromey <tom@tromey.com>
1426 * rust-lang.c (rust_evaluate_subexp): Use field name, not "foo".
1428 2018-09-13 Tom Tromey <tom@tromey.com>
1431 * rust-lang.c (rust_enum_variant): Now static.
1432 (rust_empty_enum_p): New function.
1433 (rust_print_enum, rust_evaluate_subexp, rust_print_struct_def):
1436 2018-09-13 Simon Marchi <simon.marchi@ericsson.com>
1438 * python/py-inferior.c (infpy_repr): New.
1439 (inferior_object_type): Register infpy_repr.
1440 * python/py-objfile.c (objfpy_repr): New.
1441 (objfile_object_type): Register objfpy_repr.
1443 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1445 * fbsd-nat.c (fbsd_nat_target::info_proc): Remove unused variable.
1447 2018-09-12 John Baldwin <jhb@FreeBSD.org>
1449 * aarch64-fbsd-tdep.h (AARCH64_FBSD_SIZEOF_GREGSET): Fix comment
1452 2018-09-12 Sergio Durigan Junior <sergiodj@redhat.com>
1454 * common/common-utils.c: Don't include '<sys/stat.h>'.
1455 (is_regular_file): Move to...
1456 * common/filestuff.c (is_regular_file): ... here.
1457 * common/common-utils.h (is_regular_file): Move to...
1458 * common/filestuff.h (is_regular_file): ... here.
1460 2018-09-12 Simon Marchi <simon.marchi@ericsson.com>
1462 * skip.c (debug_skip): New variable.
1463 (skiplist_entry::do_skip_file_p): Add debug output.
1464 (skiplist_entry::do_skip_gfile_p): Likewise.
1465 (skiplist_entry::skip_function_p): Likewise.
1466 (_initialize_step_skip): Create debug command.
1467 * NEWS: Mention set/show debug skip.
1469 2018-09-11 Xavier Roirand <roirand@adacore.com>
1471 * darwin-nat.c (should_disable_startup_with_shell):
1473 (darwin_nat_target::create_inferior): Add call.
1475 2018-09-11 Xavier Roirand <roirand@adacore.com>
1477 * darwin-nat.h (struct darwin_thread_info) <gdb_port,
1478 inf_port, msg_state>: Initialize.
1479 (struct darwin_thread_info) <signaled, single_step>: Change
1480 type and initialize.
1481 (struct darwin_thread_info) <event>: Initialize.
1483 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1487 * gnulib/import/m4/getcwd-path-max.m4: Add cross-compilation
1490 2018-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
1493 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
1497 * gnulib/aclocal.m4: Regenerate.
1498 * gnulib/config.in: Regenerate.
1499 * gnulib/configure: Regenerate.
1500 * gnulib/import/Makefile.am: Update.
1501 * gnulib/import/Makefile.in: Update.
1502 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
1503 * gnulib/import/_Noreturn.h: ... this.
1504 * gnulib/import/alloca.in.h: Update.
1505 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
1506 * gnulib/import/arg-nonnull.h: ... this.
1507 * gnulib/import/assure.h: Update.
1508 * gnulib/import/at-func.c: Update.
1509 * gnulib/import/basename-lgpl.c: Update.
1510 * gnulib/import/extra/snippet/c++defs.h: Rename to...
1511 * gnulib/import/c++defs.h: ... this.
1512 * gnulib/import/canonicalize-lgpl.c: Update.
1513 * gnulib/import/cdefs.h: Update.
1514 * gnulib/import/chdir-long.c: Update.
1515 * gnulib/import/chdir-long.h: Update.
1516 * gnulib/import/cloexec.c: Update.
1517 * gnulib/import/cloexec.h: Update.
1518 * gnulib/import/close.c: Update.
1519 * gnulib/import/closedir.c: Update.
1520 * gnulib/import/config.charset: Update.
1521 * gnulib/import/dirent-private.h: Update.
1522 * gnulib/import/dirent.in.h: Update.
1523 * gnulib/import/dirfd.c: Update.
1524 * gnulib/import/dirname-lgpl.c: Update.
1525 * gnulib/import/dirname.h: Update.
1526 * gnulib/import/dosname.h: Update.
1527 * gnulib/import/dup-safer-flag.c: Update.
1528 * gnulib/import/dup-safer.c: Update.
1529 * gnulib/import/dup.c: Update.
1530 * gnulib/import/dup2.c: Update.
1531 * gnulib/import/errno.in.h: Update.
1532 * gnulib/import/error.c: Update.
1533 * gnulib/import/error.h: Update.
1534 * gnulib/import/exitfail.c: Update.
1535 * gnulib/import/exitfail.h: Update.
1536 * gnulib/import/extra/update-copyright: Update.
1537 * gnulib/import/fchdir.c: Update.
1538 * gnulib/import/fcntl.c: Update.
1539 * gnulib/import/fcntl.in.h: Update.
1540 * gnulib/import/fd-hook.c: Update.
1541 * gnulib/import/fd-hook.h: Update.
1542 * gnulib/import/fd-safer-flag.c: Update.
1543 * gnulib/import/fd-safer.c: Update.
1544 * gnulib/import/fdopendir.c: Update.
1545 * gnulib/import/filename.h: Update.
1546 * gnulib/import/filenamecat-lgpl.c: Update.
1547 * gnulib/import/filenamecat.h: Update.
1548 * gnulib/import/flexmember.h: Update.
1549 * gnulib/import/float+.h: Update.
1550 * gnulib/import/float.c: Update.
1551 * gnulib/import/float.in.h: Update.
1552 * gnulib/import/fnmatch.c: Update.
1553 * gnulib/import/fnmatch.in.h: Update.
1554 * gnulib/import/fnmatch_loop.c: Update.
1555 * gnulib/import/fpucw.h: Update.
1556 * gnulib/import/frexp.c: Update.
1557 * gnulib/import/frexpl.c: Update.
1558 * gnulib/import/fstat.c: Update.
1559 * gnulib/import/fstatat.c: Update.
1560 * gnulib/import/getcwd-lgpl.c: Update.
1561 * gnulib/import/getcwd.c: Update.
1562 * gnulib/import/getdtablesize.c: Update.
1563 * gnulib/import/getlogin_r.c: Update.
1564 * gnulib/import/getprogname.c: Update.
1565 * gnulib/import/getprogname.h: Update.
1566 * gnulib/import/gettext.h: Update.
1567 * gnulib/import/gettimeofday.c: Update.
1568 * gnulib/import/glob-libc.h: Update.
1569 * gnulib/import/glob.c: Update.
1570 * gnulib/import/glob.in.h: Update.
1571 * gnulib/import/glob_internal.h: Update.
1572 * gnulib/import/glob_pattern_p.c: Update.
1573 * gnulib/import/globfree.c: Update.
1574 * gnulib/import/hard-locale.c: Update.
1575 * gnulib/import/hard-locale.h: Update.
1576 * gnulib/import/intprops.h: Update.
1577 * gnulib/import/inttypes.in.h: Update.
1578 * gnulib/import/isnan.c: Update.
1579 * gnulib/import/isnand-nolibm.h: Update.
1580 * gnulib/import/isnand.c: Update.
1581 * gnulib/import/isnanl-nolibm.h: Update.
1582 * gnulib/import/isnanl.c: Update.
1583 * gnulib/import/itold.c: Update.
1584 * gnulib/import/libc-config.h: Update.
1585 * gnulib/import/limits.in.h: Update.
1586 * gnulib/import/localcharset.c: Update.
1587 * gnulib/import/localcharset.h: Update.
1588 * gnulib/import/localtime-buffer.c: Update.
1589 * gnulib/import/localtime-buffer.h: Update.
1590 * gnulib/import/lstat.c: Update.
1591 * gnulib/import/m4/00gnulib.m4: Update.
1592 * gnulib/import/m4/__inline.m4: Update.
1593 * gnulib/import/m4/absolute-header.m4: Update.
1594 * gnulib/import/m4/alloca.m4: Update.
1595 * gnulib/import/m4/builtin-expect.m4: Update.
1596 * gnulib/import/m4/canonicalize.m4: Update.
1597 * gnulib/import/m4/chdir-long.m4: Update.
1598 * gnulib/import/m4/close.m4: Update.
1599 * gnulib/import/m4/closedir.m4: Update.
1600 * gnulib/import/m4/configmake.m4: Update.
1601 * gnulib/import/m4/d-ino.m4: Update.
1602 * gnulib/import/m4/d-type.m4: Update.
1603 * gnulib/import/m4/dirent_h.m4: Update.
1604 * gnulib/import/m4/dirfd.m4: Update.
1605 * gnulib/import/m4/dirname.m4: Update.
1606 * gnulib/import/m4/double-slash-root.m4: Update.
1607 * gnulib/import/m4/dup.m4: Update.
1608 * gnulib/import/m4/dup2.m4: Update.
1609 * gnulib/import/m4/eealloc.m4: Update.
1610 * gnulib/import/m4/environ.m4: Update.
1611 * gnulib/import/m4/errno_h.m4: Update.
1612 * gnulib/import/m4/error.m4: Update.
1613 * gnulib/import/m4/exponentd.m4: Update.
1614 * gnulib/import/m4/exponentl.m4: Update.
1615 * gnulib/import/m4/extensions.m4: Update.
1616 * gnulib/import/m4/extern-inline.m4: Update.
1617 * gnulib/import/m4/fchdir.m4: Update.
1618 * gnulib/import/m4/fcntl-o.m4: Update.
1619 * gnulib/import/m4/fcntl.m4: Update.
1620 * gnulib/import/m4/fcntl_h.m4: Update.
1621 * gnulib/import/m4/fdopendir.m4: Update.
1622 * gnulib/import/m4/filenamecat.m4: Update.
1623 * gnulib/import/m4/flexmember.m4: Update.
1624 * gnulib/import/m4/float_h.m4: Update.
1625 * gnulib/import/m4/fnmatch.m4: Update.
1626 * gnulib/import/m4/fnmatch_h.m4: Update.
1627 * gnulib/import/m4/fpieee.m4: Update.
1628 * gnulib/import/m4/frexp.m4: Update.
1629 * gnulib/import/m4/frexpl.m4: Update.
1630 * gnulib/import/m4/fstat.m4: Update.
1631 * gnulib/import/m4/fstatat.m4: Update.
1632 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
1633 * gnulib/import/m4/getcwd-path-max.m4: Update.
1634 * gnulib/import/m4/getcwd.m4: Update.
1635 * gnulib/import/m4/getdtablesize.m4: Update.
1636 * gnulib/import/m4/getlogin.m4: Update.
1637 * gnulib/import/m4/getlogin_r.m4: Update.
1638 * gnulib/import/m4/getpagesize.m4: Update.
1639 * gnulib/import/m4/getprogname.m4: Update.
1640 * gnulib/import/m4/gettimeofday.m4: Update.
1641 * gnulib/import/m4/glibc21.m4: Update.
1642 * gnulib/import/m4/glob.m4: Update.
1643 * gnulib/import/m4/glob_h.m4: Update.
1644 * gnulib/import/m4/gnulib-cache.m4: Update.
1645 * gnulib/import/m4/gnulib-common.m4: Update.
1646 * gnulib/import/m4/gnulib-comp.m4: Update.
1647 * gnulib/import/m4/gnulib-tool.m4: Update.
1648 * gnulib/import/m4/hard-locale.m4: Update.
1649 * gnulib/import/m4/include_next.m4: Update.
1650 * gnulib/import/m4/inttypes-pri.m4: Update.
1651 * gnulib/import/m4/inttypes.m4: Update.
1652 * gnulib/import/m4/isnand.m4: Update.
1653 * gnulib/import/m4/isnanl.m4: Update.
1654 * gnulib/import/m4/largefile.m4: Update.
1655 * gnulib/import/m4/limits-h.m4: Update.
1656 * gnulib/import/m4/localcharset.m4: Update.
1657 * gnulib/import/m4/locale-fr.m4: Update.
1658 * gnulib/import/m4/locale-ja.m4: Update.
1659 * gnulib/import/m4/locale-zh.m4: Update.
1660 * gnulib/import/m4/localtime-buffer.m4: Update.
1661 * gnulib/import/m4/longlong.m4: Update.
1662 * gnulib/import/m4/lstat.m4: Update.
1663 * gnulib/import/m4/malloc.m4: Update.
1664 * gnulib/import/m4/malloca.m4: Update.
1665 * gnulib/import/m4/math_h.m4: Update.
1666 * gnulib/import/m4/mbrtowc.m4: Update.
1667 * gnulib/import/m4/mbsinit.m4: Update.
1668 * gnulib/import/m4/mbsrtowcs.m4: Update.
1669 * gnulib/import/m4/mbstate_t.m4: Update.
1670 * gnulib/import/m4/memchr.m4: Update.
1671 * gnulib/import/m4/memmem.m4: Update.
1672 * gnulib/import/m4/mempcpy.m4: Update.
1673 * gnulib/import/m4/memrchr.m4: Update.
1674 * gnulib/import/m4/mkdir.m4: Update.
1675 * gnulib/import/m4/mkstemp.m4: Update.
1676 * gnulib/import/m4/mmap-anon.m4: Update.
1677 * gnulib/import/m4/mode_t.m4: Update.
1678 * gnulib/import/m4/msvc-inval.m4: Update.
1679 * gnulib/import/m4/msvc-nothrow.m4: Update.
1680 * gnulib/import/m4/multiarch.m4: Update.
1681 * gnulib/import/m4/nocrash.m4: Update.
1682 * gnulib/import/m4/off_t.m4: Update.
1683 * gnulib/import/m4/onceonly.m4: Update.
1684 * gnulib/import/m4/open-cloexec.m4: Update.
1685 * gnulib/import/m4/open.m4: Update.
1686 * gnulib/import/m4/openat.m4: Update.
1687 * gnulib/import/m4/opendir.m4: Update.
1688 * gnulib/import/m4/pathmax.m4: Update.
1689 * gnulib/import/m4/rawmemchr.m4: Update.
1690 * gnulib/import/m4/readdir.m4: Update.
1691 * gnulib/import/m4/readlink.m4: Update.
1692 * gnulib/import/m4/realloc.m4: Update.
1693 * gnulib/import/m4/rename.m4: Update.
1694 * gnulib/import/m4/rewinddir.m4: Update.
1695 * gnulib/import/m4/rmdir.m4: Update.
1696 * gnulib/import/m4/save-cwd.m4: Update.
1697 * gnulib/import/m4/secure_getenv.m4: Update.
1698 * gnulib/import/m4/setenv.m4: Update.
1699 * gnulib/import/m4/signal_h.m4: Update.
1700 * gnulib/import/m4/ssize_t.m4: Update.
1701 * gnulib/import/m4/stat-time.m4: Update.
1702 * gnulib/import/m4/stat.m4: Update.
1703 * gnulib/import/m4/std-gnu11.m4: Update.
1704 * gnulib/import/m4/stdbool.m4: Update.
1705 * gnulib/import/m4/stddef_h.m4: Update.
1706 * gnulib/import/m4/stdint.m4: Update.
1707 * gnulib/import/m4/stdio_h.m4: Update.
1708 * gnulib/import/m4/stdlib_h.m4: Update.
1709 * gnulib/import/m4/strchrnul.m4: Update.
1710 * gnulib/import/m4/strdup.m4: Update.
1711 * gnulib/import/m4/strerror.m4: Update.
1712 * gnulib/import/m4/string_h.m4: Update.
1713 * gnulib/import/m4/strstr.m4: Update.
1714 * gnulib/import/m4/strtok_r.m4: Update.
1715 * gnulib/import/m4/sys_socket_h.m4: Update.
1716 * gnulib/import/m4/sys_stat_h.m4: Update.
1717 * gnulib/import/m4/sys_time_h.m4: Update.
1718 * gnulib/import/m4/sys_types_h.m4: Update.
1719 * gnulib/import/m4/tempname.m4: Update.
1720 * gnulib/import/m4/time_h.m4: Update.
1721 * gnulib/import/m4/unistd-safer.m4: Update.
1722 * gnulib/import/m4/unistd_h.m4: Update.
1723 * gnulib/import/m4/warn-on-use.m4: Update.
1724 * gnulib/import/m4/wchar_h.m4: Update.
1725 * gnulib/import/m4/wchar_t.m4: Update.
1726 * gnulib/import/m4/wctype_h.m4: Update.
1727 * gnulib/import/m4/wint_t.m4: Update.
1728 * gnulib/import/malloc.c: Update.
1729 * gnulib/import/malloc/scratch_buffer.h: Update.
1730 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
1731 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
1732 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
1733 * gnulib/import/malloca.c: Update.
1734 * gnulib/import/malloca.h: Update.
1735 * gnulib/import/malloca.valgrind: Update.
1736 * gnulib/import/math.in.h: Update.
1737 * gnulib/import/mbrtowc.c: Update.
1738 * gnulib/import/mbsinit.c: Update.
1739 * gnulib/import/mbsrtowcs-impl.h: Update.
1740 * gnulib/import/mbsrtowcs-state.c: Update.
1741 * gnulib/import/mbsrtowcs.c: Update.
1742 * gnulib/import/memchr.c: Update.
1743 * gnulib/import/memmem.c: Update.
1744 * gnulib/import/mempcpy.c: Update.
1745 * gnulib/import/memrchr.c: Update.
1746 * gnulib/import/mkdir.c: Update.
1747 * gnulib/import/mkstemp.c: Update.
1748 * gnulib/import/msvc-inval.c: Update.
1749 * gnulib/import/msvc-inval.h: Update.
1750 * gnulib/import/msvc-nothrow.c: Update.
1751 * gnulib/import/msvc-nothrow.h: Update.
1752 * gnulib/import/open.c: Update.
1753 * gnulib/import/openat-die.c: Update.
1754 * gnulib/import/openat-priv.h: Update.
1755 * gnulib/import/openat-proc.c: Update.
1756 * gnulib/import/openat.c: Update.
1757 * gnulib/import/openat.h: Update.
1758 * gnulib/import/opendir.c: Update.
1759 * gnulib/import/pathmax.h: Update.
1760 * gnulib/import/pipe-safer.c: Update.
1761 * gnulib/import/rawmemchr.c: Update.
1762 * gnulib/import/readdir.c: Update.
1763 * gnulib/import/readlink.c: Update.
1764 * gnulib/import/realloc.c: Update.
1765 * gnulib/import/ref-add.sin: Update.
1766 * gnulib/import/ref-del.sin: Update.
1767 * gnulib/import/rename.c: Update.
1768 * gnulib/import/rewinddir.c: Update.
1769 * gnulib/import/rmdir.c: Update.
1770 * gnulib/import/same-inode.h: Update.
1771 * gnulib/import/save-cwd.c: Update.
1772 * gnulib/import/save-cwd.h: Update.
1773 * gnulib/import/scratch_buffer.h: Update.
1774 * gnulib/import/secure_getenv.c: Update.
1775 * gnulib/import/setenv.c: Update.
1776 * gnulib/import/signal.in.h: Update.
1777 * gnulib/import/stat-time.c: Update.
1778 * gnulib/import/stat-time.h: Update.
1779 * gnulib/import/stat-w32.c: Update.
1780 * gnulib/import/stat-w32.h: Update.
1781 * gnulib/import/stat.c: Update.
1782 * gnulib/import/stdbool.in.h: Update.
1783 * gnulib/import/stddef.in.h: Update.
1784 * gnulib/import/stdint.in.h: Update.
1785 * gnulib/import/stdio.in.h: Update.
1786 * gnulib/import/stdlib.in.h: Update.
1787 * gnulib/import/str-two-way.h: Update.
1788 * gnulib/import/strchrnul.c: Update.
1789 * gnulib/import/strdup.c: Update.
1790 * gnulib/import/streq.h: Update.
1791 * gnulib/import/strerror-override.c: Update.
1792 * gnulib/import/strerror-override.h: Update.
1793 * gnulib/import/strerror.c: Update.
1794 * gnulib/import/string.in.h: Update.
1795 * gnulib/import/stripslash.c: Update.
1796 * gnulib/import/strnlen1.c: Update.
1797 * gnulib/import/strnlen1.h: Update.
1798 * gnulib/import/strstr.c: Update.
1799 * gnulib/import/strtok_r.c: Update.
1800 * gnulib/import/sys_stat.in.h: Update.
1801 * gnulib/import/sys_time.in.h: Update.
1802 * gnulib/import/sys_types.in.h: Update.
1803 * gnulib/import/tempname.c: Update.
1804 * gnulib/import/tempname.h: Update.
1805 * gnulib/import/time.in.h: Update.
1806 * gnulib/import/unistd--.h: Update.
1807 * gnulib/import/unistd-safer.h: Update.
1808 * gnulib/import/unistd.in.h: Update.
1809 * gnulib/import/unsetenv.c: Update.
1810 * gnulib/import/verify.h: Update.
1811 * gnulib/import/extra/snippet/warn-on-use.h: Update.
1812 * gnulib/import/wchar.in.h: Update.
1813 * gnulib/import/wctype.in.h: Update.
1814 * gnulib/import/xalloc-oversized.h: Update.
1815 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
1816 "53e2c179f26a890fa6685af4b6c1397ee370433b".
1818 2018-09-10 Simon Marchi <simon.marchi@ericsson.com>
1820 * record-btrace.c (get_thread_current_frame): Remove
1823 2018-09-10 Jerome Guitton <guitton@adacore.com>
1825 * ada-lang.c (ada_value_struct_elt): Call ada_to_fixed_type
1826 with check_tag to 1 if and only if the type is tagged and the
1827 component being searched cannot been found in the current
1828 view. Otherwise, always call ada_to_fixed_type with
1831 2018-09-10 Xavier Roirand <roirand@adacore.com>
1833 * ada-lang.c (ada_is_access_to_unconstrained_array): Remove static
1835 * ada-lang.h: add ada_is_access_to_unconstrained_array prototype.
1836 * ada-varobj.c (ada_varobj_get_number_of_children,
1837 ada_varobj_describe_child, ada_value_is_changeable_p): Cleanup code.
1839 2018-09-10 Xavier Roirand <roirand@adacore.com>
1841 * ada-valprint.c (ada_value_print): Use type instead of
1844 2018-09-10 Xavier Roirand <roirand@adacore.com>
1846 * ada-lang.c (ada_value_subscript): Handle case when parameter is
1847 an array of access to unconstrained array.
1849 2018-09-10 Xavier Roirand <roirand@adacore.com>
1851 * ada-lang.c (ada_is_access_to_unconstrained_array): New function.
1852 (ada_check_typedef): Use it.
1854 2018-09-10 Xavier Roirand <roirand@adacore.com>
1856 * ada-varobj.c (ada_varobj_describe_struct_child)
1857 (ada_varobj_describe_child): Handle union case like struct one.
1859 2018-09-10 Tom Tromey <tom@tromey.com>
1862 * python/python.c (_initialize_python): Make example in "python"
1863 help work in Python 3.
1865 2018-09-10 Eli Zaretskii <eliz@gnu.org>
1867 * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of
1868 INSTALL_PROGRAM to install gdb-add-index.sh. Don't append
1869 $(EXEEXT) to the script, as it is not a program.
1871 2018-09-09 Simon Marchi <simon.marchi@ericsson.com>
1873 * python/py-prettyprint.c (pretty_print_one_value): Return
1875 (print_string_repr): Adjust.
1876 (apply_varobj_pretty_printer): Return gdbpy_ref<>.
1877 * python/python-internal.h (apply_varobj_pretty_printer): Return
1879 * varobj.c (varobj_value_get_print_value): Adjust.
1881 2018-09-08 Tom Tromey <tom@tromey.com>
1884 * python/py-prettyprint.c (pretty_print_one_value): Check for
1887 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1889 * ada-lang.c (resolve_subexp): Pass correct OPLEN in call to
1890 replace_operator_with_call.
1892 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1894 * ada-lang.c (ada_value_cast): Remove unnecessary parentheses.
1896 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1898 * ada-typeprint.c (print_range): Print the bounds using TYPE
1899 rather than its TYPE_TARGET_TYPE.
1901 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1903 * ada-lang.c (ada_to_fixed_value): Minor reformatting in
1904 call to ada_to_fixed_value_create.
1906 2018-09-08 Jerome Guitton <guitton@adacore.com>
1908 * ada-lang.c (ada_decode): strip dot prefix in symbol name.
1910 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1912 * ada-lang.c (ada_exception_sal): Replace gdb_assert calls
1915 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1917 * ada-lang.c (ada_unhandled_exception_name_addr_from_raise):
1918 Move update of loop variable "fi".
1920 2018-09-08 Joel Brobecker <brobecker@adacore.com>
1922 * ada-lang.c (value_assign_to_component): In the case of
1923 big-endian targets, extract the bits of the given VAL
1924 using an src_offset of zero if container is not a scalar.
1926 2018-09-06 Simon Ser <contact@emersion.fr>
1929 * fbsd-nat.c (fbsd_nat_target::xfer_partial): Add support for
1930 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1931 * fbsd-tdep.c (fbsd_make_note_desc): New.
1932 (fbsd_make_corefile_notes): Write NT_PROCSTAT_AUXV,
1933 NT_PROCSTAT_VMMAP and NT_PROCSTAT_PS_STRINGS notes.
1934 * target.h (enum target_object) Add FreeBSD-specific
1935 TARGET_OBJECT_FREEBSD_VMMAP and TARGET_OBJECT_FREEBSD_PS_STRINGS.
1937 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1939 * compile/compile-c.h (generate_c_for_variable_locations):
1940 Change reference to pointer.
1941 * compile/compile-c-support.c (compile_program) <compute>:
1943 * compile/compile-c-symbols.c (generate_vla_size): Likewise.
1944 (generate_c_for_for_one_variable): Likewise
1945 (generate_c_for_variable_locations): Likewise
1946 * compile/compile-c-types.c (compile_c_instance::convert_type):
1948 * compile/compile-cplus-symbols.c (convert_one_symbol):
1949 std::move the scope passed to enter_scope.
1950 * compile/compile-cplus-types.c
1951 (compile_cplus_instance::enter_scope): Make parameter
1953 (compile_cplus_instance::new_scope): Change reference to
1955 (compile_cplus_instance::convert_type): Likewise
1956 (compile_cplus_convert_typedef): std::move the scope passed to
1958 (compile_cplus_convert_struct_or_union): Likewise.
1959 (compile_cplus_convert_enum): Likewise.
1960 (compile_cplus_convert_namespace): Likewise.
1961 * compile/compile-cplus.h (compile_cplus_instance)
1962 <enter_scope>: Make parameter rvalue-reference.
1963 * compile/compile-internal.h (compile_instance)
1964 <get_cached_type>: Likewise
1965 * compile/compile-loc2c.c (push): Likewise
1969 (print_label): Likewise
1970 (pushf_register_address): Likewise
1971 (pushf_register): Likewise
1972 (do_compile_dwarf_expr_to_c): Likewise
1973 (compile_dwarf_expr_to_c): Likewise
1974 (compile_dwarf_bounds_to_c): Likewise
1975 * compile/compile.c (compile_instance::get_cached_type):
1977 * compile/compile.h (compile_dwarf_expr_to_c): Likewise.
1978 (compile_dwarf_bounds_to_c): Likewise
1979 * dwarf2loc.c (locexpr_generate_c_location): Likewise.
1980 (dwarf2_compile_property_to_c): Likewise
1981 * dwarf2loc.h (dwarf2_compile_property_to_c): Likewise
1982 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1985 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1987 * tui/tui-data.h (struct tui_win_element) <highlight>: Remove.
1988 * tui/tui-data.c (init_content_element): Don't initialize it.
1990 2018-09-06 Simon Marchi <simon.marchi@ericsson.com>
1992 * tui/tui-data.h (struct tui_win_info)
1993 <detail::opaque>: Remove.
1994 * tui/tui-data.c (init_win_info): Remove assignment.
1996 2018-09-05 Tom Tromey <tom@tromey.com>
1998 * warning.m4 (AM_GDB_WARNINGS): Add -Wformat when testing
1999 -Wformat-nonliteral.
2000 * target-float.c (host_float_ops<T>::to_string)
2001 (host_float_ops<T>::from_string): Use
2002 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2003 * configure: Rebuild.
2005 2018-09-05 Simon Marchi <simon.marchi@ericsson.com>
2007 * printcmd.c (printf_c_string): Use
2008 DIAGNOSTIC_IGNORE_FORMAT_NONLITERAL.
2009 (printf_wide_c_string, printf_pointer, ui_printf): Likewise.
2011 2018-09-05 Tom Tromey <tom@tromey.com>
2013 * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
2015 2018-09-05 Tom de Vries <tdevries@suse.de>
2017 * dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
2018 with resolve_abstract_p == true.
2019 (indirect_synthetic_pointer): Add resolve_abstract_p parameter,
2020 defaulting to false. Propagate resolve_abstract_p to
2021 dwarf2_fetch_die_loc_sect_off.
2022 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Add resolve_abstract_p
2023 parameter, defaulting to false.
2024 * dwarf2read.c (read_variable): Add variable to abstract_to_concrete.
2025 (dwarf2_fetch_die_loc_sect_off): Add and handle resolve_abstract_p
2027 * dwarf2read.h (struct die_info): Forward-declare.
2028 (die_info_ptr): New typedef.
2029 (struct dwarf2_per_objfile): Add abstract_to_concrete field.
2031 2018-09-05 Joel Brobecker <brobecker@adacore.com>
2035 2018-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2036 Pedro Alves <palves@redhat.com>
2038 * gnulib/Makefile.in (aclocal_m4_deps): Move to
2039 "aclocal-m4-deps.mk". Include file here.
2040 $(srcdir)/aclocal.m4: Add "configure.ac".
2041 * gnulib/aclocal-m4-deps.mk: New file.
2042 * gnulib/update-gnulib.sh: Automatically update
2043 "aclocal-m4-deps.mk".
2045 2018-09-04 Tom Tromey <tom@tromey.com>
2047 * configure: Rebuild.
2048 * configure.ac: Remove multi-ice code.
2050 2018-09-04 Tom Tromey <tom@tromey.com>
2052 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS): Remove.
2053 (ada-exp.o): Update.
2055 2018-09-04 Tom Tromey <tom@tromey.com>
2057 * Makefile.in (printcmd.o, target-float.o): Remove.
2058 (GDB_WARN_CFLAGS_NO_FORMAT): Remove.
2060 2018-09-04 Tom Tromey <tom@tromey.com>
2062 * gnulib/Makefile.in: Remove obsolete comment.
2063 * Makefile.in: Remove obsolete comment.
2065 2018-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2067 * riscv-tdep.c (riscv_frame_cache): Fix ARI warning, don't end a
2070 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2072 * riscv-tdep.c: Add 'prologue-value.h' include.
2073 (struct riscv_unwind_cache): New struct.
2074 (riscv_debug_unwinder): New global.
2075 (riscv_scan_prologue): Update arguments, capture register details
2077 (riscv_skip_prologue): Reformat arguments line, move end of
2078 prologue calculation into riscv_scan_prologue.
2079 (riscv_frame_cache): Update return type, create
2080 riscv_unwind_cache, scan the prologue, and fill in remaining cache
2082 (riscv_frame_this_id): Use frame id computed in riscv_frame_cache.
2083 (riscv_frame_prev_register): Use the trad_frame within the
2085 (_initialize_riscv_tdep): Add 'set/show debug riscv unwinder'
2088 2018-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2090 * trad-frame.h (trad_frame_set_realreg): Declare.
2091 (trad_frame_set_addr): Declare.
2092 * trad-frame.c (trad_frame_set_realreg): Define new function.
2093 (trad_frame_set_addr): Define new function.
2094 (trad_frame_set_reg_realreg): Use new function.
2095 (trad_frame_set_reg_addr): Use new function.
2097 2018-09-01 Keith Seitz <keiths@redhat.com>
2099 * compile/compile-cplus-types.c (compile_cplus_debug_output_1): Use
2100 pulongest instead of "%lld".
2101 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol): Remove
2104 2018-08-31 Tom Tromey <tom@tromey.com>
2106 * dwarf2read.c (dwarf2_add_field): Set the TYPE_LENGTH of the
2109 2018-08-31 Pedro Alves <palves@redhat.com>
2111 * gdbarch.h: Regenerate.
2113 2018-08-31 Pedro Alves <palves@redhat.com>
2115 * gdbarch.sh (have_nonsteppable_watchpoint): Add comment.
2116 * target.h (Hardware watchpoint interfaces): Describe
2117 continuable/steppable/non-steppable watchpoints.
2118 * gdbarch.h, gdbarch.c: Regenerate.
2120 2018-08-31 Pedro Alves <palves@redhat.com>
2122 * nto-procfs.c (nto_procfs_target::have_continuable_watchpoint):
2125 (s390_linux_nat_target::have_continuable_watchpoint): Delete.
2126 * target.h (target_ops::have_continuable_watchpoint): Delete.
2127 (target_have_continuable_watchpoint): Delete.
2128 * x86-nat.h (x86_nat_target::have_continuable_watchpoint): Delete.
2129 * target-delegates.c: Regenerate.
2131 2018-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
2133 * gnulib/Makefile.in (aclocal_m4_deps): Update according to
2134 the files present in "gnulib/import/m4/".
2136 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2138 * riscv-tdep.c (riscv_insn::decode): Decode c.addi4spn, c.sd,
2139 c.sw, c.swsp, and c.sdsp.
2141 2018-08-30 Andrew Burgess <andrew.burgess@embecosm.com>
2143 * riscv-tdep.c (struct riscv_inferior_data): Delete.
2144 (riscv_read_misa_reg): Don't cache value read into inferior data.
2145 (riscv_new_inferior_data): Delete.
2146 (riscv_inferior_data_cleanup): Delete.
2147 (riscv_inferior_data): Delete.
2148 (riscv_invalidate_inferior_data): Delete.
2149 (_initialize_riscv_tdep): Remove initialisation of inferior data.
2151 2018-08-30 Simon Marchi <simon.marchi@ericsson.com>
2153 * compile/compile-cplus-types.c
2154 (compile_cplus_instance::leave_scope): Take the address of scope
2156 (compile_cplus_instance::convert_qualified_base): Compare quals
2159 2018-08-30 Keith Seitz <keiths@redhat.com>
2161 * compile/compile-cplus-types.c (compile_cplus_instance::enter_scope):
2162 Use "%s" and host_address_to_string instead of "%p" in printf.
2164 2018-08-29 Keith Seitz <keiths@redhat.com>
2166 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Add compile-cplus-symbols.c
2167 and compile-cplus-types.c.
2168 (HFILES_NO_SRCDIR): Add gcc-cp-plugin.h.
2169 * c-lang.c (cplus_language_defn): Set C++ compile functions.
2170 * c-lang.h (cplus_get_compile_context, cplus_compute_program):
2172 * compile/compile-c-support.c: Include compile-cplus.h.
2173 (load_libcompile): Templatize.
2174 (get_compile_context): "New" function.
2175 (c_get_compile_context): Use get_compile_context.
2176 (cplus_get_compile_context): New function.
2177 (cplus_push_user_expression, cplus_pop_user_expression)
2178 (cplus_add_code_header, cplus_add_input, cplus_compile_program)
2179 (cplus_compute_program): Define new structs/functions.
2180 * compile/compile-cplus-symmbols.c: New file.
2181 * compile/compile-cplus-types.c: New file.
2182 * compile/compile-cplus.h: New file.
2183 * compile/compile-internal.h (debug_compile_oracle, GCC_TYPE_NONE):
2185 * compile/compile-object-load.c (get_out_value_type): Use
2186 strncmp_iw when comparing symbol names.
2187 (compile_object_load): Add mst_bss and mst_data.
2188 * compile/compile.c (_initialize_compile): Remove
2189 -Wno-implicit-function-declaration from `compile_args'.
2190 * compile/gcc-cp-plugin.h: New file.
2191 * NEWS: Mention C++ compile support and new debug options.
2193 2018-08-29 Keith Seitz <keiths@redhat.com>
2195 * linespec.c (collect_info::add_symbol): Make virtual.
2196 (struct symbol_searcher_collect_info): New struct.
2197 (symbol_searcher::find_all_symbols): New method.
2198 * symtab.h (class symbol_searcher): New class.
2200 2018-08-29 Keith Seitz <keiths@redhat.com>
2202 * linespec.c (struct linespec) <function_symbols, label_symbols>:
2203 Change to vector of block_symbol. Update all users.
2204 (struct collect_info) <symbols>: Likewise.
2205 (collect_info::add_symbol): Take block_symbol as argument.
2207 (decode_compound_collector) <m_symbols>: Change type to vector
2208 of block_symbol. Update all users.
2209 (decode_compound_collector::operator ()): Change parameter type
2211 (find_method, find_function_symbols, find_linespec_symbols)
2212 (find_label_symbols_in_block, find_label_symbols): Change symbol
2213 vectors to block_symbol vectors.
2214 * symtab.h (symbol_found_callback_ftype): Change parameter type to
2217 2018-08-29 Keith Seitz <keiths@redhat.com>
2219 * linespec.c (symbolp): Remove typedef and VEC definitions.
2220 (bound_minimal_symbol_d): Likewise.
2222 2018-08-29 Keith Seitz <keiths@redhat.com>
2224 * linespec.c (decode_compound_collector::decode_compound_collector):
2225 Remove initialization for `m_symtabs'.
2226 (decode_compound_collector::release_symbols): Change return type
2227 to std::vector. Update all callers.
2228 (class decode_compound_collector) <m_symbols>: Change type to
2230 (lookup_prefix_sym): Change return type to std::vector. Update all
2232 (compare_symbols): Remove.
2233 (std_compare_symbols): Rename to `compare_symbols'.
2234 (find_method): Change `sym_classes' parameter to std::vector.
2235 Update all callers. Use std::sort to sort sym_classes.
2236 (find_linespec_symbols): Remove cleanup.
2238 2018-08-29 Keith Seitz <keiths@redhat.com>
2240 * linespec.c (struct linespec) <minimal_symbols>: Change type to
2241 std::vector. Update all users.
2242 (convert_linespec_to_sals): Use std::sort to sort minimal symbols.
2243 (struct collect_info) <minimal_symbols>: Likewise.
2244 (compare_msymbols): Return bool. Change parameters to const
2245 bound_minimal_symbol references.
2246 (find_method, find_function_symbols, find_linespec_symbols): Change
2247 `minsyms' parameter to std::vector. Update all callers.
2249 2018-08-29 Keith Seitz <keiths@redhat.com>
2251 * linespec.c (struct linespec) <label_symbols>: Change type to
2252 std::vector. Update all users.
2253 (find_label_symbols_in_block): Change `result' parameter to
2254 std::vector. Update all callers.
2255 (find_label_symbols): Return std::vector. Update all callers.
2257 2018-08-29 Keith Seitz <keiths@redhat.com>
2259 * linespec.c (struct linespec) <function_symbols>: Change type to
2260 std::vector. Update all users.
2261 (struct collect_info) <function_symbols>: Likewise.
2262 (convert_linespec_to_sals): Use std::sort to sort function_symbols.
2263 (std_compare_symbols): New function.
2264 (find_method, find_function_symbols, find_linespec_symbols)
2265 (find_label_symbols_in_block): Change `symbols' parameter to
2266 std::vector. Update all callers.
2267 (find_label_symbols): Likewise for `function_symbols' and
2270 2018-08-29 Keith Seitz <keiths@redhat.com>
2272 * linespec.c (symtab_vector_up): Define.
2273 (struct linespec) <file_symtabs>: Change type to std::vector *.
2275 (struct collect_info) <file_symtabs>: Likewise.
2276 (collect_symtabs_from_filename): Return symtab_vector_up.
2278 (decode_objc): Remove cleanup.
2279 (symtab_collector::symtab_collector): Initialize `m_symtabs'.
2280 (symtab_collector::release_symtabs): Return symtab_vector_up.
2282 (class symtab_collector) <m_symtabs>: Change type to symtab_vector_up.
2284 (collect_symtabs_from_filename, symtabs_from_filename): Return
2285 symtab_vector_up. Update all callers.
2287 2018-08-29 Tom Tromey <tom@tromey.com>
2289 * csky-tdep.c (csky_analyze_prologue): Use
2290 core_addr_to_string_nz.
2292 2018-08-29 Tom Tromey <tom@tromey.com>
2294 * windows-nat.c (struct xlate_exception) <them>: Change type to
2296 (xlate): Fix formatting. Remove last entry.
2297 (struct xlate_exception, xlate): Comment out.
2298 (windows_nat_target::resume): Use ranged for.
2300 2018-08-29 Jim Wilson <jimw@sifive.com>
2302 * riscv-linux-nat.c: Include elf/common.h instead of elf.h.
2303 (riscv_linux_nat_target::fetch_registers): Use NT_FPREGSET instead
2305 (riscv_linux_nat_target::store_registers): Likewise.
2307 2018-08-29 Sergio Durigan Junior <sergiodj@redhat.com>
2311 * gnulib/aclocal.m4: Regenerate.
2312 * gnulib/config.in: Regenerate.
2313 * gnulib/configure: Regenerate.
2314 * gnulib/import/Makefile.am: Update.
2315 * gnulib/import/Makefile.in: Update.
2316 * gnulib/import/extra/snippet/_Noreturn.h: Rename to...
2317 * gnulib/import/_Noreturn.h: ... this.
2318 * gnulib/import/alloca.in.h: Update.
2319 * gnulib/import/extra/snippet/arg-nonnull.h: Rename to...
2320 * gnulib/import/arg-nonnull.h: ... this.
2321 * gnulib/import/assure.h: Update.
2322 * gnulib/import/at-func.c: Update.
2323 * gnulib/import/basename-lgpl.c: Update.
2324 * gnulib/import/extra/snippet/c++defs.h: Rename to...
2325 * gnulib/import/c++defs.h: ... this.
2326 * gnulib/import/canonicalize-lgpl.c: Update.
2327 * gnulib/import/cdefs.h: Update.
2328 * gnulib/import/chdir-long.c: Update.
2329 * gnulib/import/chdir-long.h: Update.
2330 * gnulib/import/cloexec.c: Update.
2331 * gnulib/import/cloexec.h: Update.
2332 * gnulib/import/close.c: Update.
2333 * gnulib/import/closedir.c: Update.
2334 * gnulib/import/config.charset: Update.
2335 * gnulib/import/dirent-private.h: Update.
2336 * gnulib/import/dirent.in.h: Update.
2337 * gnulib/import/dirfd.c: Update.
2338 * gnulib/import/dirname-lgpl.c: Update.
2339 * gnulib/import/dirname.h: Update.
2340 * gnulib/import/dosname.h: Update.
2341 * gnulib/import/dup-safer-flag.c: Update.
2342 * gnulib/import/dup-safer.c: Update.
2343 * gnulib/import/dup.c: Update.
2344 * gnulib/import/dup2.c: Update.
2345 * gnulib/import/errno.in.h: Update.
2346 * gnulib/import/error.c: Update.
2347 * gnulib/import/error.h: Update.
2348 * gnulib/import/exitfail.c: Update.
2349 * gnulib/import/exitfail.h: Update.
2350 * gnulib/import/extra/update-copyright: Update.
2351 * gnulib/import/fchdir.c: Update.
2352 * gnulib/import/fcntl.c: Update.
2353 * gnulib/import/fcntl.in.h: Update.
2354 * gnulib/import/fd-hook.c: Update.
2355 * gnulib/import/fd-hook.h: Update.
2356 * gnulib/import/fd-safer-flag.c: Update.
2357 * gnulib/import/fd-safer.c: Update.
2358 * gnulib/import/fdopendir.c: Update.
2359 * gnulib/import/filename.h: Update.
2360 * gnulib/import/filenamecat-lgpl.c: Update.
2361 * gnulib/import/filenamecat.h: Update.
2362 * gnulib/import/flexmember.h: Update.
2363 * gnulib/import/float+.h: Update.
2364 * gnulib/import/float.c: Update.
2365 * gnulib/import/float.in.h: Update.
2366 * gnulib/import/fnmatch.c: Update.
2367 * gnulib/import/fnmatch.in.h: Update.
2368 * gnulib/import/fnmatch_loop.c: Update.
2369 * gnulib/import/fpucw.h: Update.
2370 * gnulib/import/frexp.c: Update.
2371 * gnulib/import/frexpl.c: Update.
2372 * gnulib/import/fstat.c: Update.
2373 * gnulib/import/fstatat.c: Update.
2374 * gnulib/import/getcwd-lgpl.c: Update.
2375 * gnulib/import/getcwd.c: Update.
2376 * gnulib/import/getdtablesize.c: Update.
2377 * gnulib/import/getlogin_r.c: Update.
2378 * gnulib/import/getprogname.c: Update.
2379 * gnulib/import/getprogname.h: Update.
2380 * gnulib/import/gettext.h: Update.
2381 * gnulib/import/gettimeofday.c: Update.
2382 * gnulib/import/glob-libc.h: Update.
2383 * gnulib/import/glob.c: Update.
2384 * gnulib/import/glob.in.h: Update.
2385 * gnulib/import/glob_internal.h: Update.
2386 * gnulib/import/glob_pattern_p.c: Update.
2387 * gnulib/import/globfree.c: Update.
2388 * gnulib/import/hard-locale.c: Update.
2389 * gnulib/import/hard-locale.h: Update.
2390 * gnulib/import/intprops.h: Update.
2391 * gnulib/import/inttypes.in.h: Update.
2392 * gnulib/import/isnan.c: Update.
2393 * gnulib/import/isnand-nolibm.h: Update.
2394 * gnulib/import/isnand.c: Update.
2395 * gnulib/import/isnanl-nolibm.h: Update.
2396 * gnulib/import/isnanl.c: Update.
2397 * gnulib/import/itold.c: Update.
2398 * gnulib/import/libc-config.h: Update.
2399 * gnulib/import/limits.in.h: Update.
2400 * gnulib/import/localcharset.c: Update.
2401 * gnulib/import/localcharset.h: Update.
2402 * gnulib/import/localtime-buffer.c: Update.
2403 * gnulib/import/localtime-buffer.h: Update.
2404 * gnulib/import/lstat.c: Update.
2405 * gnulib/import/m4/00gnulib.m4: Update.
2406 * gnulib/import/m4/__inline.m4: Update.
2407 * gnulib/import/m4/absolute-header.m4: Update.
2408 * gnulib/import/m4/alloca.m4: Update.
2409 * gnulib/import/m4/builtin-expect.m4: Update.
2410 * gnulib/import/m4/canonicalize.m4: Update.
2411 * gnulib/import/m4/chdir-long.m4: Update.
2412 * gnulib/import/m4/close.m4: Update.
2413 * gnulib/import/m4/closedir.m4: Update.
2414 * gnulib/import/m4/configmake.m4: Update.
2415 * gnulib/import/m4/d-ino.m4: Update.
2416 * gnulib/import/m4/d-type.m4: Update.
2417 * gnulib/import/m4/dirent_h.m4: Update.
2418 * gnulib/import/m4/dirfd.m4: Update.
2419 * gnulib/import/m4/dirname.m4: Update.
2420 * gnulib/import/m4/double-slash-root.m4: Update.
2421 * gnulib/import/m4/dup.m4: Update.
2422 * gnulib/import/m4/dup2.m4: Update.
2423 * gnulib/import/m4/eealloc.m4: Update.
2424 * gnulib/import/m4/environ.m4: Update.
2425 * gnulib/import/m4/errno_h.m4: Update.
2426 * gnulib/import/m4/error.m4: Update.
2427 * gnulib/import/m4/exponentd.m4: Update.
2428 * gnulib/import/m4/exponentl.m4: Update.
2429 * gnulib/import/m4/extensions.m4: Update.
2430 * gnulib/import/m4/extern-inline.m4: Update.
2431 * gnulib/import/m4/fchdir.m4: Update.
2432 * gnulib/import/m4/fcntl-o.m4: Update.
2433 * gnulib/import/m4/fcntl.m4: Update.
2434 * gnulib/import/m4/fcntl_h.m4: Update.
2435 * gnulib/import/m4/fdopendir.m4: Update.
2436 * gnulib/import/m4/filenamecat.m4: Update.
2437 * gnulib/import/m4/flexmember.m4: Update.
2438 * gnulib/import/m4/float_h.m4: Update.
2439 * gnulib/import/m4/fnmatch.m4: Update.
2440 * gnulib/import/m4/fnmatch_h.m4: Update.
2441 * gnulib/import/m4/fpieee.m4: Update.
2442 * gnulib/import/m4/frexp.m4: Update.
2443 * gnulib/import/m4/frexpl.m4: Update.
2444 * gnulib/import/m4/fstat.m4: Update.
2445 * gnulib/import/m4/fstatat.m4: Update.
2446 * gnulib/import/m4/getcwd-abort-bug.m4: Update.
2447 * gnulib/import/m4/getcwd-path-max.m4: Update.
2448 * gnulib/import/m4/getcwd.m4: Update.
2449 * gnulib/import/m4/getdtablesize.m4: Update.
2450 * gnulib/import/m4/getlogin.m4: Update.
2451 * gnulib/import/m4/getlogin_r.m4: Update.
2452 * gnulib/import/m4/getpagesize.m4: Update.
2453 * gnulib/import/m4/getprogname.m4: Update.
2454 * gnulib/import/m4/gettimeofday.m4: Update.
2455 * gnulib/import/m4/glibc21.m4: Update.
2456 * gnulib/import/m4/glob.m4: Update.
2457 * gnulib/import/m4/glob_h.m4: Update.
2458 * gnulib/import/m4/gnulib-cache.m4: Update.
2459 * gnulib/import/m4/gnulib-common.m4: Update.
2460 * gnulib/import/m4/gnulib-comp.m4: Update.
2461 * gnulib/import/m4/gnulib-tool.m4: Update.
2462 * gnulib/import/m4/hard-locale.m4: Update.
2463 * gnulib/import/m4/include_next.m4: Update.
2464 * gnulib/import/m4/inttypes-pri.m4: Update.
2465 * gnulib/import/m4/inttypes.m4: Update.
2466 * gnulib/import/m4/isnand.m4: Update.
2467 * gnulib/import/m4/isnanl.m4: Update.
2468 * gnulib/import/m4/largefile.m4: Update.
2469 * gnulib/import/m4/limits-h.m4: Update.
2470 * gnulib/import/m4/localcharset.m4: Update.
2471 * gnulib/import/m4/locale-fr.m4: Update.
2472 * gnulib/import/m4/locale-ja.m4: Update.
2473 * gnulib/import/m4/locale-zh.m4: Update.
2474 * gnulib/import/m4/localtime-buffer.m4: Update.
2475 * gnulib/import/m4/longlong.m4: Update.
2476 * gnulib/import/m4/lstat.m4: Update.
2477 * gnulib/import/m4/malloc.m4: Update.
2478 * gnulib/import/m4/malloca.m4: Update.
2479 * gnulib/import/m4/math_h.m4: Update.
2480 * gnulib/import/m4/mbrtowc.m4: Update.
2481 * gnulib/import/m4/mbsinit.m4: Update.
2482 * gnulib/import/m4/mbsrtowcs.m4: Update.
2483 * gnulib/import/m4/mbstate_t.m4: Update.
2484 * gnulib/import/m4/memchr.m4: Update.
2485 * gnulib/import/m4/memmem.m4: Update.
2486 * gnulib/import/m4/mempcpy.m4: Update.
2487 * gnulib/import/m4/memrchr.m4: Update.
2488 * gnulib/import/m4/mkdir.m4: Update.
2489 * gnulib/import/m4/mkstemp.m4: Update.
2490 * gnulib/import/m4/mmap-anon.m4: Update.
2491 * gnulib/import/m4/mode_t.m4: Update.
2492 * gnulib/import/m4/msvc-inval.m4: Update.
2493 * gnulib/import/m4/msvc-nothrow.m4: Update.
2494 * gnulib/import/m4/multiarch.m4: Update.
2495 * gnulib/import/m4/nocrash.m4: Update.
2496 * gnulib/import/m4/off_t.m4: Update.
2497 * gnulib/import/m4/onceonly.m4: Update.
2498 * gnulib/import/m4/open-cloexec.m4: Update.
2499 * gnulib/import/m4/open.m4: Update.
2500 * gnulib/import/m4/openat.m4: Update.
2501 * gnulib/import/m4/opendir.m4: Update.
2502 * gnulib/import/m4/pathmax.m4: Update.
2503 * gnulib/import/m4/rawmemchr.m4: Update.
2504 * gnulib/import/m4/readdir.m4: Update.
2505 * gnulib/import/m4/readlink.m4: Update.
2506 * gnulib/import/m4/realloc.m4: Update.
2507 * gnulib/import/m4/rename.m4: Update.
2508 * gnulib/import/m4/rewinddir.m4: Update.
2509 * gnulib/import/m4/rmdir.m4: Update.
2510 * gnulib/import/m4/save-cwd.m4: Update.
2511 * gnulib/import/m4/secure_getenv.m4: Update.
2512 * gnulib/import/m4/setenv.m4: Update.
2513 * gnulib/import/m4/signal_h.m4: Update.
2514 * gnulib/import/m4/ssize_t.m4: Update.
2515 * gnulib/import/m4/stat-time.m4: Update.
2516 * gnulib/import/m4/stat.m4: Update.
2517 * gnulib/import/m4/std-gnu11.m4: Update.
2518 * gnulib/import/m4/stdbool.m4: Update.
2519 * gnulib/import/m4/stddef_h.m4: Update.
2520 * gnulib/import/m4/stdint.m4: Update.
2521 * gnulib/import/m4/stdio_h.m4: Update.
2522 * gnulib/import/m4/stdlib_h.m4: Update.
2523 * gnulib/import/m4/strchrnul.m4: Update.
2524 * gnulib/import/m4/strdup.m4: Update.
2525 * gnulib/import/m4/strerror.m4: Update.
2526 * gnulib/import/m4/string_h.m4: Update.
2527 * gnulib/import/m4/strstr.m4: Update.
2528 * gnulib/import/m4/strtok_r.m4: Update.
2529 * gnulib/import/m4/sys_socket_h.m4: Update.
2530 * gnulib/import/m4/sys_stat_h.m4: Update.
2531 * gnulib/import/m4/sys_time_h.m4: Update.
2532 * gnulib/import/m4/sys_types_h.m4: Update.
2533 * gnulib/import/m4/tempname.m4: Update.
2534 * gnulib/import/m4/time_h.m4: Update.
2535 * gnulib/import/m4/unistd-safer.m4: Update.
2536 * gnulib/import/m4/unistd_h.m4: Update.
2537 * gnulib/import/m4/warn-on-use.m4: Update.
2538 * gnulib/import/m4/wchar_h.m4: Update.
2539 * gnulib/import/m4/wchar_t.m4: Update.
2540 * gnulib/import/m4/wctype_h.m4: Update.
2541 * gnulib/import/m4/wint_t.m4: Update.
2542 * gnulib/import/malloc.c: Update.
2543 * gnulib/import/malloc/scratch_buffer.h: Update.
2544 * gnulib/import/malloc/scratch_buffer_grow.c: Update.
2545 * gnulib/import/malloc/scratch_buffer_grow_preserve.c: Update.
2546 * gnulib/import/malloc/scratch_buffer_set_array_size.c: Update.
2547 * gnulib/import/malloca.c: Update.
2548 * gnulib/import/malloca.h: Update.
2549 * gnulib/import/malloca.valgrind: Update.
2550 * gnulib/import/math.in.h: Update.
2551 * gnulib/import/mbrtowc.c: Update.
2552 * gnulib/import/mbsinit.c: Update.
2553 * gnulib/import/mbsrtowcs-impl.h: Update.
2554 * gnulib/import/mbsrtowcs-state.c: Update.
2555 * gnulib/import/mbsrtowcs.c: Update.
2556 * gnulib/import/memchr.c: Update.
2557 * gnulib/import/memmem.c: Update.
2558 * gnulib/import/mempcpy.c: Update.
2559 * gnulib/import/memrchr.c: Update.
2560 * gnulib/import/mkdir.c: Update.
2561 * gnulib/import/mkstemp.c: Update.
2562 * gnulib/import/msvc-inval.c: Update.
2563 * gnulib/import/msvc-inval.h: Update.
2564 * gnulib/import/msvc-nothrow.c: Update.
2565 * gnulib/import/msvc-nothrow.h: Update.
2566 * gnulib/import/open.c: Update.
2567 * gnulib/import/openat-die.c: Update.
2568 * gnulib/import/openat-priv.h: Update.
2569 * gnulib/import/openat-proc.c: Update.
2570 * gnulib/import/openat.c: Update.
2571 * gnulib/import/openat.h: Update.
2572 * gnulib/import/opendir.c: Update.
2573 * gnulib/import/pathmax.h: Update.
2574 * gnulib/import/pipe-safer.c: Update.
2575 * gnulib/import/rawmemchr.c: Update.
2576 * gnulib/import/readdir.c: Update.
2577 * gnulib/import/readlink.c: Update.
2578 * gnulib/import/realloc.c: Update.
2579 * gnulib/import/ref-add.sin: Update.
2580 * gnulib/import/ref-del.sin: Update.
2581 * gnulib/import/rename.c: Update.
2582 * gnulib/import/rewinddir.c: Update.
2583 * gnulib/import/rmdir.c: Update.
2584 * gnulib/import/same-inode.h: Update.
2585 * gnulib/import/save-cwd.c: Update.
2586 * gnulib/import/save-cwd.h: Update.
2587 * gnulib/import/scratch_buffer.h: Update.
2588 * gnulib/import/secure_getenv.c: Update.
2589 * gnulib/import/setenv.c: Update.
2590 * gnulib/import/signal.in.h: Update.
2591 * gnulib/import/stat-time.c: Update.
2592 * gnulib/import/stat-time.h: Update.
2593 * gnulib/import/stat-w32.c: Update.
2594 * gnulib/import/stat-w32.h: Update.
2595 * gnulib/import/stat.c: Update.
2596 * gnulib/import/stdbool.in.h: Update.
2597 * gnulib/import/stddef.in.h: Update.
2598 * gnulib/import/stdint.in.h: Update.
2599 * gnulib/import/stdio.in.h: Update.
2600 * gnulib/import/stdlib.in.h: Update.
2601 * gnulib/import/str-two-way.h: Update.
2602 * gnulib/import/strchrnul.c: Update.
2603 * gnulib/import/strdup.c: Update.
2604 * gnulib/import/streq.h: Update.
2605 * gnulib/import/strerror-override.c: Update.
2606 * gnulib/import/strerror-override.h: Update.
2607 * gnulib/import/strerror.c: Update.
2608 * gnulib/import/string.in.h: Update.
2609 * gnulib/import/stripslash.c: Update.
2610 * gnulib/import/strnlen1.c: Update.
2611 * gnulib/import/strnlen1.h: Update.
2612 * gnulib/import/strstr.c: Update.
2613 * gnulib/import/strtok_r.c: Update.
2614 * gnulib/import/sys_stat.in.h: Update.
2615 * gnulib/import/sys_time.in.h: Update.
2616 * gnulib/import/sys_types.in.h: Update.
2617 * gnulib/import/tempname.c: Update.
2618 * gnulib/import/tempname.h: Update.
2619 * gnulib/import/time.in.h: Update.
2620 * gnulib/import/unistd--.h: Update.
2621 * gnulib/import/unistd-safer.h: Update.
2622 * gnulib/import/unistd.in.h: Update.
2623 * gnulib/import/unsetenv.c: Update.
2624 * gnulib/import/verify.h: Update.
2625 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2626 * gnulib/import/wchar.in.h: Update.
2627 * gnulib/import/wctype.in.h: Update.
2628 * gnulib/import/xalloc-oversized.h: Update.
2629 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2630 "53e2c179f26a890fa6685af4b6c1397ee370433b".
2632 2018-08-16 Gary Benson <gbenson@redhat.com>
2635 * gdb/main.c (captured_main_1): Exit with nonzero status
2636 in batch mode if the last command to be executed failed.
2637 * NEWS: Mention the above.
2639 2018-08-29 Simon Marchi <simon.marchi@ericsson.com>
2641 * csky-tdep.c (csky_memory_insert_breakpoint): Remove newline at
2642 end of warning message.
2644 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2647 * aarch64-tdep.c (is_hfa_or_hva): Remove function.
2648 (aarch64_extract_return_value): Use
2649 aapcs_is_vfp_call_or_return_candidate.
2650 (aarch64_return_in_memory): Likewise.
2651 (aarch64_store_return_value): Likewise.
2653 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2656 (aapcs_is_vfp_call_or_return_candidate): Make static
2657 (pass_in_v_or_stack): Remove function.
2658 (pass_in_v_vfp_candidate): New function.
2659 (aarch64_push_dummy_call): Check for float register candidates.
2661 2018-08-29 Alan Hayward <alan.hayward@arm.com>
2663 * aarch64-tdep.c (HA_MAX_NUM_FLDS): New macro.
2664 (aapcs_is_vfp_call_or_return_candidate_1): New function.
2665 (aapcs_is_vfp_call_or_return_candidate): Likewise.
2667 2018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
2670 * common/agent.c (IPA_SYM_STRUCT_NAME): Define.
2671 (struct ipa_sym_addresses): Rename to...
2672 (struct ipa_sym_addresses_common): ... this.
2673 * common/agent.h (IPA_SYM): Use IPA_SYM_STRUCT_NAME.
2675 2018-08-28 Tom Tromey <tom@tromey.com>
2677 * c-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2678 (token_fifo): Now a std::vector.
2679 (yylex, c_parse): Update.
2680 * d-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2681 (token_fifo): Now a std::vector.
2682 (yylex, d_parse): Update.
2683 * go-exp.y (struct token_and_value): Remove typedef and DEF_VEC.
2684 (token_fifo): Now a std::vector.
2685 (yylex, go_parse): Update.
2687 2018-08-28 Simon Marchi <simon.marchi@ericsson.com>
2689 * parser-defs.h (struct type_stack) <elements>: Change type to
2690 std::vector<union type_stack_elt>.
2691 <depth, size>: Remove.
2692 * parse.c (parse_exp_in_context_1): Adjust.
2693 (type_stack_reserve): Remove.
2694 (check_type_stack_depth): Remove.
2695 (insert_into_type_stack): Adjust to std::vector.
2696 (insert_type): Likewise.
2697 (push_type): Likewise.
2698 (push_type_int): Likewise.
2699 (insert_type_address_space): Likewise.
2700 (pop_type): Likewise.
2701 (pop_type_int): Likewise.
2702 (pop_typelist): Likewise.
2703 (pop_type_stack): Likewise.
2704 (append_type_stack): Likewise.
2705 (push_type_stack): Likewise.
2706 (get_type_stack): Likewise.
2707 (type_stack_cleanup): Likewise.
2708 (push_typelist): Likewise.
2709 (follow_types): Likewise.
2710 (_initialize_parse): Likewise.
2712 2018-08-28 Hafiz Abid Qadeer <abidh@codesourcery.com>
2714 * NEWS: Mention csky target.
2716 2018-08-28 Jiangshuai Li <jiangshuai_li@c-sky.com>
2717 Hafiz Abid Qadeer <abidh@codesourcery.com>
2718 Don Breazeal <donb@codesourcery.com>
2720 * csky-linux-tdep.c: New file.
2721 * csky-tdep.c: Likewise.
2722 * csky-tdep.h: Likewise.
2723 * Makefile.in (ALL_TARGET_OBS): Add csky-linux-tdep.o and
2725 (HFILES_NO_SRCDIR): Add csky-tdep.h.
2726 (ALLDEPFILES): Add csky-linux-tdep.c and csky-tdep.c
2727 * configure.tgt: Add csky support.
2729 2018-08-27 Jan Vrany <jan.vrany@fit.cvut.cz>
2731 * python/py-framefilter.c (py_print_frame): Print frame architecture
2732 when printing on an MI output.
2734 2018-08-27 Tom Tromey <tom@tromey.com>
2737 * configure: Rebuild.
2738 * warning.m4 (AM_GDB_WARNINGS): Remove -Wno-narrowing.
2740 2018-08-27 Tom Tromey <tom@tromey.com>
2742 * aarch64-linux-tdep.c
2743 (aarch64_linux_iterate_over_regset_sections) <sve_regmap>: Add
2746 2018-08-27 Tom Tromey <tom@tromey.com>
2748 * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to
2750 (ppc64_standard_linkage1, ppc64_standard_linkage2)
2751 (ppc64_standard_linkage3, ppc64_standard_linkage4)
2752 (ppc64_standard_linkage5, ppc64_standard_linkage6)
2753 (ppc64_standard_linkage7, ppc64_standard_linkage8): Add casts to
2756 2018-08-27 Tom Tromey <tom@tromey.com>
2758 * xtensa-tdep.h (XTREG_END): Add cast to unsigned.
2759 (XTENSA_GDBARCH_TDEP_INSTANTIATE): Likewise.
2761 2018-08-27 Tom Tromey <tom@tromey.com>
2763 * tramp-frame.h (TRAMP_SENTINEL_INSN): Redefine.
2764 * tilegx-linux-tdep.c (tilegx_linux_rt_sigframe): Use
2766 * tic6x-linux-tdep.c (tic6x_linux_rt_sigreturn_tramp_frame): Use
2768 * sparc64-linux-tdep.c (sparc64_linux_rt_sigframe): Use
2770 * sparc-linux-tdep.c (sparc32_linux_sigframe)
2771 (sparc32_linux_rt_sigframe): Use ULONGEST_MAX.
2772 * ppc-nbsd-tdep.c (ppcnbsd_sigtramp, ppcnbsd2_sigtramp): Use
2774 * ppc-linux-tdep.c (ppc32_linux_sigaction_tramp_frame)
2775 (ppc64_linux_sigaction_tramp_frame)
2776 (ppc32_linux_sighandler_tramp_frame)
2777 (ppc64_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2778 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame)
2779 (nios2_r2_linux_rt_sigreturn_tramp_frame): Use ULONGEST_MAX.
2780 * mn10300-linux-tdep.c (am33_linux_sigframe)
2781 (am33_linux_rt_sigframe): Use ULONGEST_MAX.
2782 * mips64-obsd-tdep.c (mips64obsd_sigframe): Use ULONGEST_MAX.
2783 * mips-linux-tdep.c (mips_linux_o32_sigframe)
2784 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
2785 (mips_linux_n64_rt_sigframe, micromips_linux_o32_sigframe)
2786 (micromips_linux_o32_rt_sigframe, micromips_linux_n32_rt_sigframe)
2787 (micromips_linux_n64_rt_sigframe): Use ULONGEST_MAX.
2788 * mips-fbsd-tdep.c (mips_fbsd_sigframe, mipsn32_fbsd_sigframe)
2789 (mips64_fbsd_sigframe): Use ULONGEST_MAX.
2790 * microblaze-linux-tdep.c
2791 (microblaze_linux_sighandler_tramp_frame): Use ULONGEST_MAX.
2792 * i386-nbsd-tdep.c (i386nbsd_sigtramp_sc16, i386nbsd_sigtramp_sc2)
2793 (i386nbsd_sigtramp_si2, i386nbsd_sigtramp_si31)
2794 (i386nbsd_sigtramp_si4): Use ULONGEST_MAX.
2795 * hppa-nbsd-tdep.c (hppanbsd_sigtramp_si4): Use ULONGEST_MAX.
2796 * common/common-types.h (ULONGEST_MAX): New define.
2797 (CORE_ADDR_MAX): Fix formatting.
2798 * bfin-linux-tdep.c (bfin_linux_sigframe): Use ULONGEST_MAX.
2799 * arm-obsd-tdep.c (armobsd_sigframe): Use ULONGEST_MAX.
2800 * arm-linux-tdep.c (arm_linux_sigreturn_tramp_frame)
2801 (arm_linux_rt_sigreturn_tramp_frame)
2802 (arm_eabi_linux_sigreturn_tramp_frame)
2803 (arm_eabi_linux_rt_sigreturn_tramp_frame)
2804 (thumb2_eabi_linux_sigreturn_tramp_frame)
2805 (thumb2_eabi_linux_rt_sigreturn_tramp_frame)
2806 (arm_linux_restart_syscall_tramp_frame)
2807 (arm_kernel_linux_restart_syscall_tramp_frame): Use ULONGEST_MAX.
2808 * arm-fbsd-tdep.c (arm_fbsd_sigframe): Use ULONGEST_MAX.
2809 * aarch64-linux-tdep.c (aarch64_linux_rt_sigframe): Use
2811 * aarch64-fbsd-tdep.c (aarch64_fbsd_sigframe): Use ULONGEST_MAX.
2813 2018-08-27 Tom Tromey <tom@tromey.com>
2815 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Use
2817 * mips-tdep.c (mips_deal_with_atomic_sequence)
2818 (micromips_deal_with_atomic_sequence): Use CORE_ADDR_MAX.
2819 * arch/arm-get-next-pcs.c (thumb_deal_with_atomic_sequence_raw)
2820 (arm_deal_with_atomic_sequence_raw): Use CORE_ADDR_MAX.
2821 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Use
2823 * aarch64-tdep.c (aarch64_software_single_step): Use
2826 2018-08-27 Tom Tromey <tom@tromey.com>
2828 * linespec.c (complete_linespec_component): Add cast to "char".
2829 * completer.c (completion_tracker::build_completion_result): Add
2832 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2834 * solist.h (struct solist, struct target_so_ops): Fix
2837 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2839 * ada-tasks.c (ada_task_info_s): Remove typedef.
2840 (DEF_VEC_O(ada_task_info_s)): Remove.
2841 (struct ada_tasks_inferior_data): Initialize fields.
2842 <task_list>: Make an std::vector.
2843 (get_ada_tasks_inferior_data): Allocate with new.
2844 (ada_get_task_number): Adjust.
2845 (get_task_number_from_id): Likewise.
2846 (valid_task_id): Likewise.
2847 (ada_get_task_info_from_ptid): Likewise.
2848 (iterate_over_live_ada_tasks): Likewise.
2849 (add_ada_task): Likewise.
2850 (read_known_tasks): Likewise.
2851 (ada_build_task_list): Likewise.
2852 (print_ada_task_info): Likewise.
2853 (info_task): Likewise.
2854 (task_command_1): Likewise.
2856 2018-08-26 Simon Marchi <simon.marchi@polymtl.ca>
2858 * ada-lang.c (add_angle_brackets): Return std::string.
2860 2018-08-25 Simon Marchi <simon.marchi@polymtl.ca>
2862 * python/py-threadevent.c (py_get_event_thread): Initialize
2865 2018-08-24 Pedro Alves <palves@redhat.com>
2867 * python/py-bpevent.c (create_breakpoint_event_object): Use
2868 copy-initialization.
2869 * python/py-continueevent.c (emit_continue_event): Use
2870 copy-initialization.
2871 * python/py-exitedevent.c (create_exited_event_object): Return a
2873 (emit_exited_event): Use copy-initialization.
2874 * python/py-inferior.c (python_new_inferior)
2875 (python_inferior_deleted, add_thread_object): Use
2876 copy-initialization.
2877 * python/py-infevents.c (create_inferior_call_event_object)
2878 (create_register_changed_event_object)
2879 (create_memory_changed_event_object): Return a gdbpy_ref<>.
2880 (emit_inferior_call_event, emit_memory_changed_event)
2881 (emit_register_changed_event): Use copy-initialization.
2882 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2883 Return a gdbpy_ref<>.
2884 (emit_new_objfile_event): Use copy-initialization.
2885 (create_clear_objfiles_event_object): Return a gdbpy_ref<>.
2886 (emit_clear_objfiles_event): Use copy-initialization.
2887 * python/py-signalevent.c (create_signal_event_object): Use
2888 copy-initialization.
2889 * python/py-threadevent.c (create_thread_event_object): Use
2890 copy-initialization.
2892 2018-08-24 Pedro Alves <palves@redhat.com>
2893 Simon Marchi <simon.marchi@ericsson.com>
2896 * python/py-continueevent.c: Include "gdbthread.h".
2897 (create_continue_event_object): Add intro comment. Add 'ptid'
2898 parameter. Use it to find thread to pass to
2899 create_thread_event_object.
2900 (emit_continue_event): Pass PTID down to
2901 create_continue_event_object.
2902 * python/py-event.h (py_get_event_thread): Declare.
2903 (create_thread_event_object): Remove default from 'thread'
2905 * python/py-stopevent.c (create_stop_event_object): Use
2906 py_get_event_thread.
2907 * python/py-threadevent.c (get_event_thread): Rename to ...
2908 (py_get_event_thread): ... this, make extern, add 'ptid' parameter
2909 and use it to find the thread.
2910 (create_thread_event_object): Assert that THREAD isn't null.
2911 Don't find the event thread here.
2913 2018-08-23 Kevin Buettner <kevinb@redhat.com>
2915 * block.h (blockrange, blockranges): New struct declarations.
2916 (struct block): Add new field named `ranges'.
2917 (BLOCK_RANGES, BLOCK_NRANGES, BLOCK_RANGE, BLOCK_CONTIGUOUS_P)
2918 (BLOCK_RANGE_START, BLOCK_RANGE_END, BLOCK_ENTRY_PC): New
2919 macros for accessing ranges in struct block.
2920 (make_blockranges): New declaration.
2921 block.c (make_blockranges): New function.
2922 * dwarf2read.c (dwarf2_record_block_ranges): Fill in BLOCK_RANGES
2924 * symtab.h (find_pc_partial_function): Add new parameter `block'.
2925 * blockframe.c (cache_pc_function_block): New static global.
2926 (clear_pc_function_cache): Clear cache_pc_function_block.
2927 (find_pc_partial_function): Move comment to symtab.h. Add
2928 support for non-contiguous blocks.
2929 * cli/cli-cmds.c (block.h): Include.
2930 (print_disassembly): Handle printing of non-contiguous blocks.
2931 (disassemble_current_function): Likewise.
2932 (disassemble_command): Likewise.
2934 * ax-gdb.c (gen_var_ref): Use BLOCK_ENTRY_PC in place of
2936 * blockframe.c (get_pc_function_start): Likewise.
2937 * compile/compile-c-symbols.c (convert_one_symbol): Likewise.
2938 (gcc_symbol_address): Likewise.
2939 * compile/compile-object-run.c (compile_object_run): Likewise.
2940 * compile/compile.c (get_expr_block_and_pc): Likewise.
2941 * dwarf2loc.c (dwarf2_find_location_expression): Likewise.
2942 (func_addr_to_tail_call_list): Likewise.
2943 * findvar.c (default_read_var_value): Likewise.
2944 * inline-frame.c (inline_frame_this_id): Likewise.
2945 (skip-inline_frames): Likewise.
2946 * infcmd.c (until_next_command): Likewise.
2947 * linespec.c (convert_linespec_to_sals): Likewise.
2948 * parse.c (parse_exp_in_context_1): Likewise.
2949 * printcmd.c (build_address_symbolic): likewise.
2950 (info_address_command): Likewise.
2951 symtab.c (find_function_start_sal): Likewise.
2952 (skip_prologue_sal): Likewise.
2953 (find_function_alias_target): Likewise.
2954 (find_gnu_ifunc): Likewise.
2955 * stack.c (find_frame_funname): Likewise.
2956 * symtab.c (fixup_symbol_section): Likewise.
2957 (find_function_start_sal): Likewise.
2958 (skip_prologue_sal): Likewsie.
2959 (find_function_alias_target): Likewise.
2960 (find_gnu_ifunc): Likewise.
2961 * tracepoint.c (info_scope_command): Likewise.
2962 * value.c (value_fn_field): Likewise.
2964 * infrun.c (fill_in_stop_func): Use find_function_entry_range_from_pc
2965 in place of find_pc_partial_function.
2966 * blockframe.c (find_function_entry_range_from_pc): New function.
2967 * symtab.h (find_function_entry_range_from_pc): Declare and document.
2968 * objfiles.c (objfile_relocate1): Relocate start and end addresses
2969 for each range in a block.
2972 2018-08-23 Xavier Roirand <roirand@adacore.com>
2974 * machoread.c (macho_symfile_read_all_oso): Remove uneeded
2977 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2979 * solib-svr4.c (read_program_headers_from_bfd): Return
2980 gdb::optional<gdb::byte_vector>.
2981 (svr4_exec_displacement): Adjust.
2983 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2985 * solib-svr4.c (read_program_header): Return
2986 gdb::optional<gdb::byte_vector>, remove p_sect_size param.
2987 (find_program_interpreter): Return
2988 gdb::optional<gdb::byte_vector>.
2989 (scan_dyntag_auxv): Adjust.
2990 (enable_break): Adjust.
2991 (svr4_exec_displacement): Adjust.
2993 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
2995 * inf-child.h (inf_child_target) <terminal_save_inferior>: New.
2996 * inf-child.c (inf_child_target::terminal_save_inferior): New.
2998 2018-08-22 Simon Marchi <simon.marchi@polymtl.ca>
3000 * guile/scm-string.c (gdbscm_scm_from_printf): Use
3002 * guile/scm-utils.c (gdbscm_printf): Likewise.
3003 * serial.c (serial_printf): Likewise.
3004 * xml-support.c (gdb_xml_parser::vdebug): Likewise.
3006 2018-08-22 Jan Vrany <jan.vrany@fit.cvut.cz>
3008 * stack.c (print_frame): Print frame architecture when printing on
3010 * NEWS: Mention new "arch" attribute in frame output.
3012 2018-08-21 Alan Hayward <alan.hayward@arm.com>
3014 * arch/aarch64.h (aarch64_regnum): Update comment.
3016 2018-08-21 Alan Hayward <alan.hayward@arm.com>
3018 * NEWS: Add SVE to 8.2 section.
3020 2018-08-21 Pedro Alves <palves@redhat.com>
3022 * guile/scm-utils.c (gdbscm_parse_function_args_1): New, factored
3023 out from gdbscm_parse_function_args.
3024 (gdbscm_parse_function_args): Rework to use gdbscm_wrap and
3025 gdbscm_parse_function_args_1.
3027 2018-08-21 Simon Marchi <simon.marchi@ericsson.com>
3030 * m32c-tdep.c (m32c_decode_srcdest4): Remove unnecessary ternary
3033 2018-08-19 Simon Marchi <simon.marchi@polymtl.ca>
3035 * solib-svr4.c (svr4_exec_displacement): Fix formatting.
3037 2018-08-19 Michael Spang <spang@google.com>
3040 * solib-svr4.c (svr4_exec_displacement): Ignore memsz fields
3041 for PT_TLS segments.
3043 2018-08-18 Kevin Buettner <kevinb@redhat.com>
3045 * dwarf2expr.h (struct dwarf_expr_context): Add virtual method
3046 dwarf_variable_value.
3047 * dwarf2-frame.c (class dwarf_expr_executor):
3048 Add override for dwarf_variable_value.
3049 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Likewise.
3050 (class symbol_needs_eval_context): Likewise.
3051 (indirect_synthetic_pointer): Add forward declaration.
3052 (sect_variable_value): New function.
3053 (dwarf2_compile_expr_to_ax): Add case for DW_OP_GNU_variable_value.
3054 * dwarf2expr.c (dwarf_expr_context::execute_stack_op): Add case
3055 for DW_OP_GNU_variable_value.
3057 2018-08-16 Tom Tromey <tom@tromey.com>
3059 * top.c (read_command_file): Update.
3060 (command_line_input): Remove "repeat" argument.
3061 * ada-lang.c (get_selections): Update.
3062 * linespec.c (decode_line_2): Update.
3063 * defs.h (command_line_input): Remove argument.
3064 * cli/cli-script.c (read_next_line): Update.
3065 * python/py-gdb-readline.c: Update.
3067 2018-08-17 Tom Tromey <tom@tromey.com>
3069 * cli/cli-script.c (read_next_line): Pass 0 as repeat argument to
3072 2018-08-15 Tom Tromey <tom@tromey.com>
3074 * aarch64-linux-tdep.c (aarch64_linux_core_read_vq): Use pulongest.
3076 2018-08-14 Jan Vrany <jan.vrany@fit.cvut.cz>
3078 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Add -a option.
3079 If used, use find_pc_partial_function to find address range
3081 * mi/mi-main.c (mi_cmd_list_features): Report
3082 "data-disassemble-a-option" feature.
3083 * NEWS: Mention new -data-disassemble option -a.
3085 2018-08-13 Tom Tromey <tom@tromey.com>
3087 * common/common-defs.h (_FORTIFY_SOURCE): Define.
3089 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3091 * aarch64-linux-tdep.c (aarch64_linux_supply_sve_regset): New function.
3092 (aarch64_linux_collect_sve_regset): Likewise.
3093 (aarch64_linux_iterate_over_regset_sections): Check for SVE.
3094 * regcache.h (regcache_map_entry_size): New function.
3096 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3098 * aarch64-linux-tdep.c (SVE_HEADER_SIZE_LENGTH): Add define.
3099 (SVE_HEADER_MAX_SIZE_LENGTH): Likewise.
3100 (SVE_HEADER_VL_LENGTH): Likewise.
3101 (SVE_HEADER_MAX_VL_LENGTH): Likewise.
3102 (SVE_HEADER_FLAGS_LENGTH): Likewise.
3103 (SVE_HEADER_RESERVED_LENGTH): Likewise.
3104 (SVE_HEADER_SIZE_OFFSET): Likewise.
3105 (SVE_HEADER_MAX_SIZE_OFFSET): Likewise.
3106 (SVE_HEADER_VL_OFFSET): Likewise.
3107 (SVE_HEADER_MAX_VL_OFFSET): Likewise.
3108 (SVE_HEADER_FLAGS_OFFSET): Likewise.
3109 (SVE_HEADER_RESERVED_OFFSET): Likewise.
3110 (SVE_HEADER_SIZE): Likewise.
3111 (aarch64_linux_core_read_vq): Add function.
3112 (aarch64_linux_core_read_description): Check for SVE section.
3114 2018-08-13 Alan Hayward <alan.hayward@arm.com>
3116 * aarch64-fbsd-tdep.c
3117 (aarch64_fbsd_iterate_over_regset_sections): Add supply_size and
3119 * aarch64-linux-tdep.c
3120 (aarch64_linux_iterate_over_regset_sections): Likewise.
3121 * alpha-linux-tdep.c
3122 (alpha_linux_iterate_over_regset_sections):
3124 (alphanbsd_iterate_over_regset_sections): Likewise.
3126 (amd64fbsd_iterate_over_regset_sections): Likewise.
3127 * amd64-linux-tdep.c
3128 (amd64_linux_iterate_over_regset_sections): Likewise.
3130 (armbsd_iterate_over_regset_sections): Likewise.
3132 (arm_fbsd_iterate_over_regset_sections): Likewise.
3134 (arm_linux_iterate_over_regset_sections): Likewise.
3135 * corelow.c (get_core_registers_cb): Likewise.
3136 (core_target::fetch_registers): Likewise.
3137 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
3138 * frv-linux-tdep.c (frv_linux_iterate_over_regset_sections): Likewise.
3139 * gdbarch.h (void): Regenerate.
3140 * gdbarch.sh: Add supply_size and collect_size.
3141 * hppa-linux-tdep.c (hppa_linux_iterate_over_regset_sections): Likewise.
3142 * hppa-nbsd-tdep.c (hppanbsd_iterate_over_regset_sections): Likewise.
3143 * hppa-obsd-tdep.c (hppaobsd_iterate_over_regset_sections): Likewise.
3144 * i386-fbsd-tdep.c (i386fbsd_iterate_over_regset_sections): Likewise.
3145 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections): Likewise.
3146 * i386-tdep.c (i386_iterate_over_regset_sections): Likewise.
3147 * ia64-linux-tdep.c (ia64_linux_iterate_over_regset_sections): Likewise.
3148 * linux-tdep.c (linux_collect_regset_section_cb): Likewise.
3149 * m32r-linux-tdep.c (m32r_linux_iterate_over_regset_sections): Likewise.
3150 * m68k-bsd-tdep.c (m68kbsd_iterate_over_regset_sections): Likewise.
3151 * m68k-linux-tdep.c (m68k_linux_iterate_over_regset_sections): Likewise.
3152 * mips-fbsd-tdep.c (mips_fbsd_iterate_over_regset_sections): Likewise.
3153 * mips-linux-tdep.c (mips_linux_iterate_over_regset_sections): Likewise.
3154 * mips-nbsd-tdep.c (mipsnbsd_iterate_over_regset_sections): Likewise.
3155 * mips64-obsd-tdep.c (mips64obsd_iterate_over_regset_sections): Likewise.
3156 * mn10300-linux-tdep.c (am33_iterate_over_regset_sections): Likewise.
3157 * nios2-linux-tdep.c (nios2_iterate_over_regset_sections): Likewise.
3158 * ppc-fbsd-tdep.c (ppcfbsd_iterate_over_regset_sections): Likewise.
3159 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections): Likewise.
3160 * ppc-nbsd-tdep.c (ppcnbsd_iterate_over_regset_sections): Likewise.
3161 * ppc-obsd-tdep.c (ppcobsd_iterate_over_regset_sections): Likewise.
3162 * riscv-linux-tdep.c (riscv_linux_iterate_over_regset_sections): Likewise.
3163 * rs6000-aix-tdep.c (rs6000_aix_iterate_over_regset_sections): Likewise.
3164 * s390-linux-tdep.c (s390_iterate_over_regset_sections): Likewise.
3165 * score-tdep.c (score7_linux_iterate_over_regset_sections): Likewise.
3166 * sh-tdep.c (sh_iterate_over_regset_sections): Likewise.
3167 * sparc-tdep.c (sparc_iterate_over_regset_sections): Likewise.
3168 * tilegx-linux-tdep.c (tilegx_iterate_over_regset_sections): Likewise.
3169 * vax-tdep.c (vax_iterate_over_regset_sections): Likewise.
3170 * xtensa-tdep.c (xtensa_iterate_over_regset_sections): Likewise.
3172 2018-08-10 Simon Marchi <simon.marchi@ericsson.com>
3174 * nat/linux-osdata.c (commandline_from_pid): Replace xstrprintf
3177 2018-08-10 Keith Seitz <keiths@redhat.com>
3179 * compile/compile-c-support.c (add_code_header, add_code_footer):
3180 Move into policy class.
3181 (c_push_user_expression, pop_user_expression_nop)
3182 (c_add_code_header, c_add_code_footer, c_add_input): New policy class.
3183 (compile_program): New host class.
3184 (c_compile_program): New typedef.
3185 (c_compute_porgram): Use c_compile_program.
3187 2018-08-10 Keith Seitz <keiths@redhat.com>
3189 * compile/compile-internal.h (compile_instance::~compile_instance):
3190 Remove calls to htab_delete.
3191 <m_type_map, m_symbol_err_map>: Switch type to htab_up.
3192 * compile.c (compile_instance::compile_instance): Initialize
3193 htab unique pointers.
3194 (compile_instance::get_cached_type, compile_instance::insert_type)
3195 (compile_instance::error_symbol_once): Update for unique_ptr.
3197 2018-08-10 Keith Seitz <keiths@redhat.com>
3199 * compile/compile-c-symbols.c (struct symbol_error)
3200 (hash_symbol_error, eq_symbol_error, del_symbol_error)
3201 (compile_instance::insert_symbol_error)
3202 (compile_instance::error_symbol_once): Move to ...
3203 * compile/compile.c: ... here.
3205 2018-08-10 Keith Seitz <keiths@redhat.com>
3207 * compile/compile-c-support.c (c_get_compile_context): Use `new'
3208 instead of `new_compile_instance'.
3209 * compile/compile-c-symbols.c (compile_instance::insert_symbol_error):
3211 If the symbol error map is not initialized, create it.
3212 (generate_c_for_for_one_symbol): Do not check/initialize
3213 the symbol error map.
3214 * compile/compile-c-types.c (compile_c_instance): Make a class.
3216 (compile_instance::compile_instance): Initialize the type cache.
3217 (get_cached_type): New function.
3218 (insert_type): Update description.
3219 (compile_c_instance::m_default_cflags): Define.
3220 (convert_type): Update description. Use get_cached_type.
3221 (delete_instance): Moved to destructor.
3222 (new_compile_instance): Moved to constructor.
3223 * compile/compile-c.h (compile_c_instance): Make class inheriting
3224 from compile_instance.
3225 <base>: Remove field.
3226 <type_map, symbol_err_map>: Move to base class.
3227 <c_plugin>: Rename to `m_plugin' and remove pointer type.
3228 * compile/compile-internal.h (compile_instance): Make class.
3229 <type_map_t, symbol_err_map_t>: Define.
3230 <fe>: Rename to `m_gcc_fe'.
3231 <scope, block, gcc_target_options>: Add `m_' prefix.
3232 <m_type_map, m_symbol_err_map>: New fields, moved from
3235 (convert_type, new_compile_instance): Remove.
3236 * compile/compile.c (cleanup_compile_instance): Remove.
3237 (compile_to_object): Use unique_ptr to eliminate cleanups.
3238 (compile_instance::set_print_callback, compile_instance::version)
3239 (compile_instance::set_verbose)
3240 (compile_instance::set_driver_filename)
3241 (compile_instance::set_triplet_regexp)
3242 (compile_instance::set_arguments)
3243 (compile_instance::set_source_file)
3244 (compile_instance::compile): Define.
3246 2018-08-10 Keith Seitz <keiths@redhat.com>
3248 * Makefile.in (HFILES_NO_SRCDIR): Add compile/gcc-c-plugin.h.
3249 * compile/compile-c-types.c: Define GCC_METHODN macros and include
3250 gcc-c-fe.def to define C plugin.
3251 (delete_instance): Delete `c_plugin'.
3252 (new_compile_instance): Initialize `c_plugin'.
3253 * compile/compile-c.h: Include gcc_c_plugin.h.
3254 (struct compile_c_instance) <c_plugin>: New member.
3255 * gcc-c-plugin.h: New file.
3256 Update all callers with API change.
3258 2018-08-10 Keith Seitz <keiths@redhat.com>
3260 * Makefile.in (SUBDIR_GCC_COMPILE_SRCS): Move header files ...
3261 (HFILES_NO_SRCDIR): ... to here.
3262 Add compile-internal.h and compile-c.h.
3263 * compile/compile-c-support.c: Include compile-c.h.
3264 * compile/compile-c-symbols.c: Include compile-c.h.
3265 (generate_c_for_variable_locations): Update comment.
3266 * compile/compile-c-types.c: Include compile-c.h.
3267 * compile/compile-c.h: New file -- moved C language declarations
3268 from other files here.
3269 * compile/compile-internal.h: Do not include hashtab.h or
3270 common/enum-flags.h.
3271 (gcc_qualifiers_flags, struct compile_c_instance, C_CTX)
3272 (gcc_convert_symbol, gcc_symbol_address)
3273 (generate_c_for_variable_locations, c_get_mode_for_size)
3274 (c_get_range_decl_name): Definitions moved to compile-c.h.
3275 * compile/compile-loc2c.c: Include compile-c.h.
3277 2018-08-10 Keith Seitz <keiths@redhat.com>
3279 * compile/compile-c-symbols.c (symbol_substitution_name): Rename to ...
3280 (c_symbol_substitution_name): ... this.
3283 2018-08-10 Keith Seitz <keiths@redhat.com>
3285 * compile/compile-c-support.c (c_compute_program): Use
3286 unique_xmalloc_ptr to eliminate cleanup.
3287 * compile/compile-c-symbols.c (generate_c_for_variable_locations):
3288 Return a unique_xmalloc_ptr and eliminate cleanup.
3289 * compile/compile-internal.h (generate_c_for_variable_locations):
3290 Return unique_xmalloc_ptr and update description.
3292 2018-08-10 Alan Hayward <alan.hayward@arm.com>
3294 * corelow.c (core_target::get_core_register_section): Rename
3295 min_size to section_min_size.
3297 2018-08-09 Jim Wilson <jimw@sifive.com>
3299 * Makefile.in (ALL_TARGET_OBS): Add riscv-linux-tdep.c.
3300 (ALLDEPFILES): Add riscv-linux-nat.c, and riscv-linux-tdep.c.
3301 * NEWS: Mention new GNU/Linux RISC-V target.
3302 * configure.host: Add riscv*-*-linux*.
3303 * configure.nat: Add riscv*.
3304 * configure.tgt: Add riscv*-*-linux*.
3305 * riscv-linux-nat.c: New file.
3306 * riscv-linux-tdep.c: New file.
3308 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3310 * infrun.c (resume): Make static, add forward declaration.
3311 (proceed): Update header comment.
3312 * infrun.h (resume): Delete declaration.
3314 2018-08-09 Tom Tromey <tom@tromey.com>
3316 * riscv-tdep.h: Minor formatting fixes.
3318 2018-08-09 Simon Marchi <simon.marchi@ericsson.com>
3320 * common/scoped_mmap.c (mmap_file): Silence ARI warning.
3321 * dwarf-index-cache.c (create_dir_and_check): Likewise.
3322 (test_mkdir_recursive): Likewise.
3323 * dwarf-index-write.c (write_psymtabs_to_index): Likewise.
3325 2018-08-09 Andrew Burgess <andrew.burgess@embecosm.com>
3327 * valarith.c (value_subscripted_rvalue): If an array is not in
3328 memory, and we don't know the upper bound, then we can't know that
3329 the requested element exists or not.
3331 2018-08-08 Simon Marchi <simon.marchi@ericsson.com>
3333 * target.c (str_comma_list_concat_elem): Fix typo in comment.
3334 (target_options_to_string): Add comment.
3336 2018-08-08 Tom Tromey <tom@tromey.com>
3338 * unittests/scoped_mmap-selftests.c: Check result of "write".
3340 2018-08-08 Jim Wilson <jimw@sifive.com>
3342 * riscv-tdep.c (enum opcode): Add jump, branch, lr, and sc opcodes.
3343 (decode_register_index_short): New.
3344 (decode_j_type_insn, decode_cj_type_insn): New.
3345 (decode_b_type_insn, decode_cb_type_insn): New.
3346 (riscv_insn::decode): Add support for jumps, branches, lr, and sc. New
3347 local xlen. Check xlen when decoding ambiguous compressed insns. In
3348 compressed decode, use is_c_lui_insn instead of is_lui_insn, and
3349 is_c_sw_insn instead of is_sw_insn.
3350 (riscv_next_pc, riscv_next_pc_atomic_sequence): New.
3351 (riscv_software_single_step): New.
3352 * riscv-tdep.h (riscv_software_single_step): Declare.
3354 * riscv-tdep.c (riscv_isa_xlen): Drop static.
3355 * riscv-tdep.h (riscv_isa_xlen): Add extern declaration.
3357 2018-08-08 Andrew Burgess <andrew.burgess@embecosm.com>
3360 * target.c (dispose_inferior): Don't dispose of inferiors that are
3363 2018-08-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
3365 * remote.c (remote_target::download_tracepoint): Change char* to
3368 2018-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3370 * target.h (target_options_to_string): Return an std::string.
3371 * target.c (str_comma_list_concat_elem): Return void, use
3373 (do_option): Likewise.
3374 (target_options_to_string): Return an std::string.
3375 * linux-nat.c (linux_nat_target::wait): Adjust.
3376 * target-debug.h (target_debug_print_options): Adjust.
3378 2018-08-07 Tom Tromey <tom@tromey.com>
3380 * Makefile.in (CPPFLAGS): New variable.
3381 (INTERNAL_CPPFLAGS): Use it.
3383 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3385 * NEWS: Mention the index cache.
3387 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3389 * common/pathstuff.h (get_standard_cache_dir): New.
3390 * common/pathstuff.c (get_standard_cache_dir): New.
3391 * build-id.h (build_id_to_string): New.
3392 * dwarf-index-common.h (INDEX4_SUFFIX, INDEX5_SUFFIX,
3393 DEBUG_STR_SUFFIX): Move to here.
3394 * dwarf-index-write.c (INDEX4_SUFFIX, INDEX5_SUFFIX,
3395 DEBUG_STR_SUFFIX): Move from there.
3396 (write_psymtabs_to_index): Make non-static, add basename
3397 parameter. Write to temporary files, rename when done.
3398 (save_gdb_index_command): Adjust call to
3399 write_psymtabs_to_index.
3400 * dwarf2read.h (dwarf2_per_objfile) <index_cache_res>: New
3402 * dwarf2read.c (dwz_file) <index_cache_res>: New field.
3403 (get_gdb_index_contents_from_cache): New.
3404 (get_gdb_index_contents_from_cache_dwz): New.
3405 (dwarf2_initialize_objfile): Read index from cache.
3406 (dwarf2_build_psymtabs): Save to index.
3407 * dwarf-index-cache.h: New file.
3408 * dwarf-index-cache.c: New file.
3409 * dwarf-index-write.h: New file.
3411 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3413 * gnulib/aclocal.m4: Re-generate.
3414 * gnulib/config.in: Re-generate.
3415 * gnulib/configure: Re-generate.
3416 * gnulib/import/Makefile.am: Re-generate.
3417 * gnulib/import/Makefile.in: Re-generate.
3418 * gnulib/import/m4/gnulib-cache.m4: Re-generate.
3419 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3420 * gnulib/import/m4/mkdir.m4: New file.
3421 * gnulib/import/mkdir.c: New file.
3422 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkdir
3425 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3427 * Makefile.in (COMMON_SFILES): Add common/scoped_mmap.c.
3428 * common/scoped_mmap.c: New file.
3429 * common/scoped_mmap.h (destroy): New method.
3430 (~scoped_mmap, reset): Use destroy.
3431 (scoped_mmap): New move constructor.
3432 (mmap_file): New declaration.
3433 * unittests/scoped_mmap-selftests.c (test_normal,
3434 test_invalid_filename, run_tests): New functions.
3435 (_initialize_scoped_mmap_selftests): Register selftest.
3437 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3439 * dwarf2read.c (read_gdb_index_from_section): Rename to...
3440 (read_gdb_index_from_buffer): ... this. Remove section
3441 parameter, add buffer parameter.
3442 (get_gdb_index_contents_ftype,
3443 get_gdb_index_contents_dwz_ftype): New typedefs.
3444 (dwarf2_read_gdb_index): Add callback parameters to get the
3446 (get_gdb_index_contents_from_section): New.
3447 (dwarf2_initialize_objfile): Update call to
3448 dwarf2_read_gdb_index.
3450 2018-08-07 Simon Marchi <simon.marchi@ericsson.com>
3452 * common/filestuff.h (gdb_fopen_cloexec): New overload.
3453 (gdb_open_cloexec): Likewise.
3454 * nat/linux-osdata.c (command_from_pid): Use string_printf.
3455 (commandline_from_pid): Likewise.
3456 (linux_xfer_osdata_threads): Likewise.
3457 (linux_xfer_osdata_fds): Likewise.
3458 * ada-lang.c (is_package_name): Likewise.
3459 * auxv.c (procfs_xfer_auxv): Likewise.
3460 * breakpoint.c (print_one_breakpoint_location): Use
3462 (print_one_catch_solib): Use string_printf.
3463 * coff-pe-read.c (add_pe_exported_sym): Likewise.
3464 (add_pe_forwarded_sym): Likewise.
3465 * dwarf2read.c (create_type_unit_group): Likewise.
3466 (build_error_marker_type): Likewise.
3467 * infcall.c (get_function_name): Likewise.
3468 * valprint.c (print_converted_chars_to_obstack): Likewise.
3469 * xtensa-tdep.c (xtensa_register_type): Likewise.
3471 2018-08-06 Simon Marchi <simon.marchi@ericsson.com>
3473 * remote.c (remote_target::download_tracepoint): Fix format
3476 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3478 * tracefile.c: Include common/byte-vector.h.
3479 (trace_save): Change type of buf to gdb::byte_vector. Initialize
3480 with trace_regblock_size if needed. Update uses of buf.
3482 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3484 * tracepoint.h (collection_list) <m_regs_mask>: Change type to
3485 std::vector<unsigned char>.
3486 * tracepoint.c (collection_list::collection_list): Remove
3487 m_regs_mask initializer from initializer list. Resize
3488 m_regs_mask using the largest remote register number.
3489 (collection_list::add_remote_register): Remove size check on
3490 m_regs_mask. Use at to access element.
3491 (collection_list::stringify): Change type of temp_buf to
3492 gdb::char_vector. Update uses of temp_buf. Resize if needed to
3493 stringify the register mask. Use pack_hex_byte for the register
3496 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3498 * tracepoint.h (class collection_list) <add_register>: Remove.
3499 <add_remote_register, add_ax_registers, add_local_register>:
3501 <add_memrange>: Add scope parameter.
3502 * tracepoint.c (encode_actions_1): Likewise.
3503 (collection_list::add_register): Rename to ...
3504 (collection_list::add_remote_register): ... this. Update
3506 (collection_list::add_ax_registers, add_local_register): New
3508 (collection_list::add_memrange): Add scope parameter. Call
3509 add_local_register instead of add_register.
3510 (finalize_tracepoint_aexpr): New function.
3511 (collection_list::collect_symbol): Update calls to add_memrange.
3512 Call add_local_register instead of add_register. Call
3513 add_ax_registers. Call finalize_tracepoint_aexpr.
3514 (encode_actions_1): Get remote regnos for $reg action. Call
3515 add_remote_register, add_ax_registers, and add_local_register.
3516 Update call to add_memrange. Call finalize_tracepoint_aexpr.
3517 (validate_actionline): Call finalize_tracepoint_aexpr.
3519 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3521 * remote.c (remote_target::download_tracepoint): Remove BUF_SIZE.
3522 Replace array buf with gdb::char_vector buf, of size
3523 get_remote_packet_size (). Replace references to buf and
3524 BUF_SIZE to buf.data () and buf.size (). Replace strcpy, strcat
3525 and xsnprintf with snprintf. Raise errors if the buffer is too
3528 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3530 * remote.c (remote_target::download_tracepoint): Fix the has_more
3531 predicate in the QTDP action list iteration.
3533 2018-08-06 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3535 * remote.c (remote_target::download_tracepoint): Fix indentation
3538 2018-08-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3540 * proc-api.c (_initialize_proc_api): Remove c, unused.
3541 * procfs.c (procfs_init_inferior): Remove signals, unused.
3542 (procfs_target::make_corefile_notes): Remove old_chain, fpregs,
3545 2018-08-06 Sergey Korolev <s.korolev@ndmsystems.com>
3546 Andrew Burgess <andrew.burgess@embecosm.com>
3548 * linux-nat.c (linux_nat_target::follow_fork): Avoid using
3549 'W_STOPCODE (0)' as this could be ambiguous.
3551 2018-08-03 Sergio Durigan Junior <sergiodj@redhat.com>
3553 * ser-tcp.c (net_open): Fix thinko when deciding whether to
3554 disable TCP's Nagle algorithm (use "ai_protocol" instead of
3557 2018-08-02 Tom Tromey <tom@tromey.com>
3560 * dwarf2read.c (read_func_scope): Set symtab on template parameter
3562 (process_structure_scope): Likewise.
3564 2018-08-02 Xavier Roirand <roirand@adacore.com>
3567 * darwin-nat.c (darwin_kill_inferior): Fix handling of
3570 2018-08-02 Tom Tromey <tom@tromey.com>
3572 * darwin-nat.c (find_inferior_task_it, darwin_find_thread)
3573 (darwin_suspend_inferior, darwin_resume_inferior)
3574 (darwin_decode_notify_message, darwin_resume_inferior_threads)
3575 (darwin_check_new_threads): Check result of get_darwin_inferior.
3577 2018-07-31 Joel Brobecker <brobecker@adacore.com>
3581 2018-07-31 Jan Vrany <jan.vrany@fit.cvut.cz>
3583 * varobj.c (varobj_get_path_expr_parent): Report an error if
3584 parent is a dynamic varobj.
3586 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3588 * gnulib/aclocal.m4: Re-generate.
3589 * gnulib/config.in: Re-generate.
3590 * gnulib/configure: Re-generate.
3591 * gnulib/import/Makefile.in: Re-generate.
3592 * gnulib/import/m4/gnulib-comp.m4: Re-generate.
3593 * gnulib/import/m4/onceonly.m4: Re-generate.
3595 2018-07-31 Simon Marchi <simon.marchi@ericsson.com>
3597 * target-descriptions.c (struct xml_test_tdesc): New.
3598 (xml_tdesc): Change type to std::vector<xml_test_tdesc>.
3599 (record_xml_tdesc): Update.
3600 (maintenance_check_xml_descriptions): Update.
3601 * target-descriptions.h (record_xml_tdesc): Update comment.
3603 2018-07-30 Andrew Burgess <andrew.burgess@embecosm.com>
3605 * eval.c (evaluate_subexp_for_sizeof): Check for array type before
3606 checking array bounds are defined.
3608 2018-07-30 Tom Tromey <tom@tromey.com>
3610 * nat/linux-osdata.c (pid_pgid_entry::operator<): Fix
3611 irreflexivity violation.
3613 2018-07-30 Tom Tromey <tom@tromey.com>
3615 * cli/cli-decode.c (lookup_cmd): Remove lint code.
3616 * value.c (unpack_long): Remove lint code.
3617 * valops.c (value_ind): Remove lint code.
3618 * valarith.c (value_x_binop, value_x_unop, value_equal)
3619 (value_pos): Remove lint code.
3621 2018-07-28 Tom de Vries <tdevries@suse.de>
3623 * eval.c (evaluate_subexp_for_sizeof): Interpret size of dynamic type
3624 with undefined upper bound as <optimized out>.
3626 2018-07-27 Sergio Durigan Junior <sergiodj@redhat.com>
3628 * gcore.in: Rename variable "name" to "prefix". Expand
3631 2018-07-14 Jon Turney <jon.turney@dronecode.org.uk>
3633 * windows-nat.c (windows_nat_target::create_inferior): Update to
3634 call close() in global namespace.
3636 2018-07-26 Tom Tromey <tom@tromey.com>
3638 * dwarf-index-write.c (add_address_entry): Don't add objfile
3640 * dbxread.c (find_stab_function): Rename from
3641 find_stab_function_addr. Return a bound_minimal_symbol.
3642 (read_dbx_symtab): Use raw_text_low, raw_text_high.
3643 Don't add objfile offsets.
3644 (end_psymtab): Use raw_text_low, raw_text_high,
3645 MSYMBOL_VALUE_RAW_ADDRESS.
3646 (read_ofile_symtab): Update.
3647 (process_one_symbol): Update.
3648 * dwarf2read.c (create_addrmap_from_index): Don't add objfile
3650 (dw2_relocate): Remove.
3651 (dw2_find_pc_sect_symtab): Bias PC by the text offset before
3653 (dwarf2_gdb_index_functions, dwarf2_debug_names_functions):
3655 (process_psymtab_comp_unit_reader, add_partial_symbol)
3656 (add_partial_subprogram, dwarf2_ranges_read): Update.
3657 (load_partial_dies): Update.
3658 (add_address_entry): Don't add objfile offsets.
3659 (dwarf2_build_include_psymtabs): Update.
3660 (create_addrmap_from_aranges): Don't add objfile offsets.
3661 (dw2_find_pc_sect_compunit_symtab): Update.
3662 * mdebugread.c (parse_symbol): Don't add objfile offsets.
3663 (parse_lines): Remove 'pst' parameter, replace with 'textlow'.
3665 (parse_partial_symbols): Don't add objfile offsets. Use
3666 raw_text_low, raw_text_high. Update.
3667 (handle_psymbol_enumerators, psymtab_to_symtab_1): Update.
3668 * objfiles.c (objfile_relocate1): Don't relocate psymtabs_addrmap
3669 or call 'relocate' quick function. Clear psymbol_map.
3670 * psympriv.h (struct partial_symbol) <address>: Add section
3672 <set_unrelocated_address>: Rename from set_address.
3673 <raw_text_low, raw_text_high>: New methods.
3674 <text_low, text_high>: Add objfile parameter.
3675 (add_psymbol_to_bcache): Add 'section' parameter. Call
3676 set_unrelocated_address.
3677 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3678 (find_pc_psymbol): Update.
3679 (fixup_psymbol_section, relocate_psymtabs): Remove.
3680 (dump_psymtab, psym_functions): Update.
3681 (add_psymbol_to_bcache, add_psymbol_to_list): Add 'section'
3683 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3684 (start_psymtab_common): Update.
3685 * symfile-debug.c (debug_qf_relocate): Remove.
3686 (debug_sym_quick_functions): Update.
3687 * symfile.h (struct quick_symbol_functions) <relocate>: Remove.
3688 * xcoffread.c (scan_xcoff_symtab): Don't add objfile offsets.
3691 2018-07-26 Tom Tromey <tromey@redhat.com>
3693 * dbxread.c (end_psymtab): Use text_high_valid and
3695 * mdebugread.c (parse_partial_symbols): Use text_low_valid.
3696 (psymtab_to_symtab_1): Use text_high_valid and text_low_valid.
3697 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3699 <text_low_valid, text_high_valid>: New fields.
3700 <set_text_low, set_text_high>: Update.
3701 * xcoffread.c (scan_xcoff_symtab): Use text_low_valid.
3703 2018-07-26 Tom Tromey <tom@tromey.com>
3705 * dbxread.c (read_dbx_symtab, end_psymtab, read_ofile_symtab):
3707 * dwarf2read.c (dwarf2_create_include_psymtab): Don't initialize
3708 textlow and texthigh fields.
3709 (process_psymtab_comp_unit_reader, dwarf2_build_include_psymtabs):
3711 * mdebugread.c (parse_lines, parse_partial_symbols)
3712 (psymtab_to_symtab_1): Update.
3713 * psympriv.h (struct partial_symtab) <m_text_low, m_text_high>:
3714 Rename fields. Update comment. Now private.
3715 <text_low, text_high, set_text_low, set_text_high>: New methods.
3716 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3717 (find_pc_sect_psymbol, relocate_psymtabs, dump_psymtab)
3718 (start_psymtab_common, maintenance_info_psymtabs)
3719 (maintenance_check_psymtabs): Update.
3720 * xcoffread.c (xcoff_end_psymtab): Don't initialize textlow and
3722 (scan_xcoff_symtab): Update.
3724 2018-07-26 Tom Tromey <tromey@redhat.com>
3726 * psympriv.h (struct partial_symbol) <unrelocated_address,
3727 address, set_address>: New methods.
3728 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymbol)
3729 (fixup_psymbol_section, relocate_psymtabs): Update.
3730 (print_partial_symbols): Add 'objfile' parameter. Update.
3731 (dump_psymtab, add_psymbol_to_bcache, psym_fill_psymbol_map):
3734 2018-07-26 Tom Tromey <tom@tromey.com>
3736 * dwarf-index-write.c (write_psymbols, debug_names::insert)
3737 (debug_names::write_psymbols): Update.
3738 * psympriv.h (struct partial_symbol): Derive from
3739 general_symbol_info.
3740 <obj_section>: New method.
3741 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.n
3742 * psymtab.c (find_pc_sect_psymtab_closer, find_pc_sect_psymtab)
3743 (find_pc_sect_psymbol, fixup_psymbol_section)
3744 (match_partial_symbol, lookup_partial_symbol, relocate_psymtabs)
3745 (print_partial_symbols, recursively_search_psymtabs)
3746 (compare_psymbols, psymbol_hash, psymbol_compare)
3747 (add_psymbol_to_bcache, maintenance_check_psymtabs)
3748 (psymbol_name_matches, psym_fill_psymbol_map): Update.
3750 2018-07-26 Tom Tromey <tromey@redhat.com>
3752 * dbxread.c (end_psymtab): Remove dead code.
3754 2018-07-26 Andrew Burgess <andrew.burgess@embecosm.com>
3756 * dwarf2-frame-tailcall.c (tailcall_frame_sniffer): Exit early if
3757 DWARF unwinders are disabled.
3758 * dwarf2-frame.c: Add dwarf2read.h include.
3759 (dwarf2_frame_sniffer): Exit early if DWARF unwinders are
3761 (dwarf2_frame_unwinders_enabled_p): Define.
3762 (show_dwarf_unwinders_enabled_p): New function.
3763 (_initialize_dwarf2_frame): Register switch to control DWARF
3765 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Declare.
3766 * dwarf2read.c (set_dwarf_cmdlist): Remove static keyword.
3767 (show_dwarf_cmdlist): Remove static keyword.
3768 * dwarf2read.h (set_dwarf_cmdlist): Declare.
3769 (show_dwarf_cmdlist): Declare.
3770 * NEWS: Document new feature.
3772 2018-07-26 Tom de Vries <tdevries@suse.de>
3774 PR breakpoints/23366
3775 * infcmd.c (info_program_command): Handle ptid == minus_one_ptid.
3777 2018-07-26 Tom de Vries <tdevries@suse.de>
3779 * dwarf2read.c (read_subrange_type): Warn if DW_AT_upper_bound or
3780 DW_AT_count can't be translated to a dynamic prop.
3782 2018-07-25 Tom de Vries <tdevries@suse.de>
3784 * dwarf2loc.c (dwarf2_locexpr_baton_eval): Wrap ctx.eval call in
3787 2018-07-25 Jan Vrany <jan.vrany@fit.cvut.cz>
3789 * breakpoint.c (enable_disable_bp_num_loc): Notify observers.
3791 2018-07-25 Joel Brobecker <brobecker@adacore.com>
3793 * MAINTAINERS (Global Maintainers): Add Tom Tromey.
3795 2018-07-24 Keith Seitz <keiths@redhat.comt
3798 * dwarf2read.c (dw2_add_symbol_to_list): New function.
3799 (fixup_go_packaging, new_symbol): Use dw2_add_symbol_to_list
3800 instead of add_symbol_to_list.
3801 (read_file_scope): Call prepare_one_comp_unit before reading
3804 2018-07-24 Simon Marchi <simon.marchi@ericsson.com>
3806 * common/scoped_mmap.h (class scoped_mmap): Fix indentation.
3808 2018-07-24 Tom Tromey <tom@tromey.com>
3810 * utils.c (malloc, realloc, free): Don't declare.
3811 * configure, config.in: Rebuild.
3812 * configure.ac: Don't check for declarations of free, malloc, or
3815 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3817 * aarch64-linux-nat.c
3818 (aarch64_linux_nat_target::stopped_data_address): Remove unused
3820 * arm-linux-nat.c (fetch_regs): Likewise.
3821 (store_regs): Likewise.
3822 (fetch_vfp_regs): Likewise.
3823 (store_vfp_regs): Likewise.
3824 (arm_linux_nat_target::insert_hw_breakpoint): Likewise.
3825 (arm_linux_nat_target::remove_hw_breakpoint): Likewise.
3826 (arm_linux_nat_target::insert_watchpoint): Likewise.
3827 (arm_linux_nat_target::remove_watchpoint): Likewise.
3828 * mips-linux-nat.c (mips_linux_nat_target::insert_watchpoint):
3830 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs):
3832 * ppc-linux-nat.c (fetch_register): Likewise.
3833 (fetch_all_gp_regs): Likewise.
3834 (fetch_ppc_registers): Likewise.
3835 (store_all_gp_regs): Likewise.
3836 (store_ppc_registers): Likewise.
3837 (hwdebug_insert_point): Likewise.
3838 (can_use_watchpoint_cond_accel): Likewise.
3839 * remote-sim.c (gdb_os_write_stdout): Likewise.
3841 2018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3842 Tom Tromey <tom@tromey.com>
3844 * warning.m4 (AM_GDB_WARNINGS): Add -Wunused-variable and special
3846 * configure: Rebuild.
3848 2018-07-22 Tom Tromey <tom@tromey.com>
3850 * regformats/regdat.sh: Define xmltarget_${name} inside
3851 #ifndef IN_PROCESS_AGENT.
3853 2018-07-22 Tom Tromey <tom@tromey.com>
3855 * value.c (value_fetch_lazy_bitfield): Remove unused variable.
3857 2018-07-22 Tom Tromey <tom@tromey.com>
3859 * symfile.c (reread_symbols): Notify iter, not objfile.
3861 2018-07-22 Tom Tromey <tom@tromey.com>
3863 * ravenscar-thread.c (ravenscar_thread_target::store_registers):
3865 (ravenscar_thread_target::prepare_to_store): Likewise.
3867 2018-07-22 Tom Tromey <tom@tromey.com>
3869 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Remove
3870 unused variable. Call value_fetch_lazy when needed.
3871 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
3872 Remove unused variable. Call value_fetch_lazy when needed.
3874 2018-07-22 Tom Tromey <tom@tromey.com>
3876 * m32c-tdep.c (mark_dma): Return void.
3877 (make_regs): Remove unused declarations.
3879 2018-07-22 Tom Tromey <tom@tromey.com>
3881 * guile/scm-cmd.c (gdbscm_dont_repeat): Call
3882 cmdscm_get_valid_command_smob_arg_unsafe for effect.
3883 * guile/scm-block.c (gdbscm_make_block_syms_iter): Call
3884 bkscm_get_valid_block_smob_arg_unsafe for effect.
3886 2018-07-22 Tom Tromey <tom@tromey.com>
3888 * bfin-tdep.c (bfin_push_dummy_call): Use arg_type, not
3891 2018-07-22 Tom Tromey <tom@tromey.com>
3893 * windows-nat.c (saved_context): Conditionally define.
3894 * remote.c (remote_target::remote_btrace_maybe_reopen):
3895 Conditionally declare "warned".
3896 * inflow.c (sigquit_ours): Conditionally define.
3897 (new_tty): Move "tty" declaration inside #if.
3898 * guile/guile.c (guile_datadir): Conditionally define.
3899 * charset.c (set_be_le_names): Move some declarations inside #if.
3900 * btrace.c (parse_xml_btrace): Move "errcode" declaration inside
3902 (parse_xml_btrace_conf): Likewise.
3904 2018-07-22 Tom Tromey <tom@tromey.com>
3906 * spu-tdep.c (spu_get_overlay_table): Remove unused variable.
3908 2018-07-22 Tom Tromey <tom@tromey.com>
3910 * guile/scm-value.c (gdbscm_value_call): Remove unused variables.
3911 * guile/scm-math.c (vlscm_unop_gdbthrow, vlscm_binop_gdbthrow)
3912 (vlscm_convert_typed_value_from_scheme): Remove unused variable.
3913 * buildsym-legacy.c (get_macro_table): Remove unused variable.
3914 * stack.c (frame_apply_level_command): Remove unused variable.
3915 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused variable.
3916 * sparc64-tdep.c (adi_examine_command): Remove unused variable.
3917 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call): Remove
3919 * nios2-tdep.c (nios2_push_dummy_call): Remove unused variable.
3920 * mep-tdep.c (mep_push_dummy_call): Remove unused variable.
3921 * ada-lang.c (ada_lookup_symbol_list_worker): Remove unused
3923 * amd64-tdep.c (amd64_supply_xsave): Remove unused variable.
3924 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Remove unused
3926 * breakpoint.c (check_no_tracepoint_commands, update_watchpoint):
3927 Remove unused variable.
3928 * cli/cli-script.c (recurse_read_control_structure): Remove unused
3930 * common/tdesc.c (print_xml_feature::visit): Remove unused
3932 * compile/compile-object-load.c (store_regs): Remove unused
3934 * complaints.c (clear_complaints): Remove unused variable.
3935 * corelow.c (core_target_open): Remove unused variable.
3936 * fbsd-tdep.c (fbsd_core_info_proc_status): Remove unused
3938 * guile/scm-frame.c (gdbscm_frame_read_var): Remove unused
3940 * guile/scm-symtab.c (stscm_print_sal_smob): Remove unused
3942 * guile/scm-type.c (gdbscm_field_baseclass_p): Remove unused
3944 * guile/scm-utils.c (gdbscm_parse_function_args): Remove unused
3946 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Remove unused
3948 * ia64-tdep.c (examine_prologue): Remove unused variable.
3949 * infcall.c (run_inferior_call): Remove unused variable.
3950 * inferior.c (exit_inferior): Remove unused variable.
3951 * infrun.c (infrun_thread_ptid_changed): Remove unused variable.
3952 * linespec.c (decode_line_2): Remove unused variable.
3953 * linux-nat.c (super_close): Remove.
3954 * linux-tdep.c (linux_info_proc): Remove unused variable.
3955 * mi/mi-main.c (mi_execute_command): Remove unused variable.
3956 * microblaze-linux-tdep.c (microblaze_linux_sigtramp_cache):
3957 Remove unused variable.
3958 * parse.c (find_minsym_type_and_address): Remove unused variable.
3959 * printcmd.c (info_symbol_command, printf_floating): Remove unused
3961 * python/py-breakpoint.c (bppy_set_commands): Remove unused
3963 * python/py-unwind.c (unwind_infopy_dealloc): Remove unused
3965 * record-btrace.c (record_btrace_target::store_registers): Remove
3967 (cmd_show_record_btrace_cpu): Remove unused variable.
3968 * riscv-tdep.c (riscv_register_reggroup_p)
3969 (riscv_push_dummy_call, riscv_return_value): Remove unused
3971 * rust-exp.y (literal): Remove unused variable.
3972 * rust-lang.c (rust_evaluate_subexp) <OP_RUST_ARARAY>: Remove
3974 <STRUCTOP_ANONYMOUS>: Likewise.
3975 * s390-linux-tdep.c (s390_linux_init_abi_31)
3976 (s390_linux_init_abi_64): Remove unused variable.
3977 * ser-ming2.c (ser_windows_read_prim, pipe_select_thread)
3978 (file_select_thread, net_windows_open, _initialize_ser_windows):
3979 Remove unused variables.
3980 * symtab.c (find_pc_sect_line): Remove unused variable.
3981 * target-memory.c (compute_garbled_blocks): Remove unused
3983 (target_write_memory_blocks): Remove unused variable.
3984 * target.c (target_stack::unpush): Remove unused variables.
3985 * tracepoint.c (start_tracing, all_tracepoint_actions)
3986 (merge_uploaded_trace_state_variables)
3987 (print_one_static_tracepoint_marker): Remove unused variable.
3988 * unittests/basic_string_view/element_access/char/1.cc (test01):
3989 Remove unused variable.
3990 * windows-nat.c (windows_continue, windows_add_all_dlls)
3991 (do_initial_windows_stuff, windows_nat_target::create_inferior):
3992 Remove unused variables.
3994 2018-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3996 * arm-tdep.c (arm_gdbarch_init): Declare attr_arch and
3997 attr_profile in HAVE_ELF.
3998 * rs6000-tdep.c (bfd_uses_spe_extensions): Declare vector_abi in
4001 2018-07-20 Simon Marchi <simon.marchi@polymtl.ca>
4003 * frame.c (frame_register_unwind): Change parameter name.
4004 (frame_unwind_register): Likewise.
4005 (frame_unwind_register_value): Likewise.
4006 (frame_unwind_register_signed): Likewise.
4007 (frame_unwind_register_unsigned): Likewise.
4008 * frame.h (frame_register_unwind): Likewise.
4009 (frame_unwind_register): Likewise.
4010 (frame_unwind_register_value): Likewise.
4011 (frame_unwind_register_signed): Likewise.
4012 (frame_unwind_register_unsigned): Likewise.
4013 (frame_unwind_arch): Likewise.
4015 2018-07-20 Maciej W. Rozycki <macro@mips.com>
4017 * MAINTAINERS: Update my e-mail address, downgrade to MIPS I-IV
4020 2018-07-20 Maciej W. Rozycki <macro@mips.com>
4022 * mips-linux-nat.c (mips_linux_nat_target::read_description):
4023 Call `get_ptrace_pid' rather than extracting the ptrace PID by
4026 2018-07-20 Keith Seitz <keiths@redhat.com>
4028 * buildsym.h (struct buildsym_compunit) <m_objfile, m_subfiles,
4029 m_main_subfile, m_comp_dir, m_producer, m_debugformat,
4030 m_compunit_symtab, m_language>: Add "m_" prefix.
4032 * buildsym.c: Update all uses.
4034 2018-07-20 Tom Tromey <tom@tromey.com>
4036 * buildsym-legacy.h (record_line): Don't use record_line_ftype.
4037 * buildsym.h (record_line_ftype): Remove typedef.
4039 2018-07-20 Tom Tromey <tom@tromey.com>
4041 * buildsym-legacy.h (augment_type_symtab): Don't declare.
4042 (end_expandable_symtab): Likewise.
4043 (end_symtab_get_static_block): Likewise.
4044 (end_symtab_from_static_block): Likewise.
4045 * buildsym-legacy.c (augment_type_symtab): Remove.
4046 (end_expandable_symtab): Remove.
4047 (end_symtab_get_static_block): Remove.
4048 (end_symtab_from_static_block): Remove.
4050 2018-07-20 Tom Tromey <tom@tromey.com>
4052 * dwarf2read.c: Include buildsym.h.
4053 (struct dwarf2_cu) <builder>: New method.
4054 (fixup_go_packaging): Update.
4055 (process_full_comp_unit, process_full_type_unit): Update. Don't
4056 use scoped_free_pendings.
4057 (using_directives): Add "cu" parameter, remove "language".
4058 (read_import_statement, setup_type_unit_groups, )
4059 (read_func_scope, read_lexical_block_scope)
4060 (dwarf2_record_block_ranges, read_namespace): Update.
4061 (lnp_state_machine::lnp_state_machine): Add cu parameter.
4062 (lnp_state_machine::handle_end_sequence): Update.
4063 (class lnp_state_machine) <m_cu>: New member.
4064 <m_record_line_callback>: Remove.
4065 <m_currently_recording_lines>: New member.
4066 (lnp_state_machine::handle_set_file): Update.
4067 (noop_record_line): Remove.
4068 (dwarf_record_line_p): Add cu parameter.
4069 (dwarf_record_line_1, dwarf_finish_line): Likewise.
4070 (lnp_state_machine::record_line)
4071 (lnp_state_machine::lnp_state_machine)
4072 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
4073 (dwarf_decode_lines): Update.
4074 (dwarf2_start_subfile): Add cu parameter.
4075 (dwarf2_start_symtab, new_symbol): Update.
4076 (macro_start_file, dwarf_decode_macro_bytes): Add cu parameter.
4077 Remove dwarf2_per_objfile parameter.
4078 (dwarf_decode_macros): Update.
4080 2018-07-20 Tom Tromey <tom@tromey.com>
4082 * stabsread.c (define_symbol): Update.
4083 * buildsym-legacy.h (get_buildsym_compunit): Declare.
4084 * dwarf2read.c (new_symbol): Update.
4085 * cp-support.h (cp_scan_for_anonymous_namespaces): Update.
4086 * cp-namespace.c: Include buildsym.h.
4087 (cp_scan_for_anonymous_namespaces): Add "compunit" parameter.
4088 * buildsym-legacy.c (get_buildsym_compunit): New function.
4090 2018-07-20 Tom Tromey <tom@tromey.com>
4092 * xcoffread.c: Include buildsym-legacy.h.
4093 * windows-nat.c: Include buildsym-legacy.h.
4094 * stabsread.c: Include buildsym-legacy.h.
4095 * mdebugread.c: Include buildsym-legacy.h.
4096 * buildsym-legacy.h: New file.
4097 * buildsym-legacy.c: New file, from buildsym.c.
4098 * go32-nat.c: Include buildsym-legacy.h.
4099 * dwarf2read.c: Include buildsym-legacy.h.
4100 * dbxread.c: Include buildsym-legacy.h.
4101 * cp-namespace.c: Include buildsym-legacy.h.
4102 * coffread.c: Include buildsym-legacy.h.
4103 * buildsym.h: Move some contents to buildsym-legacy.h.
4104 * buildsym.c: Include buildsym-legacy.h. Move many functions to
4106 * Makefile.in (HFILES_NO_SRCDIR): Add buildsym-legacy.h.
4108 2018-07-20 Tom Tromey <tom@tromey.com>
4110 * buildsym.h (struct buildsym_compunit): Move from buildsym.c.
4111 * buildsym.c (struct buildsym_compunit): Move to buildsym.h.
4112 (buildsym_compunit::buildsym_compunit)
4113 (buildsym_compunit::~buildsym_compunit)
4114 (buildsym_compunit::get_macro_table): Define.
4116 2018-07-20 Tom Tromey <tom@tromey.com>
4118 * buildsym.c (reset_symtab_globals): Remove.
4119 (buildsym_compunit::end_symtab_from_static_block): Update.
4120 (buildsym_compunit::augment_type_symtab): Update.
4121 (end_symtab_from_static_block): Call free_buildsym_compunit.
4122 (augment_type_symtab, end_symtab, end_expandable_symtab):
4125 2018-07-20 Tom Tromey <tom@tromey.com>
4127 * arch-utils.c: Do not include buildsym.h.
4128 * mipsread.c: Do not include buildsym.h.
4129 * machoread.c: Do not include buildsym.h.
4130 * elfread.c: Do not include buildsym.h.
4132 2018-07-20 Tom Tromey <tom@tromey.com>
4134 * buildsym.c (buildsym_compunit::buildsym_compunit): Do more
4136 (buildsym_compunit): Add new constructor.
4137 (struct buildsym_compunit) <get_last_source_file, finish_block,
4138 record_block_range, start_subfile, patch_subfile_names,
4139 push_subfile, pop_subfile, record_line, get_compunit_symtab,
4140 set_last_source_start_addr, get_last_source_start_addr,
4141 get_local_using_directives, set_local_using_directives,
4142 get_global_using_directives, outermost_context_p,
4143 get_current_context_stack, get_context_stack_depth,
4144 get_current_subfile, get_local_symbols, get_file_symbols,
4145 get_global_symbols, record_debugformat, record_producer,
4146 push_context, pop_context, end_symtab_get_static_block,
4147 end_symtab_from_static_block, end_symtab, end_expandable_symtab>:
4149 <record_pending_block, finish_block_internal, make_blockvector,
4150 watch_main_source_file_lossage, end_symtab_with_blockvector>: New
4154 2018-05-22 Tom Tromey <tom@tromey.com>
4156 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4158 (finish_block_internal): Update.
4160 2018-07-20 Tom Tromey <tom@tromey.com>
4162 * buildsym.c (record_pending_block): Move earlier. Remove objfile
4164 (finish_block_internal): Update.
4166 2018-07-20 Tom Tromey <tom@tromey.com>
4168 * buildsym.h (EXTERN): Don't define or undef.
4169 * buildsym.c (EXTERN): Don't define.
4171 2018-07-20 Tom Tromey <tom@tromey.com>
4173 * buildsym.c: Remove TODO comment.
4175 2018-07-20 Tom Tromey <tom@tromey.com>
4177 * coffread.c (coff_symtab_read): Update.
4178 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4179 (xcoff_new_init): Update.
4180 * mipsread.c (mipscoff_new_init): Update.
4181 * mdebugread.c (mdebug_build_psymtabs): Update.
4182 * elfread.c (elf_new_init): Update.
4183 * dwarf2read.c (process_full_comp_unit, process_full_type_unit):
4185 * dbxread.c (dbx_new_init, dbx_psymtab_to_symtab_1)
4186 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4187 (stabsect_build_psymtabs): Update.
4188 * buildsym.h (buildsym_init): Don't declare.
4189 * buildsym.c: Update comment.
4190 (prepare_for_building): Remove.
4191 (start_symtab, restart_symtab): Update.
4192 (reset_symtab_globals): Update comment.
4193 (buildsym_init): Remove.
4195 2018-07-20 Tom Tromey <tom@tromey.com>
4197 * xcoffread.c (read_xcoff_symtab, process_xcoff_symbol): Update.
4198 * stabsread.c (patch_block_stabs, define_symbol, read_type)
4199 (read_enum_type, common_block_start, common_block_end)
4200 (cleanup_undefined_types_1, finish_global_stabs): Update.
4201 * mdebugread.c (psymtab_to_symtab_1): Update.
4202 * dwarf2read.c (fixup_go_packaging, read_func_scope)
4203 (read_lexical_block_scope, new_symbol): Update.
4204 * dbxread.c (process_one_symbol): Update.
4205 * coffread.c (coff_symtab_read, process_coff_symbol)
4206 (coff_read_enum_type): Update.
4207 * buildsym.h (file_symbols, global_symbols, local_symbols): Don't
4209 (get_local_symbols, get_file_symbols, get_global_symbols): New
4211 * buildsym.c (~buildsym_compunit): Clean up m_file_symbols and
4213 <m_file_symbols, m_local_symbols, m_global_symbols>: New members.
4214 (~scoped_free_pendings): Update.
4215 (finish_block, prepare_for_building, reset_symtab_globals)
4216 (end_symtab_get_static_block, end_symtab_with_blockvector)
4217 (augment_type_symtab, push_context): Update.
4218 (get_local_symbols, get_file_symbols, get_global_symbols): New
4220 (buildsym_init): Update.
4222 2018-07-20 Tom Tromey <tom@tromey.com>
4224 * dwarf2read.c (process_full_comp_unit): Do not set list_in_scope.
4225 (process_full_type_unit): Likewise.
4226 (dwarf2_start_symtab): Set list_in_scope.
4228 2018-07-20 Tom Tromey <tom@tromey.com>
4230 * dwarf2read.c (process_psymtab_comp_unit_reader)
4231 (build_type_psymtabs_reader): Do not set list_in_scope.
4233 2018-07-20 Tom Tromey <tom@tromey.com>
4235 * buildsym.c (free_pendings): Remove.
4236 (add_symbol_to_list, scoped_free_pendings)
4237 (finish_block_internal, buildsym_init): Update.
4239 2018-07-20 Tom Tromey <tom@tromey.com>
4241 * xcoffread.c (read_xcoff_symtab): Update.
4242 * dwarf2read.c (read_func_scope, read_lexical_block_scope):
4244 * dbxread.c (process_one_symbol): Update.
4245 * coffread.c (coff_symtab_read): Update.
4246 * buildsym.h (finish_block): Update.
4247 * buildsym.c (finish_block): Remove "listhead" argument.
4248 (end_symtab_get_static_block): Update.
4250 2018-07-20 Tom Tromey <tom@tromey.com>
4252 * buildsym.h (class scoped_free_pendings): Remove constructor.
4253 * buildsym.c (struct buildsym_compunit) <free_pending_blocks>: New
4255 <m_pending_block_obstack, m_pending_blocks>: New members.
4256 (pending_block_obstack, pending_blocks): Remove.
4257 (scoped_free_pendings::scoped_free_pendings): Default.
4258 (~scoped_free_pendings): Update.
4259 (free_pending_blocks): Remove.
4260 (finish_block_internal, record_pending_block, make_blockvector)
4261 (end_symtab_get_static_block, augment_type_symtab, push_context)
4262 (buildsym_init): Update.
4264 2018-07-20 Tom Tromey <tom@tromey.com>
4266 * buildsym.c (struct buildsym_compunit) <m_pending_addrmap,
4267 m_pending_addrmap_obstack, m_pending_addrmap_interesting>: New
4269 (pending_addrmap, pending_addrmap_obstack)
4270 (pending_addrmap_interesting): Remove.
4271 (scoped_free_pendings, record_block_range, make_blockvector)
4272 (prepare_for_building, reset_symtab_globals, buildsym_init):
4275 2018-07-20 Tom Tromey <tom@tromey.com>
4277 * xcoffread.c (process_linenos): Update.
4278 * stabsread.c (define_symbol, read_type, read_enum_type): Update.
4279 * mdebugread.c (psymtab_to_symtab_1): Update.
4280 * dwarf2read.c (setup_type_unit_groups)
4281 (lnp_state_machine::handle_set_file, dwarf_record_line_p)
4282 (lnp_state_machine::record_line, dwarf_decode_lines): Update.
4283 * dbxread.c (process_one_symbol): Update.
4284 * coffread.c (coff_symtab_read, enter_linenos)
4285 (process_coff_symbol): Update.
4286 * buildsym.h (current_subfile): Don't declare.
4287 (get_current_subfile): Declare.
4288 * buildsym.c (struct buildsym_compunit) <m_current_subfile>: New
4290 (start_subfile, free_buildsym_compunit, push_subfile)
4291 (prepare_for_building, start_symtab): Update.
4292 (get_current_subfile): New function.
4294 2018-07-20 Tom Tromey <tom@tromey.com>
4296 * coffread.c (coff_symtab_read): Update.
4297 * xcoffread.c (read_xcoff_symtab): Update.
4298 * dwarf2read.c (new_symbol): Update.
4299 (read_func_scope, read_lexical_block_scope): Update.
4300 * dbxread.c (process_one_symbol): Update.
4301 * buildsym.h (context_stack, context_stack_depth): Don't declare.
4302 (outermost_context_p): Remove macro.
4303 (outermost_context_p, get_current_context_stack)
4304 (get_context_stack_depth): Declare.
4305 (pop_context): Return struct context_stack.
4306 * buildsym.c (struct buildsym_compunit) <m_context_stack: New
4308 (context_stack_size): Remove.
4309 (INITIAL_CONTEXT_STACK_SIZE): Remove.
4310 (prepare_for_building, end_symtab_get_static_block)
4311 (augment_type_symtab, push_context): Update.
4312 (pop_context): Return struct context_stack.
4313 (outermost_context_p, get_current_context_stack)
4314 (get_context_stack_depth): New functions.
4315 (buildsym_init): Update.
4317 2018-07-20 Tom Tromey <tom@tromey.com>
4319 * rust-exp.y: Now a pure parser. Update all rules.
4320 (%union): Move earlier.
4321 (current_parser, work_obstack): Remove globals.
4322 (rust_parser, ~rust_parser): Update.
4323 (class rust_parser) <copy_name, concat3, crate_name, super_name,
4324 lex_character, lex_number, lex_string, lex_identifier,
4325 rust_lookup_type, convert_params_to_types, convert_ast_to_type,
4326 convert_name, convert_params_to_expression,
4327 convert_ast_to_expression, ast_basic_type, ast_operation,
4328 ast_compound_assignment, rust_op, ast_literal, ast_dliteral,
4329 ast_structop, ast_structop_anonymous, ast_unary, ast_cast,
4330 ast_call_ish, ast_path, ast_string, ast_struct, ast_range,
4331 ast_array_type, ast_slice_type, ast_reference_type,
4332 ast_pointer_type, ast_function_type, ast_tuple_type>: New methods.
4333 (rust_parse): Update.
4334 (rustyyerror, rustyylex): Add parser parameter.
4335 (rust_lex_test_one, rust_lex_int_test, rust_lex_exception_test)
4336 (rust_lex_stringish_test, rust_lex_test_sequence)
4337 (rust_lex_test_trailing_dot, rust_lex_test_completion)
4338 (rust_lex_test_push_back, rust_lex_tests): Update.
4340 2018-07-19 Pedro Alves <palves@redhat.com>
4342 * guile/guile-internal.h (gdbscm_scm_to_c_string): Now returns a
4343 gdb::unique_xmalloc_ptr.
4344 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x):
4345 Adjust to use dbscm_wrap and gdb::unique_xmalloc_ptr.
4346 * guile/scm-exception.c (gdbscm_exception_message_to_string): Use
4347 copy-initialization.
4348 * guile/scm-pretty-print.c (ppscm_print_children): Use
4349 gdb::unique_xmalloc_ptr instead of cleanups.
4350 (gdbscm_apply_val_pretty_printer): Remove cleanups.
4351 * guile/scm-string.c (gdbscm_scm_to_c_string): Now returns a
4352 gdb::unique_xmalloc_ptr.
4353 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4354 Adjust to use gdb::unique_xmalloc_ptr.
4355 * guile/scm-utils.c (extract_arg): Adjust.
4356 * guile/scm-value.c (gdbscm_value_field): Adjust to use
4357 gdb::unique_xmalloc_ptr instead of a cleanup.
4359 2018-07-19 Tom Tromey <tom@tromey.com>
4361 * utils.c (do_value_free_to_mark)
4362 (make_cleanup_value_free_to_mark): Remove.
4363 * utils.h (make_cleanup_value_free_to_mark): Remove.
4365 2018-07-19 Pedro Alves <palves@redhat.com>
4367 * guile/guile-internal.h (gdbscm_wrap): Really make 'args' a
4368 forwarding reference.
4370 2018-07-18 Pedro Alves <palves@redhat.com>
4372 * guile/guile.c (gdbscm_execute_gdb_command): Adjust to use
4373 gdbscm_wrap. Use gdb::unique_xmalloc_ptr<char> instead of a
4376 2018-07-18 Pedro Alves <palves@redhat.com>
4378 * guile/guile-internal.h: Add comment about mixing GDB and Scheme
4380 (GDBSCM_HANDLE_GDB_EXCEPTION_WITH_CLEANUPS): Delete.
4382 * guile/scm-frame.c (gdbscm_frame_read_register): Use xfree
4383 directly instead of a cleanup.
4384 * guile/scm-math.c (vlscm_unop_gdbthrow): New, factored out from ...
4385 (vlscm_unop): ... this. Reimplement using gdbscm_wrap.
4386 (vlscm_binop_gdbthrow): New, factored out from ...
4387 (vlscm_binop): ... this. Reimplement using gdbscm_wrap.
4388 (vlscm_rich_compare): Use gdbscm_wrap.
4389 * guile/scm-symbol.c (gdbscm_lookup_symbol): Use xfree directly
4390 instead of a cleanup.
4391 (gdbscm_lookup_global_symbol): Use xfree directly instead of a
4393 * guile/scm-type.c (gdbscm_type_field, gdbscm_type_has_field_p):
4394 Use xfree directly instead of a cleanup.
4395 * guile/scm-value.c (gdbscm_make_value, gdbscm_make_lazy_value):
4396 Adjust to use gdbscm_wrap and scoped_value_mark.
4397 (gdbscm_value_optimized_out_p): Adjust to use gdbscm_wrap.
4398 (gdbscm_value_address, gdbscm_value_dereference)
4399 (gdbscm_value_referenced_value): Adjust to use gdbscm_wrap and
4401 (gdbscm_value_dynamic_type): Use scoped_value_mark.
4402 (vlscm_do_cast, gdbscm_value_field): Adjust to use gdbscm_wrap and
4404 (gdbscm_value_subscript, gdbscm_value_call): Adjust to use
4405 gdbscm_wrap and scoped_value_mark.
4406 (gdbscm_value_to_string): Use xfree directly instead of a
4407 cleanup. Move 'buffer' unique_ptr to TRY scope.
4408 (gdbscm_value_to_lazy_string): Use xfree directly instead of a
4409 cleanup. Move 'buffer' unique_ptr to TRY scope. Use
4411 (gdbscm_value_fetch_lazy_x): Use gdbscm_wrap.
4412 (gdbscm_parse_and_eval): Adjust to use gdbscm_wrap and
4414 (gdbscm_history_ref, gdbscm_history_append_x): Adjust to use
4417 2018-07-18 Tom de Vries <tdevries@suse.de>
4419 * findvar.c (default_read_var_value): Also resolve dynamic type for
4420 LOC_OPTIMIZED_OUT vars.
4422 2018-07-18 Maciej W. Rozycki <macro@mips.com>
4424 * mips-tdep.c (micromips_next_pc): Add SYSCALL instruction
4427 2018-07-17 Tom Tromey <tom@tromey.com>
4429 * guile/scm-param.c (pascm_set_func, pascm_show_func)
4430 (compute_enum_list, pascm_set_param_value_x)
4431 (gdbscm_parameter_value): Update.
4432 * guile/guile-internal.h (gdbscm_scm_to_string): Update.
4433 (gdbscm_scm_to_host_string): Update.
4434 * guile/scm-math.c (vlscm_convert_typed_value_from_scheme):
4436 * guile/scm-cmd.c (cmdscm_add_completion): Update.
4437 * guile/scm-pretty-print.c (ppscm_print_string_repr): Update.
4438 * guile/scm-string.c (gdbscm_scm_to_string): Return
4440 (gdbscm_scm_to_host_string): Likewise.
4442 2018-07-17 Tom Tromey <tom@tromey.com>
4444 * guile/guile.c (gdbscm_eval_from_control_command): Update.
4445 * guile/guile-internal.h (gdbscm_safe_eval_string): Update.
4446 * guile/scm-objfile.c (gdbscm_execute_objfile_script): Update.
4447 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Return
4450 2018-07-17 Tom Tromey <tom@tromey.com>
4452 * guile/scm-param.c (pascm_signal_setshow_error): Update.
4453 * guile/guile-internal.h (gdbscm_exception_message_to_string):
4455 * guile/scm-cmd.c (cmdscm_function): Update.
4456 * guile/scm-pretty-print.c
4457 (ppscm_print_exception_unless_memory_error): Update.
4458 * guile/scm-exception.c (gdbscm_exception_message_to_string):
4459 Return unique_xmalloc_ptr.
4461 2018-07-17 Tom Tromey <tom@tromey.com>
4463 * guile/scm-pretty-print.c (ppscm_make_pp_type_error_exception):
4466 2018-07-17 Jim Wilson <jimw@sifive.com>
4468 * riscv-tdep.c (riscv_has_feature): Delete comment that refers to
4469 set_gdbarch_decr_pc_after_break. Call riscv_read_misa_reg always.
4470 (riscv_gdbarch_init): Delete local has_compressed_isa. Delete now
4471 unecessary braces after EF_RISCV_RVC test. Delete call to
4472 set_gdbarch_decr_pc_after_break.
4474 * riscv-tdep.h (DECLARE_CSR): Use RISCV_FIRST_CSR_REGNUM instead of
4475 RISCV_LAST_FP_REGNUM + 1.
4476 (RSICV_CSR_LEGACY_MISA_REGNUM): Add RISCV_FIRST_CSR_REGNUM.
4478 2018-07-17 Tom Tromey <tom@tromey.com>
4480 * configure.ac: Remove --disable-gdbcli.
4481 * configure: Rebuild.
4482 * Makefile.in (SUBDIR_CLI_DEPS, SUBDIR_CLI_LDFLAGS)
4483 (SUBDIR_CLI_CFLAGS): Remove.
4484 (SFILES): Use SUBDIR_CLI_SRCS.
4485 (COMMON_OBS): Use SUBDIR_CLI_OBS.
4487 2018-07-17 Tom Tromey <tom@tromey.com>
4490 * coffread.c (coff_symtab_read): Use scoped_free_pendings.
4492 2018-07-16 Jim Wilson <jimw@sifive.com>
4494 * riscv-tdep.c (riscv_gdbarch_init): Call gdbarch_init_osabi.
4496 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4498 * ia64-libunwind-tdep.c (libunwind_frame_cache): Remove unused
4500 (libunwind_frame_sniffer): Likewise.
4501 (libunwind_frame_prev_register): Likewise.
4502 (libunwind_sigtramp_frame_sniffer): Likewise.
4503 * ia64-tdep.c (ia64_access_reg): Likewise.
4504 (ia64_access_rse_reg): Likewise.
4505 (ia64_libunwind_sigtramp_frame_this_id): Likewise.
4506 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Likewise.
4508 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4510 * ia64-vms-tdep.c (ia64_vms_find_proc_info_x): Add cast.
4512 2018-07-16 Simon Marchi <simon.marchi@ericsson.com>
4514 * remote-sim.c (gdbsim_target::close,
4515 gdbsim_target::mourn_inferior): Remove unused variables.
4517 2018-07-16 Simon Marchi <simon.marchi@polymtl.ca>
4519 * ia64-tdep.c (ktab_buf): New global.
4520 (getunwind_table): Return a gdb::optional<gdb::byte_vector>.
4521 (get_kernel_table): Adjust.
4523 2018-07-16 Tom Tromey <tom@tromey.com>
4525 * xcoffread.c (read_xcoff_symtab): Use outermost_context_p.
4526 * dwarf2read.c (using_directives, new_symbol): Use
4527 outermost_context_p.
4528 * dbxread.c (process_one_symbol): Use outermost_context_p.
4529 * coffread.c (coff_symtab_read): Use outermost_context_p.
4531 2018-07-16 Tom Tromey <tom@tromey.com>
4533 * dwarf2read.c (using_directives, read_func_scope)
4534 (read_lexical_block_scope): Update.
4535 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4536 * buildsym.h (local_using_directives, global_using_directives):
4538 (get_local_using_directives, set_local_using_directives)
4539 (get_global_using_directives): Declare.
4540 * buildsym.c (struct buildsym_compunit) <m_local_using_directives,
4541 m_global_using_directives>: New members.
4542 (finish_block_internal, prepare_for_building)
4543 (reset_symtab_globals, end_symtab_get_static_block)
4544 (push_context): Update.
4545 (get_local_using_directives, set_local_using_directives)
4546 (get_global_using_directives): New functions.
4547 (buildsym_init): Update.
4549 2018-07-16 Tom Tromey <tom@tromey.com>
4551 * xcoffread.c (xcoff_initial_scan): Don't call
4552 free_pending_blocks.
4553 * dbxread.c (dbx_symfile_read): Don't call free_pending_blocks.
4554 * buildsym.h (class scoped_free_pendings): Add constructor.
4555 (free_pending_blocks): Don't declare.
4556 * buildsym.c (scoped_free_pendings::scoped_free_pendings): New.
4557 (free_pending_blocks): Now static.
4559 2018-07-16 Tom Tromey <tom@tromey.com>
4561 * buildsym.h (push_subfile, pop_subfile): Update declarations.
4562 * buildsym.c (struct buildsym_compunit) <m_subfile_stack>: New
4564 (struct subfile_stack): Remove.
4565 (subfile_stack): Remove.
4566 (push_subfile, pop_subfile, buildsym_init): Update.
4568 2018-07-16 Tom Tromey <tom@tromey.com>
4570 * buildsym.c (push_subfile): Use gdb_assert.
4571 (pop_subfile): Use gdb_assert.
4573 2018-07-16 Tom Tromey <tom@tromey.com>
4575 * buildsym.h (merge_symbol_lists): Remove.
4576 * buildsym.c (merge_symbol_lists): Remove.
4578 2018-07-16 Tom Tromey <tom@tromey.com>
4580 * stabsread.c (scan_file_globals): Update comment.
4581 * stabsread.h (scan_file_globals): Move from buildsym.h.
4582 * buildsym.h (scan_file_globals): Move to stabsread.h.
4584 2018-07-16 Tom Tromey <tom@tromey.com>
4586 * xcoffread.c (xcoff_new_init): Update.
4587 * mipsread.c (mipscoff_new_init): Update.
4588 * mdebugread.c (mdebug_build_psymtabs): Update.
4589 * elfread.c (elf_new_init): Update.
4590 * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
4591 (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
4592 * buildsym.h (buildsym_new_init): Don't declare.
4593 * buildsym.c (buildsym_new_init): Remove.
4595 2018-07-16 Tom Tromey <tom@tromey.com>
4597 * stabsread.h (within_function): Move from buildsym.h.
4598 * stabsread.c (start_stabs): Clear within_function.
4599 * coffread.c (coff_start_symtab): Clear within_function.
4600 * buildsym.h (within_function): Move to stabsread.h.
4601 * buildsym.c (prepare_for_building): Update.
4603 2018-07-16 Tom Tromey <tom@tromey.com>
4605 * stabsread.h (processing_gcc_compilation): Move from buildsym.h.
4606 * dwarf2read.c (dwarf2_start_symtab): Don't set
4607 processing_gcc_compilation.
4608 * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
4610 2018-07-16 Tom Tromey <tom@tromey.com>
4612 * stabsread.h (HASHSIZE, hashname, symnum, next_symbol_text)
4613 (next_symbol_text_func): Move from buildsym.h.
4614 * stabsread.c (hashname): Move from buildsym.c.
4615 * buildsym.h (HASHSIZE, symnum, next_symbol_text)
4616 (next_symbol_text_func, hashname): Move to stabsread.h.
4617 * buildsym.c: Don't include bcache.h
4618 (hashname): Move to stasbread.c.
4620 2018-07-16 Tom Tromey <tom@tromey.com>
4622 * buildsym.h (context_stack_size): Don't declare.
4623 * buildsym.c (context_stack_size): New global.
4625 2018-07-16 Tom Tromey <tom@tromey.com>
4627 * dbxread.c (processing_acc_compilation): New global.
4628 * buildsym.h (processing_acc_compilation): Don't declare.
4630 2018-07-16 Tom Tromey <tom@tromey.com>
4632 * xcoffread.c (aix_process_linenos, complete_symtab): Update.
4633 * dbxread.c (read_ofile_symtab): Update.
4634 * coffread.c (coff_start_symtab, coff_end_symtab): Update.
4635 * buildsym.h (last_source_start_addr): Remove.
4636 (set_last_source_start_addr, get_last_source_start_addr):
4638 * buildsym.c (buildsym_compunit::buildsym_compunit): Add last_addr
4640 (struct buildsym_compunit) <m_last_source_start_addr>: New
4642 (prepare_for_building): Remove start_addr parameter.
4643 (start_symtab, restart_symtab, end_symtab_get_static_block)
4644 (end_symtab_with_blockvector): Update.
4645 (set_last_source_start_addr, get_last_source_start_addr): New
4648 2018-07-16 Tom Tromey <tom@tromey.com>
4650 * buildsym.c (struct buildsym_compunit) <m_have_line_numbers>: New
4652 (have_line_numbers): Remove.
4653 (record_line, prepare_for_building, end_symtab_get_static_block)
4654 (augment_type_symtab): Update.
4656 2018-07-16 Tom Tromey <tom@tromey.com>
4658 * buildsym.c (~buildsym_compunit): Free the macro table.
4659 (struct buildsym_compunit) <get_macro_table, release_macros>: New
4661 <m_pending_macros>: New member.
4662 (pending_macros): Remove.
4663 (~scoped_free_pendings, get_macro_table, prepare_for_building)
4664 (reset_symtab_globals, end_symtab_get_static_block)
4665 (end_symtab_with_blockvector, augment_type_symtab)
4666 (buildsym_init): Update.
4668 2018-07-16 Tom Tromey <tom@tromey.com>
4670 * buildsym.c (buildsym_compunit::buildsym_compunit): Add name
4672 (buildsym_compunit::set_last_source_file): New method.
4673 <m_last_source_file>: New member.
4674 (prepare_for_building): Remove "name" parameter.
4675 (start_symtab, restart_symtab, reset_symtab_globals): Update.
4676 (last_source_file): Remove.
4677 (set_last_source_file, get_last_source_file): Update.
4679 2018-07-16 Tom Tromey <tom@tromey.com>
4681 * buildsym.c (prepare_for_building): Add assert.
4683 2018-07-16 Tom Tromey <tom@tromey.com>
4685 * buildsym.c (~buildsym_compunit): Update.
4686 (struct buildsym_compunit) <comp_unit>: Now a unique_xmalloc_ptr.
4687 (start_subfile, patch_subfile_names)
4688 (end_symtab_with_blockvector): Update.
4690 2018-07-16 Tom Tromey <tom@tromey.com>
4692 * buildsym.c (struct buildsym_compunit): Add constructor,
4693 destructor, initializers.
4694 (start_buildsym_compunit): Remove.
4695 (free_buildsym_compunit): Use "delete".
4696 (start_symtab, restart_symtab): Use "new".
4698 2018-07-13 Simon Marchi <simon.marchi@polymtl.ca>
4700 * symfile.c (set_objfile_default_section_offset): Remove struct
4703 2018-07-14 Stafford Horne <shorne@gmail.com>
4705 * (Responsible Maintainers): Add myself as or1k maintainer.
4707 2018-07-13 Tom Tromey <tom@tromey.com>
4709 * symfile.c (set_objfile_default_section_offset): Use extra braces
4712 2018-07-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
4714 * s390-tdep.c (s390_displaced_step_fixup): Adjust PC for a
4717 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4719 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4720 unittests/cli-utils-selftests.c
4721 * unittests/cli-utils-selftests.c: New file.
4723 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4725 * NEWS: Mention new commands. Mention change to 'thread apply'.
4727 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4729 * thread.c (thr_try_catch_cmd): New function.
4730 (thread_apply_all_command): Handle qcs flags.
4731 (thread_apply_command): Handle qcs flags.
4732 (taas_command): New function.
4733 (tfaas_command): New function.
4734 (_initialize_thread): Update to setup the new commands 'taas
4735 and 'tfaas'. Change doc string for 'thread apply'.
4737 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4739 * stack.c: (trailing_outermost_frame): New function, mostly
4740 extracted from backtrace_command_1.
4741 (leading_innermost_frame): New function.
4742 (backtrace_command_1): Update to call trailing_outermost_frame.
4743 (frame_apply_command_count): New function.
4744 (frame_apply_level_command): New function.
4745 (frame_apply_all_command): New function.
4746 (frame_apply_command): New function.
4747 (faas_command): New function.
4748 (frame_cmd_list): New variable.
4749 (_initialize_stack): Update to setup the new commands 'frame apply'
4752 2018-07-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4754 * cli-utils.c (number_or_range_parser::get_number): Only handle
4755 numbers or convenience var as numbers.
4756 (parse_flags): New function.
4757 (parse_flags_qcs): New function.
4758 (number_or_range_parser::finished): Ensure parsing end is detected
4759 before end of string.
4760 * cli-utils.h (parse_flags): New function.
4761 (parse_flags_qcs): New function.
4762 (number_or_range_parser): Remove m_finished bool.
4763 (number_or_range_parser::skip_range): Set m_in_range to false.
4765 2018-07-12 Sergio Durigan Junior <sergiodj@redhat.com>
4767 * ser-tcp.c (try_connect): Declare 'ioarg' as 'u_long' if building
4770 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4771 Jan Kratochvil <jan.kratochvil@redhat.com>
4772 Paul Fertser <fercerpav@gmail.com>
4773 Tsutomu Seki <sekiriki@gmail.com>
4774 Pedro Alves <palves@redhat.com>
4776 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4777 'unittests/parse-connection-spec-selftests.c'.
4778 (COMMON_SFILES): Add 'common/netstuff.c'.
4779 (HFILES_NO_SRCDIR): Add 'common/netstuff.h'.
4780 * NEWS (Changes since GDB 8.2): Mention IPv6 support.
4781 * common/netstuff.c: New file.
4782 * common/netstuff.h: New file.
4783 * ser-tcp.c: Include 'netstuff.h' and 'wspiapi.h'.
4784 (wait_for_connect): Update comment. New parameter
4785 'gdb::optional<int> sock' instead of 'struct serial *scb'.
4786 Use 'sock' directly instead of 'scb->fd'.
4787 (try_connect): New function, with code from 'net_open'.
4788 (net_open): Rewrite main loop to deal with multiple
4789 sockets/addresses. Handle IPv6-style hostnames; implement
4790 support for IPv6 connections.
4791 * unittests/parse-connection-spec-selftests.c: New file.
4793 2018-07-11 Pedro Alves <palves@redhat.com>
4796 * remote.c (remote_target::remote_detach_pid): Call
4797 set_current_process.
4799 2018-07-11 Pedro Alves <palves@redhat.com>
4801 * h8300-tdep.c (h8300_gdbarch_init): Remove
4802 set_gdbarch_ecoff_reg_to_regnum calls.
4804 2018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
4807 * c-typeprint.c (c_type_print_base_struct_union): Don't print
4808 offsets/sizes for static members of a class/struct.
4810 2018-07-11 Alan Hayward <alan.hayward@arm.com>
4812 * target-descriptions.c (tdesc_register_bitsize): Rename.
4813 * target-descriptions.h (tdesc_register_bitsize): Likewise.
4814 * rs6000-tdep.c (rs6000_gdbarch_init): Use new name.
4815 * aarch64-tdep.c (aarch64_get_tdesc_vq): Convert size.
4817 2018-07-10 Tom Tromey <tom@tromey.com>
4819 * breakpoint.c (moribund_locations): Now static and a
4821 (breakpoint_init_inferior, moribund_breakpoint_here_p)
4822 (build_bpstat_chain, update_global_location_list)
4823 (breakpoint_retire_moribund): Update.
4824 * breakpoint.h (bp_location_p): Remove typedef. Don't declare
4827 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4829 * riscv-tdep.c (riscv_is_fp_regno_p): New function.
4830 (riscv_register_reggroup_p): Use new function, remove unneeded
4832 (riscv_push_dummy_call): Extend assert to compare against xlen or
4833 flen based on register type.
4835 2018-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4837 * riscv-tdep.c (riscv_print_arg_location): Use TYPE_SAFE_NAME.
4839 2018-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
4841 * remote.c (show_hardware_watchpoint_limit): New function.
4842 (show_hardware_watchpoint_length_limit): New function.
4843 (show_hardware_breakpoint_limit): New function.
4844 (_initialize_remote): Use add_setshow_zuinteger_unlimited_cmd
4845 where appropriate, update help text.
4847 2018-07-09 Tom Tromey <tom@tromey.com>
4849 * Makefile.in (CDEPS): Don't mention XM_CDEPS.
4850 (CLIBS): Don't mention NAT_CLIBS.
4852 2018-07-09 Tom Tromey <tom@tromey.com>
4854 * Makefile.in (ADD_FILES, ADD_DEPS): Remove.
4855 (LIBGDB_OBS, clean mostlyclean): Update.
4856 (gdb$(EXEEXT), insight$(EXEEXT)): Update.
4858 2018-07-09 Tom Tromey <tom@tromey.com>
4860 * Makefile.in (%.c: %.y): Use ECHO_YACC.
4861 (%.c: %.l): Use ECHO_LEX. Just fail if flex not available.
4862 * silent-rules.mk (ECHO_YACC, ECHO_LEX): New variables.
4864 2018-07-09 Tom Tromey <tom@tromey.com>
4866 * Makefile.in (ALLDEPFILES): Remove exec.c.
4867 (COMMON_OBS): Remove exec.o.
4868 (COMMON_SFILES): Add exec.c.
4870 2018-07-09 Tom Tromey <tom@tromey.com>
4872 * Makefile.in (LINT, LINTFLAGS, LINTFILES, lint): Remove.
4874 2018-07-09 Tom Tromey <tom@tromey.com>
4876 * Makefile.in (clean mostlyclean): Remove stamp-version.
4877 (version.c): Depend on stamp-version.
4878 (stamp-version): New rule, from version.c rule.
4880 2018-07-09 Tom Tromey <tom@tromey.com>
4882 * Makefile.in (init.c): Depend on stamp-init.
4883 (stamp-init): New rule, from init.c rule.
4884 (clean mostlyclean): Remove stamp-init.
4886 2018-07-09 Tom Tromey <tom@tromey.com>
4888 * Makefile.in (INIT_FILES): Remove CONFIG_SRCS,
4889 SUBDIR_GCC_COMPILE_SRCS.
4891 2018-07-09 Tom Tromey <tom@tromey.com>
4893 * Makefile.in (init.c): Remove some unused sed rules.
4895 2018-07-09 Tom Tromey <tom@tromey.com>
4897 * Makefile.in (TSOBS): Remove.
4898 (INIT_FILES): Update.
4899 (LIBGDB_OBS): Update.
4900 (COMMON_SFILES): Add inflow.c.
4901 (SFILES): Remove inflow.c.
4903 2018-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4905 * contrib/gdb-add-index.sh ($dwarf5): New, use it.
4907 2018-07-07 Simon Marchi <simon.marchi@polymtl.ca>
4909 * ia64-libunwind-tdep.c (get_reg_name, get_fpreg_name,
4910 get_saveloc_name, is_signal_frame_name, step_name,
4911 init_remote_name, create_addr_space_name,
4912 destroy_addr_space_name, search_unwind_table_name,
4913 find_dyn_list_name): Constify.
4915 2018-07-05 Simon Marchi <simon.marchi@polymtl.ca>
4917 * darwin-nat.c (darwin_pthread_kill): New function.
4918 (darwin_resume_thread): Use darwin_pthread_kill.
4920 2018-07-05 Tom de Vries <tdevries@suse.de>
4922 * macroexp.c (macro_buffer) <operator=>: New member function.
4924 2018-07-04 Tom Tromey <tom@tromey.com>
4926 * darwin-nat.c (darwin_attach_pid): Use exit_inferior.
4928 2018-07-04 Simon Marchi <simon.marchi@polymtl.ca>
4930 * common/common-defs.h (HAVE_USEFUL_SBRK): Define.
4931 * main.c: Use HAVE_USEFUL_SBRK instead of HAVE_SBRK.
4932 * maint.c: Likewise.
4935 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4937 * NEWS: Create a new section for the next release branch.
4938 Rename the section of the current branch, now that it has
4941 2018-07-04 Joel Brobecker <brobecker@adacore.com>
4943 GDB 8.2 branch created (1b919490e8ba30bf1d6941df0ed112b0e557017e):
4944 * version.in: Bump version to 8.2.50.DATE-git.
4946 2018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
4947 Pedro Alves <palves@redhat.com>
4949 * linux-nat.c (linux_init_ptrace): Rename to ...
4950 (linux_init_ptrace_procfs): ... this. Call
4951 linux_proc_init_warnings.
4952 (linux_nat_target::post_attach)
4953 (linux_nat_target::post_startup_inferior): Adjust.
4954 * nat/linux-procfs.c (linux_proc_init_warnings): Define function.
4955 * nat/linux-procfs.h (linux_proc_init_warnings): Declare function.
4957 2018-07-04 Tom de Vries <tdevries@suse.de>
4959 * dwarf2read.c (error_check_comp_unit_head): Move dwarf version
4961 (read_comp_unit_head): ... here.
4963 2018-07-03 Tom Tromey <tom@tromey.com>
4965 * tracepoint.c (process_tracepoint_on_disconnect, start_tracing)
4966 (stop_tracing, tstatus_command)
4967 (find_matching_tracepoint_location, merge_uploaded_tracepoints)
4968 (print_one_static_tracepoint_marker): Update.
4969 * breakpoint.c (static_tracepoints_here, all_tracepoints): Return
4971 * breakpoint.h (breakpoint_p): Remove typedef. Don't declare
4973 (all_tracepoints, static_tracepoints_here): Return std::vector.
4975 2018-07-03 Tom Tromey <tom@tromey.com>
4977 * common/ptid.c (ptid_equal): Remove.
4978 * common/ptid.h (ptid_equal): Don't declare.
4979 * ada-tasks.c: Update.
4980 * breakpoint.c: Update.
4981 * common/agent.c: Update.
4982 * corelow.c: Update.
4983 * darwin-nat-info.c: Update.
4984 * darwin-nat.c: Update.
4986 * dtrace-probe.c: Update.
4987 * dummy-frame.c: Update.
4988 * fbsd-nat.c: Update.
4990 * gdbthread.h: Update.
4991 * gnu-nat.c: Update.
4992 * go32-nat.c: Update.
4993 * inf-loop.c: Update.
4994 * inf-ptrace.c: Update.
4995 * infcall.c: Update.
4999 * linux-fork.c: Update.
5000 * linux-nat.c: Update.
5001 * linux-thread-db.c: Update.
5002 * mi/mi-cmd-var.c: Update.
5003 * mi/mi-interp.c: Update.
5004 * mi/mi-main.c: Update.
5005 * nto-procfs.c: Update.
5006 * ppc-linux-tdep.c: Update.
5008 * python/py-inferior.c: Update.
5009 * python/py-record-btrace.c: Update.
5010 * python/py-record.c: Update.
5011 * ravenscar-thread.c: Update.
5012 * regcache.c: Update.
5013 * remote-sim.c: Update.
5015 * sol-thread.c: Update.
5018 * tui/tui-stack.c: Update.
5020 * windows-nat.c: Update.
5021 * windows-tdep.c: Update.
5023 2018-07-03 Tom Tromey <tom@tromey.com>
5025 * common/ptid.c (ptid_match): Remove.
5026 * common/ptid.h (ptid_match): Don't declare.
5027 * fbsd-nat.c: Update.
5030 * linux-nat.c: Update.
5031 * record-btrace.c: Update.
5032 * regcache.c: Update.
5035 2018-07-03 Tom Tromey <tom@tromey.com>
5037 * common/ptid.c (ptid_tid_p): Remove.
5038 * common/ptid.h (ptid_tid_p): Don't declare.
5039 * sol-thread.c: Update.
5041 2018-07-03 Tom Tromey <tom@tromey.com>
5043 * common/ptid.c (ptid_lwp_p): Remove.
5044 * common/ptid.h (ptid_lwp_p): Don't declare.
5045 * fbsd-nat.c: Update.
5046 * linux-nat.c: Update.
5047 * nat/linux-procfs.c: Update.
5048 * nat/x86-linux-dregs.c: Update.
5049 * sol-thread.c: Update.
5051 2018-07-03 Tom Tromey <tom@tromey.com>
5053 * common/ptid.c (ptid_is_pid): Remove.
5054 * common/ptid.h (ptid_is_pid): Don't declare.
5056 * linux-nat.c: Update.
5057 * mi/mi-interp.c: Update.
5061 2018-07-03 Tom Tromey <tom@tromey.com>
5063 * common/ptid.c (ptid_get_tid): Remove.
5064 * common/ptid.h (ptid_get_tid): Don't declare.
5065 * ada-tasks.c: Update.
5066 * aix-thread.c: Update.
5067 * bsd-uthread.c: Update.
5068 * darwin-nat.c: Update.
5069 * fbsd-nat.c: Update.
5070 * i386-darwin-nat.c: Update.
5072 * linux-tdep.c: Update.
5073 * nto-procfs.c: Update.
5074 * ppc-ravenscar-thread.c: Update.
5075 * python/py-infthread.c: Update.
5076 * ravenscar-thread.c: Update.
5077 * sol-thread.c: Update.
5078 * sparc-ravenscar-thread.c: Update.
5079 * windows-nat.c: Update.
5081 2018-07-03 Tom Tromey <tom@tromey.com>
5083 * common/ptid.c (ptid_get_lwp): Remove.
5084 * common/ptid.h (ptid_get_lwp): Don't declare.
5085 * aarch64-linux-nat.c: Update.
5086 * ada-tasks.c: Update.
5087 * aix-thread.c: Update.
5088 * amd64-linux-nat.c: Update.
5089 * arm-linux-nat.c: Update.
5090 * corelow.c: Update.
5091 * fbsd-nat.c: Update.
5092 * fbsd-tdep.c: Update.
5093 * gnu-nat.c: Update.
5094 * i386-cygwin-tdep.c: Update.
5095 * i386-gnu-nat.c: Update.
5096 * i386-linux-nat.c: Update.
5097 * ia64-linux-nat.c: Update.
5098 * inf-ptrace.c: Update.
5100 * linux-fork.c: Update.
5101 * linux-nat.c: Update.
5102 * linux-tdep.c: Update.
5103 * linux-thread-db.c: Update.
5104 * mips-linux-nat.c: Update.
5105 * nat/aarch64-linux-hw-point.c: Update.
5106 * nat/aarch64-linux.c: Update.
5107 * nat/linux-btrace.c: Update.
5108 * nat/linux-osdata.c: Update.
5109 * nat/linux-procfs.c: Update.
5110 * nat/x86-linux-dregs.c: Update.
5111 * obsd-nat.c: Update.
5112 * ppc-fbsd-nat.c: Update.
5113 * ppc-linux-nat.c: Update.
5115 * python/py-infthread.c: Update.
5116 * ravenscar-thread.c: Update.
5118 * s390-linux-nat.c: Update.
5119 * sol-thread.c: Update.
5120 * sol2-tdep.c: Update.
5121 * spu-linux-nat.c: Update.
5122 * x86-linux-nat.c: Update.
5123 * xtensa-linux-nat.c: Update.
5125 2018-07-03 Tom Tromey <tom@tromey.com>
5127 * common/ptid.c (ptid_get_pid): Remove.
5128 * common/ptid.h (ptid_get_pid): Don't declare.
5129 * aarch64-linux-nat.c: Update.
5130 * ada-lang.c: Update.
5131 * aix-thread.c: Update.
5132 * alpha-bsd-nat.c: Update.
5133 * amd64-fbsd-nat.c: Update.
5134 * amd64-linux-nat.c: Update.
5135 * arm-linux-nat.c: Update.
5136 * arm-nbsd-nat.c: Update.
5138 * break-catch-syscall.c: Update.
5139 * breakpoint.c: Update.
5140 * bsd-uthread.c: Update.
5141 * corelow.c: Update.
5143 * darwin-nat.c: Update.
5144 * fbsd-nat.c: Update.
5145 * fbsd-tdep.c: Update.
5147 * gnu-nat.c: Update.
5148 * hppa-nbsd-nat.c: Update.
5149 * hppa-obsd-nat.c: Update.
5150 * i386-fbsd-nat.c: Update.
5151 * ia64-linux-nat.c: Update.
5152 * inf-ptrace.c: Update.
5154 * inferior.c: Update.
5155 * inferior.h: Update.
5158 * linux-fork.c: Update.
5159 * linux-nat.c: Update.
5160 * linux-tdep.c: Update.
5161 * linux-thread-db.c: Update.
5162 * m68k-bsd-nat.c: Update.
5163 * mi/mi-interp.c: Update.
5164 * mi/mi-main.c: Update.
5165 * mips-linux-nat.c: Update.
5166 * mips-nbsd-nat.c: Update.
5167 * mips64-obsd-nat.c: Update.
5168 * nat/aarch64-linux-hw-point.c: Update.
5169 * nat/aarch64-linux.c: Update.
5170 * nat/linux-btrace.c: Update.
5171 * nat/linux-osdata.c: Update.
5172 * nat/linux-procfs.c: Update.
5173 * nat/x86-linux-dregs.c: Update.
5174 * nto-procfs.c: Update.
5175 * obsd-nat.c: Update.
5176 * ppc-linux-nat.c: Update.
5177 * ppc-nbsd-nat.c: Update.
5178 * ppc-obsd-nat.c: Update.
5179 * proc-service.c: Update.
5181 * python/py-inferior.c: Update.
5182 * python/py-infthread.c: Update.
5183 * ravenscar-thread.c: Update.
5185 * remote-sim.c: Update.
5187 * rs6000-nat.c: Update.
5188 * s390-linux-nat.c: Update.
5189 * sh-nbsd-nat.c: Update.
5190 * sol-thread.c: Update.
5191 * sparc-nat.c: Update.
5192 * sparc64-tdep.c: Update.
5193 * spu-linux-nat.c: Update.
5194 * spu-tdep.c: Update.
5195 * target-debug.h: Update.
5198 * tid-parse.c: Update.
5199 * tracefile-tfile.c: Update.
5200 * vax-bsd-nat.c: Update.
5201 * windows-nat.c: Update.
5202 * x86-linux-nat.c: Update.
5203 * x86-nat.c: Update.
5205 2018-07-03 Tom Tromey <tom@tromey.com>
5207 * common/ptid.c (pid_to_ptid): Remove.
5208 * common/ptid.h (pid_to_ptid): Don't declare.
5209 * aix-thread.c: Update.
5210 * arm-linux-nat.c: Update.
5211 * common/ptid.c: Update.
5212 * common/ptid.h: Update.
5213 * corelow.c: Update.
5215 * darwin-nat.c: Update.
5216 * fbsd-nat.c: Update.
5217 * fork-child.c: Update.
5218 * gnu-nat.c: Update.
5219 * go32-nat.c: Update.
5220 * inf-ptrace.c: Update.
5222 * inferior.c: Update.
5224 * linux-fork.c: Update.
5225 * linux-nat.c: Update.
5226 * nat/aarch64-linux-hw-point.c: Update.
5227 * nat/fork-inferior.c: Update.
5228 * nat/x86-linux-dregs.c: Update.
5229 * nto-procfs.c: Update.
5230 * obsd-nat.c: Update.
5232 * progspace.c: Update.
5234 * rs6000-nat.c: Update.
5235 * s390-linux-nat.c: Update.
5236 * sol-thread.c: Update.
5237 * spu-linux-nat.c: Update.
5240 * tracefile-tfile.c: Update.
5241 * windows-nat.c: Update.
5243 2018-07-03 Tom Tromey <tom@tromey.com>
5245 * common/ptid.h (ptid_build): Don't declare.
5246 * common/ptid.c (ptid_build): Remove.
5247 * aix-thread.c: Update.
5248 * bsd-kvm.c: Update.
5249 * bsd-uthread.c: Update.
5250 * common/agent.c: Update.
5251 * common/ptid.c: Update.
5252 * common/ptid.h: Update.
5253 * corelow.c: Update.
5254 * darwin-nat.c: Update.
5255 * fbsd-nat.c: Update.
5256 * gnu-nat.c: Update.
5257 * linux-fork.c: Update.
5258 * linux-nat.c: Update.
5259 * linux-thread-db.c: Update.
5260 * nat/linux-osdata.c: Update.
5261 * nat/linux-procfs.c: Update.
5262 * nto-procfs.c: Update.
5263 * obsd-nat.c: Update.
5264 * proc-service.c: Update.
5266 * ravenscar-thread.c: Update.
5267 * remote-sim.c: Update.
5269 * sol-thread.c: Update.
5271 * windows-nat.c: Update.
5273 2018-07-03 Tom Tromey <tom@tromey.com>
5275 * infrun.c (follow_exec): Use exit_inferior_silent.
5276 * inferior.c (exit_inferior_num_silent): Remove.
5277 * inferior.h (exit_inferior_num_silent): Don't declare.
5279 2018-07-03 Tom Tromey <tom@tromey.com>
5282 * darwin-nat.c (darwin_attach_pid): Reset inferior and
5283 inferior_ptid on error.
5285 2018-07-02 Maciej W. Rozycki <macro@mips.com>
5286 Simon Marchi <simon.marchi@polymtl.ca>
5289 * disasm.h (gdb_disassembler): Add
5290 `m_disassembler_options_holder'. member
5291 * disasm.c (get_all_disassembler_options): New function.
5292 (gdb_disassembler::gdb_disassembler): Use it.
5293 (gdb_buffered_insn_length_init_dis): Likewise.
5294 (gdb_buffered_insn_length): Adjust accordingly.
5295 (set_disassembler_options): Handle options with arguments.
5296 (show_disassembler_options_sfunc): Likewise. Add a leading new
5297 line if showing options with descriptions.
5298 (disassembler_options_completer): Adapt to using the
5299 `disasm_options_and_args_t' structure.
5300 * mips-tdep.c (mips_disassembler_options): New variable.
5301 (mips_disassembler_options_o32): Likewise.
5302 (mips_disassembler_options_n32): Likewise.
5303 (mips_disassembler_options_n64): Likewise.
5304 (gdb_print_insn_mips): Don't set `disassembler_options'.
5305 (gdb_print_insn_mips_n32, gdb_print_insn_mips_n64): Remove
5307 (mips_gdbarch_init): Always set `gdbarch_print_insn' to
5308 `gdb_print_insn_mips'. Set `gdbarch_disassembler_options',
5309 `gdbarch_disassembler_options_implicit' and
5310 `gdbarch_valid_disassembler_options'.
5311 * arm-tdep.c (_initialize_arm_tdep): Adapt to using the
5312 `disasm_options_and_args_t' structure.
5313 * gdbarch.sh (disassembler_options_implicit): New `gdbarch'
5315 (valid_disassembler_options): Switch from `disasm_options_t' to
5316 the `disasm_options_and_args_t' structure.
5317 * NEWS: Document `set disassembler-options' support for the MIPS
5319 * gdbarch.h: Regenerate.
5320 * gdbarch.c: Regenerate.
5322 2018-07-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
5324 * riscv-tdep.c (riscv_register_aliases): Swap "fp" and "s0" entries.
5326 2018-06-29 Joel Brobecker <brobecker@adacore.com>
5328 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Add missing
5329 parameter in call to amd64_target_description.
5330 * amd64-dicos-tdep.c (amd64_dicos_init_abi): Likewise.
5331 * amd64-fbsd-tdep.c (amd64fbsd_core_read_description)
5332 (amd64fbsd_init_abi): Likewise.
5333 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
5334 * amd64-obsd-tdep.c (amd64obsd_init_abi): Likewise.
5335 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Likewise.
5336 * amd64-fbsd-nat.c (amd64_fbsd_nat_target): Likewise.
5338 2018-06-29 Pedro Alves <palves@redhat.com>
5340 * gdb/amd64-tdep.h (amd64_create_target_description): Add
5341 "segments" parameter.
5342 * gdb/amd64-tdep.c (amd64_none_init_abi, amd64_x32_none_init_abi)
5343 (_initialize_amd64_tdep): Update call to
5344 amd64_create_target_description.
5345 (amd64_target_description): Add "segments" parameter. Adjust
5346 the implementation to use it.
5347 * gdb/amd64-linux-tdep.c (amd64_linux_read_description): Update
5348 call to amd64_create_target_description.
5349 * gdb/amd64-windows-tdep.c (amd64_windows_init_abi): Likewise.
5350 * gdb/arch/amd64.h (amd64_create_target_description): Add
5351 "segments" register.
5352 * gdb/arch/amd64.c (amd64_create_target_description): Add
5353 "segments" parameter. Call create_feature_i386_64bit_segments
5354 only if SEGMENTS is true.
5355 * gdb/gdbserver/win32-i386-low.c (i386_arch_setup): Update
5356 call to amd64_create_target_description.
5358 2018-06-29 Pedro Alves <palves@redhat.com>
5360 * thread.c (thread_target_id_str): New, factored out from ...
5361 (print_thread_info_1): ... here. Use it to compute the max
5362 "Target Id" column width.
5364 2018-06-29 Pedro Alves <palves@redhat.com>
5366 * remote.c (remote_target::extra_thread_info): Delete
5367 'display_buf' and 'n' locals. from the cache, regardless of
5368 packet mechanims is in use. Use cache for qThreadExtra and qP
5371 2018-06-29 Pedro Alves <palves@redhat.com>
5373 * blockframe.c (find_pc_sect_containing_function): New function.
5374 * breakpoint.c (print_breakpoint_location): Don't call
5375 find_pc_sect_function.
5376 * linespec.c (create_sals_line_offset): Record the location's
5378 * linespec.c (convert_address_location_to_sals): Fill in sal's
5379 symbol with find_pc_sect_containing_function.
5380 * symtab.c (find_function_start_sal): Rename to ...
5381 (find_function_start_sal_1): ... this.
5382 (find_function_start_sal): Reimplement as wrapper around
5383 find_function_start_sal_1, and use
5384 find_pc_sect_containing_function to fill in the sal's symbol.
5385 (find_function_start_sal(symbol*, bool)): Adjust.
5386 * symtab.h (find_pc_function, find_pc_sect_function): Adjust
5388 (find_pc_sect_containing_function): Declare.
5390 2018-06-29 Pedro Alves <palves@redhat.com>
5392 * inline-frame.c (stopped_by_user_bp_inline_frame): Return
5393 true if the the location has no symbol.
5395 2018-06-28 Tom Tromey <tom@tromey.com>
5397 * NEWS: Mention --enable-codesign.
5398 * silent-rules.mk (ECHO_SIGN): New variable.
5399 * configure.ac: Add --enable-codesign.
5400 * configure: Rebuild.
5401 * Makefile.in (CODESIGN, CODESIGN_CERT): New variables.
5402 (gdb$(EXEEXT)): Optionally invoke codesign.
5404 2018-06-28 Pedro Alves <palves@redhat.com>
5406 * gdbthread.h (struct thread_suspend_state) <stop_pc>: Extend
5408 (switch_to_thread_no_regs): Adjust comment.
5409 * infcmd.c (stop_pc): Delete.
5410 (post_create_inferior, info_program_command): Replace references
5411 to stop_pc with references to thread_info->suspend.stop_pc.
5412 * inferior.h (stop_pc): Delete declaration.
5413 * infrun.c (proceed, handle_syscall_event, fill_in_stop_func)
5414 (handle_inferior_event_1, handle_signal_stop)
5415 (process_event_stop_test, keep_going_stepped_thread)
5416 (handle_step_into_function, handle_step_into_function_backward)
5417 (print_stop_location): Replace references to stop_pc with
5418 references to thread_info->suspend.stop_pc.
5419 (struct infcall_suspend_state) <stop_pc>: Delete field.
5420 (save_infcall_suspend_state, restore_infcall_suspend_state):
5421 Remove references to inf_stat->stop_pc.
5422 * linux-fork.c (fork_load_infrun_state): Likewise.
5423 * record-btrace.c (record_btrace_set_replay): Likewise.
5424 * record-full.c (record_full_goto_entry): Likewise.
5425 * remote.c (print_one_stopped_thread): Likewise.
5426 * target.c (target_resume): Extend comment.
5427 * thread.c (set_executing_thread): New.
5428 (set_executing): Use it.
5429 (switch_to_thread_no_regs, switch_to_no_thread, switch_to_thread):
5430 Remove references to stop_pc.
5432 2018-06-28 Pedro Alves <palves@redhat.com>
5434 * infrun.c (handle_inferior_event_1) <TARGET_WAITKIND_EXECD>:
5435 Moving fetching stop_pc until after ecs->event_thread is refreshed.
5437 2018-06-28 Tom Tromey <tom@tromey.com>
5439 * coffread.c (coff_symfile_finish): Update.
5440 * xcoffread.c (xcoff_symfile_finish): Update.
5441 * elfread.c (elf_symfile_finish): Update.
5442 * symfile.h (dwarf2_free_objfile): Don't declare.
5443 * dwarf2read.c (_initialize_dwarf2_read): Use
5444 register_objfile_data_with_cleanup.
5445 (dwarf2_free_objfile): Now static. Change signature.
5447 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5449 * symfile.c (add_symbol_file_command, _initialize_symfile): Add
5450 option "-o" to add-symbol-file-load to add an offset to each
5451 section's load address.
5452 * symfile.c (set_objfile_default_section_offset): New function.
5454 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5456 * symfile.c (add_symbol_file_command): Make sure that sections
5457 with the same name are sorted in the same order.
5459 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5461 * symfile.c (add_symbol_file_command, _initialize_symfile): Do not
5462 require the second argument. If omitted, load sections at the
5463 addresses specified in the file.
5465 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5467 * symfile.c (symbol_file_command, symbol_file_add_main_1)
5468 (_initialize_symfile): Add option "-o" to symbol-file to add an
5469 offset to each section of the symbol file.
5471 2018-06-28 Petr Tesarik <ptesarik@suse.cz>
5473 * MAINTAINERS (Write After Approval): Add Petr Tesarik.
5475 2018-06-27 Tom Tromey <tom@tromey.com>
5477 * stack.c (_initialize_stack): Update "func" help text.
5479 2018-06-27 Tom Tromey <tom@tromey.com>
5481 * python/py-unwind.c (unwind_info_object) <saved_regs>: Now a
5483 (unwind_infopy_str, pyuw_create_unwind_info)
5484 (unwind_infopy_add_saved_register, pyuw_sniffer)
5485 (unwind_infopy_dealloc, unwind_infopy_add_saved_register):
5487 (struct saved_reg): Add constructor.
5488 <value>: Now a gdbpy_ref<>.
5490 2018-06-27 Tom Tromey <tom@tromey.com>
5492 * machoread.c (macho_symfile_read): Define "symbol_table" earlier.
5494 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5496 * gdb-gdb.py.in: Format using autopep8.
5498 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5500 * gdb-gdb.py.in (CoreAddrPrettyPrinter): New class.
5501 (type_lookup_function): Recognize CORE_ADDR values.
5503 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5505 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <to_string>: Don't
5508 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5510 * gdb-gdb.py.in (TypeFlag) <__cmp__>: Remove.
5513 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5515 * gdb-gdb.py: Move to...
5516 * gdb-gdb.py.in: ... here.
5517 * configure.ac (AC_CONFIG_FILES): Add gdb-gdb.py.
5518 * Makefile.in (all): Add gdb-gdb.gdb and gdb-gdb.py as
5520 (distclean): Remove gdb-gdb.py when cleaning.
5521 (gdb-gdb.py, gdb-gdb.gdb): New rules.
5522 * configure: Re-generate.
5524 2018-06-27 Pedro Alves <palves@redhat.com>
5526 * proc-service.c (get_ps_regcache): New.
5527 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5528 (ps_lsetfpregs): Use it.
5530 2018-06-27 Omair Javaid <omair.javaid@linaro.org>
5533 * dwarf2read.c (lnp_state_machine::check_line_address): Update declaration.
5534 (dwarf_decode_lines_1): Adjust.
5536 2018-06-27 Simon Marchi <simon.marchi@ericsson.com>
5538 * fbsd-nat.h (class fbsd_nat_target) <find_memory_regions>: Add
5540 <info_proc>: Likewise.
5542 2018-06-26 Joel Brobecker <brobecker@adacore.com>
5544 * windows-nat.c (do_windows_fetch_inferior_registers): Rename
5545 to windows_fetch_one_register, and only handle the case of
5546 fetching one register. Move the code that reloads the context
5547 and iterates over all registers if R is negative to...
5548 (windows_nat_target::fetch_registers): ... here.
5549 (do_windows_store_inferior_registers): Rename to
5550 windows_store_one_register, and only handle the case of storing
5551 one register. Move the code that handles the case where r is
5553 (windows_nat_target::store_registers) ... here.
5555 2018-06-26 Tom Tromey <tom@tromey.com>
5558 * typeprint.c (whatis_exp): Allow ptype/o for Rust.
5559 * rust-lang.c (rust_print_struct_def): Add podata parameter.
5561 (rust_internal_print_type): Add podata parameter.
5562 (rust_print_type): Update.
5564 2018-06-26 Tom Tromey <tom@tromey.com>
5566 * typeprint.h (struct print_offset_data) <update, finish,
5567 maybe_print_hole>: New methods.
5568 <indentation>: New constant.
5569 * typeprint.c (print_offset_data::indentation): Define.
5570 (print_offset_data::maybe_print_hole, print_offset_data::update)
5571 (print_offset_data::finish): Move from c-typeprint.c and rename.
5572 * c-typeprint.c (OFFSET_SPC_LEN): Remove.
5573 (print_spaces_filtered_with_print_options): Update.
5574 (c_print_type_union_field_offset, maybe_print_hole)
5575 (c_print_type_struct_field_offset): Move to typeprint.c and
5577 (c_type_print_base_struct_union): Update.
5579 2018-06-25 Pedro Alves <palves@redhat.com>
5581 * gdbthread.h (thread_info_ref, delete_thread)
5582 (delete_thread_silent, first_thread_of_inferior)
5583 (any_thread_of_inferior, switch_to_thread)
5584 (enable_thread_stack_temporaries)
5585 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5586 (get_last_thread_stack_temporary)
5587 (value_in_thread_stack_temporaries, can_access_registers_thread):
5588 Spell out "struct thread_info" instead of just "thread_info".
5589 * inferior.h (notice_new_inferior): Likewise.
5591 2018-06-25 Pedro Alves <palves@redhat.com>
5593 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5594 pass thread_info pointer to delete_thread.
5595 (windows_nat_target::detach): Pass inferior pointer to
5597 * aix-thread.c (sync_threadlists): Pass thread_info pointer to
5599 * bsd-kvm.c (bsd_kvm_target::close): Use discard_all_inferiors.
5600 * darwin-nat.c (darwin_check_new_threads): Use find_thread_ptid
5601 and pass a thread_info pointer to delete_thread.
5602 * fbsd-nat.c (fbsd_nat_target::wait): Use find_thread_ptid and
5603 pass thread_info pointer to delete_thread.
5604 * go32-nat.c (go32_nat_target::mourn_inferior): Remove
5605 delete_thread_silent call.
5606 * procfs.c (procfs_target::detach): Pass inferior pointer to
5608 (procfs_target::wait): Pass thread_info pointer to delete_thread.
5609 * remote-sim.c (gdbsim_target::mourn_inferior): Remove
5610 delete_thread_silent call.
5611 * windows-nat.c (windows_delete_thread): Use find_thread_ptid and
5612 pass thread_info pointer to delete_thread.
5613 (windows_nat_target::detach): Pass inferior pointer to
5616 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5618 * regcache.c (readable_regcache::read_part): Fix asserts.
5619 (reg_buffer::raw_collect_part): New function.
5620 (regcache::write_part): Fix asserts.
5621 (reg_buffer::raw_supply_part): New function.
5622 (regcache::transfer_regset_register): New helper function.
5623 (regcache::transfer_regset): Call new functions.
5624 (regcache_supply_regset): Use gdb_byte*.
5625 (regcache::supply_regset): Likewise.
5626 (regcache_collect_regset): Likewise.
5627 (regcache::collect_regset): Likewise.
5628 * regcache.h (reg_buffer::raw_collect_part): New declaration.
5629 (reg_buffer::raw_supply_part): Likewise.
5630 (regcache::transfer_regset_register): Likewise.
5631 (regcache::transfer_regset): Use gdb_byte*.
5633 2018-06-22 Alan Hayward <alan.hayward@arm.com>
5635 * nat/aarch64-sve-linux-ptrace.h (HAS_SVE_STATE): Use &.
5637 2018-06-21 Pedro Alves <palves@redhat.com>
5639 * ada-lang.h (ada_get_task_number): Take a thread_info pointer
5640 instead of a ptid_t. All callers adjusted.
5641 * ada-tasks.c (ada_get_task_number): Likewise. All callers
5643 (print_ada_task_info, display_current_task_id, task_command_1):
5645 * breakpoint.c (watchpoint_in_thread_scope): Adjust to use
5647 (breakpoint_kind): Adjust.
5648 (remove_breakpoints_pid): Rename to ...
5649 (remove_breakpoints_inf): ... this. Adjust to take an inferior
5650 pointer. All callers adjusted.
5651 (bpstat_clear_actions): Use inferior_thread.
5652 (get_bpstat_thread): New.
5653 (bpstat_do_actions): Use it.
5654 (bpstat_check_breakpoint_conditions, bpstat_stop_status): Adjust
5655 to take a thread_info pointer. All callers adjusted.
5656 (set_longjmp_breakpoint_for_call_dummy, set_momentary_breakpoint)
5657 (breakpoint_re_set_thread): Use inferior_thread.
5658 * breakpoint.h (struct inferior): Forward declare.
5659 (bpstat_stop_status): Update.
5660 (remove_breakpoints_pid): Delete.
5661 (remove_breakpoints_inf): New.
5662 * bsd-uthread.c (bsd_uthread_target::wait)
5663 (bsd_uthread_target::update_thread_list): Use find_thread_ptid.
5664 * btrace.c (btrace_add_pc, btrace_enable, btrace_fetch)
5665 (maint_btrace_packet_history_cmd)
5666 (maint_btrace_clear_packet_history_cmd): Adjust.
5667 (maint_btrace_clear_cmd, maint_info_btrace_cmd): Adjust to use
5669 * cli/cli-interp.c: Include "inferior.h".
5670 * common/refcounted-object.h (struct
5671 refcounted_object_ref_policy): New.
5672 * compile/compile-object-load.c: Include gdbthread.h.
5673 (store_regs): Use inferior_thread.
5674 * corelow.c (core_target::close): Use current_inferior.
5675 (core_target_open): Adjust to use first_thread_of_inferior and use
5676 the current inferior.
5677 * ctf.c (ctf_target::close): Adjust to use current_inferior.
5678 * dummy-frame.c (dummy_frame_id) <ptid>: Delete, replaced by ...
5679 <thread>: ... this new field. All references adjusted.
5680 (dummy_frame_pop, dummy_frame_discard, register_dummy_frame_dtor):
5681 Take a thread_info pointer instead of a ptid_t.
5682 * dummy-frame.h (dummy_frame_push, dummy_frame_pop)
5683 (dummy_frame_discard, register_dummy_frame_dtor): Take a
5684 thread_info pointer instead of a ptid_t.
5685 * elfread.c: Include "inferior.h".
5686 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop):
5687 Use inferior_thread.
5688 * eval.c (evaluate_subexp): Likewise.
5689 * frame.c (frame_pop, has_stack_frames, find_frame_sal): Use
5691 * gdb_proc_service.h (struct thread_info): Forward declare.
5692 (struct ps_prochandle) <ptid>: Delete, replaced by ...
5693 <thread>: ... this new field. All references adjusted.
5694 * gdbarch.h, gdbarch.c: Regenerate.
5695 * gdbarch.sh (get_syscall_number): Replace 'ptid' parameter with a
5696 'thread' parameter. All implementations and callers adjusted.
5697 * gdbthread.h (thread_info) <set_running>: New method.
5698 (delete_thread, delete_thread_silent): Take a thread_info pointer
5700 (global_thread_id_to_ptid, ptid_to_global_thread_id): Delete.
5701 (first_thread_of_process): Delete, replaced by ...
5702 (first_thread_of_inferior): ... this new function. All callers
5704 (any_live_thread_of_process): Delete, replaced by ...
5705 (any_live_thread_of_inferior): ... this new function. All callers
5707 (switch_to_thread, switch_to_no_thread): Declare.
5708 (is_executing): Delete.
5709 (enable_thread_stack_temporaries): Update comment.
5710 <enable_thread_stack_temporaries>: Take a thread_info pointer
5711 instead of a ptid_t. Incref the thread.
5712 <~enable_thread_stack_temporaries>: Decref the thread.
5715 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5716 (get_last_thread_stack_temporary)
5717 (value_in_thread_stack_temporaries, can_access_registers_thread):
5718 Take a thread_info pointer instead of a ptid_t. All callers
5720 * infcall.c (get_call_return_value): Use inferior_thread.
5721 (run_inferior_call): Work with thread pointers instead of ptid_t.
5722 (call_function_by_hand_dummy): Work with thread pointers instead
5723 of ptid_t. Use thread_info_ref.
5724 * infcmd.c (proceed_thread_callback): Access thread's state
5726 (ensure_valid_thread, ensure_not_running): Use inferior_thread,
5727 access thread's state directly.
5728 (continue_command): Use inferior_thread.
5729 (info_program_command): Use find_thread_ptid and access thread
5731 (proceed_after_attach_callback): Use thread state directly.
5732 (notice_new_inferior): Take a thread_info pointer instead of a
5733 ptid_t. All callers adjusted.
5734 (exit_inferior): Take an inferior pointer instead of a pid. All
5736 (exit_inferior_silent): New.
5737 (detach_inferior): Delete.
5738 (valid_gdb_inferior_id, pid_to_gdb_inferior_id)
5739 (gdb_inferior_id_to_pid, in_inferior_list): Delete.
5740 (detach_inferior_command, kill_inferior_command): Use
5741 find_inferior_id instead of valid_gdb_inferior_id and
5742 gdb_inferior_id_to_pid.
5743 (inferior_command): Use inferior and thread pointers.
5744 * inferior.h (struct thread_info): Forward declare.
5745 (notice_new_inferior): Take a thread_info pointer instead of a
5746 ptid_t. All callers adjusted.
5747 (detach_inferior): Delete declaration.
5748 (exit_inferior, exit_inferior_silent): Take an inferior pointer
5749 instead of a pid. All callers adjusted.
5750 (gdb_inferior_id_to_pid, pid_to_gdb_inferior_id, in_inferior_list)
5751 (valid_gdb_inferior_id): Delete.
5752 * infrun.c (follow_fork_inferior, proceed_after_vfork_done)
5753 (handle_vfork_child_exec_or_exit, follow_exec): Adjust.
5754 (struct displaced_step_inferior_state) <pid>: Delete, replaced by
5756 <inf>: ... this new field.
5757 <step_ptid>: Delete, replaced by ...
5758 <step_thread>: ... this new field.
5759 (get_displaced_stepping_state): Take an inferior pointer instead
5760 of a pid. All callers adjusted.
5761 (displaced_step_in_progress_any_inferior): Adjust.
5762 (displaced_step_in_progress_thread): Take a thread pointer instead
5763 of a ptid_t. All callers adjusted.
5764 (displaced_step_in_progress, add_displaced_stepping_state): Take
5765 an inferior pointer instead of a pid. All callers adjusted.
5766 (get_displaced_step_closure_by_addr): Adjust.
5767 (remove_displaced_stepping_state): Take an inferior pointer
5768 instead of a pid. All callers adjusted.
5769 (displaced_step_prepare_throw, displaced_step_prepare)
5770 (displaced_step_fixup): Take a thread pointer instead of a ptid_t.
5771 All callers adjusted.
5772 (start_step_over): Adjust.
5773 (infrun_thread_ptid_changed): Remove bit updating ptids in the
5774 displaced step queue.
5775 (do_target_resume): Adjust.
5776 (fetch_inferior_event): Use inferior_thread.
5777 (context_switch, get_inferior_stop_soon): Take an
5778 execution_control_state pointer instead of a ptid_t. All callers
5780 (switch_to_thread_cleanup): Delete.
5781 (stop_all_threads): Use scoped_restore_current_thread.
5782 * inline-frame.c: Include "gdbthread.h".
5783 (inline_state) <inline_state>: Take a thread pointer instead of a
5784 ptid_t. All callers adjusted.
5785 <ptid>: Delete, replaced by ...
5786 <thread>: ... this new field.
5787 (find_inline_frame_state): Take a thread pointer instead of a
5788 ptid_t. All callers adjusted.
5789 (skip_inline_frames, step_into_inline_frame)
5790 (inline_skipped_frames, inline_skipped_symbol): Take a thread
5791 pointer instead of a ptid_t. All callers adjusted.
5792 * inline-frame.h (skip_inline_frames, step_into_inline_frame)
5793 (inline_skipped_frames, inline_skipped_symbol): Likewise.
5794 * linux-fork.c (delete_checkpoint_command): Adjust to use thread
5796 * linux-nat.c (get_detach_signal): Likewise.
5797 * linux-thread-db.c (thread_from_lwp): New 'stopped' parameter.
5798 (thread_db_notice_clone): Adjust.
5799 (thread_db_find_new_threads_silently)
5800 (thread_db_find_new_threads_2, thread_db_find_new_threads_1): Take
5801 a thread pointer instead of a ptid_t. All callers adjusted.
5802 * mi/mi-cmd-var.c: Include "inferior.h".
5803 (mi_cmd_var_update_iter): Update to use thread pointers.
5804 * mi/mi-interp.c (mi_new_thread): Update to use the thread's
5806 (mi_output_running_pid, mi_inferior_count): Delete, bits factored
5808 (mi_output_running): ... this new function.
5809 (mi_on_resume_1): Adjust to use it.
5810 (mi_user_selected_context_changed): Adjust to use inferior_thread.
5811 * mi/mi-main.c (proceed_thread): Adjust to use thread pointers
5813 (interrupt_thread_callback): : Adjust to use thread and inferior
5815 * proc-service.c: Include "gdbthread.h".
5816 (ps_pglobal_lookup): Adjust to use the thread's inferior directly.
5817 * progspace-and-thread.c: Include "inferior.h".
5818 * progspace.c: Include "inferior.h".
5819 * python/py-exitedevent.c (create_exited_event_object): Adjust to
5820 hold a reference to an inferior_object.
5821 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust to use
5823 * python/py-inferior.c (struct inferior_object): Give the type a
5824 tag name instead of a typedef.
5825 (python_on_normal_stop): No need to check if the current thread is
5827 (inferior_to_inferior_object): Change return type to
5828 inferior_object. All callers adjusted.
5829 (find_thread_object): Delete, bits factored out to ...
5830 (thread_to_thread_object): ... this new function.
5831 * python/py-infthread.c (create_thread_object): Use
5832 inferior_to_inferior_object.
5833 (thpy_is_stopped): Use thread pointer directly.
5834 (gdbpy_selected_thread): Use inferior_thread.
5835 * python/py-record-btrace.c (btpy_list_object) <ptid>: Delete
5836 field, replaced with ...
5837 <thread>: ... this new field. All users adjusted.
5838 (btpy_insn_or_gap_new): Drop const.
5839 (btpy_list_new): Take a thread pointer instead of a ptid_t. All
5841 * python/py-record.c: Include "gdbthread.h".
5842 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5843 a ptid_t. All callers adjusted.
5844 (gdbpy_current_recording): Use inferior_thread.
5845 * python/py-record.h (recpy_record_object) <ptid>: Delete
5846 field, replaced with ...
5847 <thread>: ... this new field. All users adjusted.
5848 (recpy_element_object) <ptid>: Delete
5849 field, replaced with ...
5850 <thread>: ... this new field. All users adjusted.
5851 (recpy_insn_new, recpy_func_new): Take a thread pointer instead of
5852 a ptid_t. All callers adjusted.
5853 * python/py-threadevent.c: Include "gdbthread.h".
5854 (get_event_thread): Use thread_to_thread_object.
5855 * python/python-internal.h (struct inferior_object): Forward
5857 (find_thread_object, find_inferior_object): Delete declarations.
5858 (thread_to_thread_object, inferior_to_inferior_object): New
5860 * record-btrace.c: Include "inferior.h".
5861 (require_btrace_thread): Use inferior_thread.
5862 (record_btrace_frame_sniffer)
5863 (record_btrace_tailcall_frame_sniffer): Use inferior_thread.
5864 (get_thread_current_frame): Use scoped_restore_current_thread and
5866 (get_thread_current_frame): Use thread pointer directly.
5867 (record_btrace_replay_at_breakpoint): Use thread's inferior
5869 * record-full.c: Include "inferior.h".
5870 * regcache.c: Include "gdbthread.h".
5871 (get_thread_arch_regcache): Use the inferior's address space
5873 (get_thread_regcache, registers_changed_thread): New.
5874 * regcache.h (get_thread_regcache(thread_info *thread)): New
5876 (registers_changed_thread): New.
5877 (remote_target) <remote_detach_1>: Swap order of parameters.
5878 (remote_add_thread): <remote_add_thread>: Return the new thread.
5879 (get_remote_thread_info(ptid_t)): New overload.
5880 (remote_target::remote_notice_new_inferior): Use thread pointers
5882 (remote_target::process_initial_stop_replies): Use
5883 thread_info::set_running.
5884 (remote_target::remote_detach_1, remote_target::detach)
5885 (extended_remote_target::detach): Adjust.
5886 * stack.c (frame_show_address): Use inferior_thread.
5887 * target-debug.h (target_debug_print_thread_info_pp): New.
5888 * target-delegates.c: Regenerate.
5889 * target.c (default_thread_address_space): Delete.
5890 (memory_xfer_partial_1): Use current_inferior.
5891 (target_detach): Use current_inferior.
5892 (target_thread_address_space): Delete.
5893 (generic_mourn_inferior): Use current_inferior.
5894 * target.h (struct target_ops) <thread_address_space>: Delete.
5895 (target_thread_address_space): Delete.
5896 * thread.c (init_thread_list): Use ALL_THREADS_SAFE. Use thread
5898 (delete_thread_1, delete_thread, delete_thread_silent): Take a
5899 thread pointer instead of a ptid_t. Adjust all callers.
5900 (ptid_to_global_thread_id, global_thread_id_to_ptid): Delete.
5901 (first_thread_of_process): Delete, replaced by ...
5902 (first_thread_of_inferior): ... this new function. All callers
5904 (any_thread_of_process): Rename to ...
5905 (any_thread_of_inferior): ... this, and take an inferior pointer.
5906 (any_live_thread_of_process): Rename to ...
5907 (any_live_thread_of_inferior): ... this, and take an inferior
5909 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
5910 (value_in_thread_stack_temporaries)
5911 (get_last_thread_stack_temporary): Take a thread pointer instead
5912 of a ptid_t. Adjust all callers.
5913 (thread_info::set_running): New.
5914 (validate_registers_access): Use inferior_thread.
5915 (can_access_registers_ptid): Rename to ...
5916 (can_access_registers_thread): ... this, and take a thread
5918 (print_thread_info_1): Adjust to compare thread pointers instead
5920 (switch_to_no_thread, switch_to_thread): Make extern.
5921 (scoped_restore_current_thread::~scoped_restore_current_thread):
5922 Use m_thread pointer directly.
5923 (scoped_restore_current_thread::scoped_restore_current_thread):
5924 Use inferior_thread.
5925 (thread_command): Use thread pointer directly.
5926 (thread_num_make_value_helper): Use inferior_thread.
5927 * top.c (execute_command): Use inferior_thread.
5928 * tui/tui-interp.c: Include "inferior.h".
5929 * varobj.c (varobj_create): Use inferior_thread.
5930 (value_of_root_1): Use find_thread_global_id instead of
5931 global_thread_id_to_ptid.
5933 2018-06-21 Alan Hayward <alan.hayward@arm.com>
5935 * regcache.c (readable_regcache::read_part): Avoid memcpy when
5937 (regcache::write_part): Likewise.
5938 (readable_regcache::cooked_read_part): Update comment.
5939 (readable_regcache::cooked_write_part): Likewise.
5940 * regcache.h: (readable_regcache::read_part): Likewise.
5941 (regcache::write_part): Likewise.
5943 2018-06-21 Richard Bunt <richard.bunt@arm.com>
5944 Dirk Schubert <dirk.schubert@arm.com>
5946 * aarch64-linux-nat.c (post_attach): New.
5947 (aarch64_linux_nat_target::post_attach): Override post_attach to
5948 record the number of hardware debug registers.
5950 2018-06-20 Tom Tromey <tom@tromey.com>
5952 * python/py-param.c (add_setshow_generic): Make parameters const.
5953 (parmpy_init): Update.
5955 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5957 * regcache.h (regcache_cooked_read_ftype): Rename to...
5958 (register_read_ftype): ...this, change type to function_view.
5959 (class reg_buffer) <save>: Remove src parameter.
5960 (readonly_detached_regcache) <readonly_detached_regcache>: Make
5961 parameter non-const in first overload. Remove src parameter in
5963 * regcache.c (do_cooked_read): Remove.
5964 (readonly_detached_regcache::readonly_detached_regcache): Make
5965 parameter non-const, adjust call to other constructor.
5966 (reg_buffer::save): Remove src parameter.
5967 * frame.c (do_frame_register_read): Remove.
5968 (frame_save_as_regcache): Use lambda function.
5969 * ppc-linux-tdep.c (ppu2spu_unwind_register): Change type of src
5970 parameter to ppu2spu_data *.
5971 (ppu2spu_sniffer): Use lambda function.
5973 2018-06-20 Simon Marchi <simon.marchi@polymtl.ca>
5975 * record-full.c (record_full_target::insert_breakpoint): Remove
5976 "struct" keyword, add const.
5978 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
5980 * common/common-defs.h (PACKAGE_NAME, PACKAGE_VERSION,
5981 PACKAGE_STRING, PACKAGE_TARNAME): Undefine.
5982 * configure.ac: Remove AC_PREREQ, add missing quoting.
5983 * gnulib/configure.ac: Modernize usage of
5984 AC_INIT/AM_INIT_AUTOMAKE. Remove AC_PREREQ.
5985 * gnulib/update-gnulib.sh (AUTOCONF_VERSION): Bump to 2.69.
5986 (AUTOMAKE_VERSION): Bump to 1.15.1.
5987 * configure: Re-generate.
5988 * config.in: Re-generate.
5989 * aclocal.m4: Re-generate.
5990 * gnulib/aclocal.m4: Re-generate.
5991 * gnulib/config.in: Re-generate.
5992 * gnulib/configure: Re-generate.
5993 * gnulib/import/Makefile.in: Re-generate.
5995 2018-06-19 Pedro Alves <palves@redhat.com>
5997 * minsyms.c (msym_prefer_to_msym_type): New, factored out from ...
5998 (lookup_minimal_symbol_by_pc_section): ... here with
5999 gdb_assert_not_reached added.
6001 2018-06-19 Pedro Alves <palves@redhat.com>
6003 * inline-frame.c (stopped_by_user_bp_inline_frame): Replace PC
6004 parameter with a block parameter. Compare location's block symbol
6005 with the frame's block instead of addresses.
6006 (skip_inline_frames): Pass the current block instead of the
6007 frame's address. Break out as soon as we determine the frame
6008 should not be skipped.
6010 2018-06-18 Tom Tromey <tom@tromey.com>
6012 * solib-aix.c (solib_aix_get_section_offsets): Return
6014 (solib_aix_solib_create_inferior_hook): Update.
6016 2018-06-18 Tom Tromey <tom@tromey.com>
6018 * solib-darwin.c (darwin_current_sos): Use unique_xmalloc_ptr.
6020 2018-06-18 Tom Tromey <tom@tromey.com>
6022 * solib-frv.c (frv_relocate_main_executable): Use
6024 * solib-dsbt.c (dsbt_relocate_main_executable): Use
6027 2018-06-18 Tom Tromey <tom@tromey.com>
6029 * objfiles.h (inhibit_section_map_updates): Update.
6030 (resume_section_map_updates, resume_section_map_updates_cleanup):
6032 * solib-svr4.c (svr4_handle_solib_event): Update.
6033 * objfiles.c (inhibit_section_map_updates): Return
6034 scoped_restore_tmpl<int>.
6035 (resume_section_map_updates, resume_section_map_updates_cleanup):
6038 2018-06-18 Tom Tromey <tom@tromey.com>
6040 * valprint.h (read_string): Update.
6041 * valprint.c (read_string): Change type of "buffer".
6042 (val_print_string): Update.
6043 * python/py-value.c (valpy_string): Update.
6044 * language.h (struct language_defn) <la_get_string>: Change
6046 (default_get_string, c_get_string): Update.
6047 * language.c (default_get_string): Change type of "buffer".
6048 * guile/scm-value.c (gdbscm_value_to_string): Update.
6049 * c-lang.c (c_get_string): Change type of "buffer".
6051 2018-06-18 Tom Tromey <tom@tromey.com>
6053 * ser-mingw.c (struct pipe_state_destroyer): New.
6054 (pipe_state_up): New typedef.
6055 (cleanup_pipe_state): Remove.
6056 (pipe_windows_open): Use pipe_state_up. Don't release argv.
6058 2018-06-18 Tom Tromey <tom@tromey.com>
6060 * rust-lang.h (rust_yyerror): Don't declare.
6061 * rust-lang.c (rust_language_defn): Update.
6062 * rust-exp.y (yyerror): Now static.
6063 * parse.c (parse_exp_in_context_1): Update.
6064 * p-lang.h (p_yyerror): Don't declare.
6065 * p-lang.c (p_language_defn): Update.
6066 * p-exp.y (yyerror): Now static.
6067 * opencl-lang.c (opencl_language_defn): Update.
6068 * objc-lang.c (objc_language_defn): Update.
6069 * m2-lang.h (m2_yyerror): Don't declare.
6070 * m2-lang.c (m2_language_defn): Update.
6071 * m2-exp.y (yyerror): Now static.
6072 * language.h (struct language_defn) <la_error>: Remove.
6073 * language.c (unk_lang_error): Remove.
6074 (unknown_language_defn, auto_language_defn): Remove.
6075 * go-lang.h (go_yyerror): Don't declare.
6076 * go-lang.c (go_language_defn): Update.
6077 * go-exp.y (yyerror): Now static.
6078 * f-lang.h (f_yyerror): Don't declare.
6079 * f-lang.c (f_language_defn): Update.
6080 * f-exp.y (yyerror): Now static.
6081 * d-lang.h (d_yyerror): Don't declare.
6082 * d-lang.c (d_language_defn): Update.
6083 * d-exp.y (yyerror): Now static.
6084 * c-lang.h (c_yyerror): Don't declare.
6085 * c-lang.c (c_language_defn, cplus_language_defn)
6086 (asm_language_defn, minimal_language_defn): Update.
6087 * c-exp.y (yyerror): Now static.
6088 * ada-lang.h (ada_yyerror): Don't declare.
6089 * ada-lang.c (ada_language_defn): Update.
6090 * ada-exp.y (yyerror): Now static.
6092 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6094 * aarch64-linux-nat.c (fetch_sveregs_from_thread): New function.
6095 (store_sveregs_to_thread): Likewise.
6096 (aarch64_linux_fetch_inferior_registers): Check for SVE.
6097 (aarch64_linux_store_inferior_registers): Likewise.
6098 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_get_sveregs): New
6100 (aarch64_sve_regs_copy_to_regcache): Likewise.
6101 (aarch64_sve_regs_copy_from_regcache): Likewise.
6102 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_sveregs): New
6104 (aarch64_sve_regs_copy_to_regcache): Likewise.
6105 (aarch64_sve_regs_copy_from_regcache): Likewise.
6106 (sve_context): Structure from Linux headers.
6107 (SVE_SIG_ZREGS_SIZE): Define from Linux headers.
6108 (SVE_SIG_ZREG_SIZE): Likewise.
6109 (SVE_SIG_PREG_SIZE): Likewise.
6110 (SVE_SIG_FFR_SIZE): Likewise.
6111 (SVE_SIG_REGS_OFFSET): Likewise.
6112 (SVE_SIG_ZREGS_OFFSET): Likewise.
6113 (SVE_SIG_ZREG_OFFSET): Likewise.
6114 (SVE_SIG_ZREGS_SIZE): Likewise.
6115 (SVE_SIG_PREGS_OFFSET): Likewise.
6116 (SVE_SIG_PREG_OFFSET): Likewise.
6117 (SVE_SIG_PREGS_SIZE): Likewise.
6118 (SVE_SIG_FFR_OFFSET): Likewise.
6119 (SVE_SIG_REGS_SIZE): Likewise.
6120 (SVE_SIG_CONTEXT_SIZE): Likewise.
6121 (SVE_PT_REGS_MASK): Likewise.
6122 (SVE_PT_REGS_FPSIMD): Likewise.
6123 (SVE_PT_REGS_SVE): Likewise.
6124 (SVE_PT_VL_INHERIT): Likewise.
6125 (SVE_PT_VL_ONEXEC): Likewise.
6126 (SVE_PT_REGS_OFFSET): Likewise.
6127 (SVE_PT_FPSIMD_OFFSET): Likewise.
6128 (SVE_PT_FPSIMD_SIZE): Likewise.
6129 (SVE_PT_SVE_ZREG_SIZE): Likewise.
6130 (SVE_PT_SVE_PREG_SIZE): Likewise.
6131 (SVE_PT_SVE_FFR_SIZE): Likewise.
6132 (SVE_PT_SVE_FPSR_SIZE): Likewise.
6133 (SVE_PT_SVE_FPCR_SIZE): Likewise.
6134 (__SVE_SIG_TO_PT): Likewise.
6135 (SVE_PT_SVE_OFFSET): Likewise.
6136 (SVE_PT_SVE_ZREGS_OFFSET): Likewise.
6137 (SVE_PT_SVE_ZREG_OFFSET): Likewise.
6138 (SVE_PT_SVE_ZREGS_SIZE): Likewise.
6139 (SVE_PT_SVE_PREGS_OFFSET): Likewise.
6140 (SVE_PT_SVE_PREG_OFFSET): Likewise.
6141 (SVE_PT_SVE_PREGS_SIZE): Likewise.
6142 (SVE_PT_SVE_FFR_OFFSET): Likewise.
6143 (SVE_PT_SVE_FPSR_OFFSET): Likewise.
6144 (SVE_PT_SVE_FPCR_OFFSET): Likewise.
6145 (SVE_PT_SVE_SIZE): Likewise.
6146 (SVE_PT_SIZE): Likewise.
6147 (HAS_SVE_STATE): New define.
6149 2018-06-18 Alan Hayward <alan.hayward@arm.com>
6151 * nat/aarch64-sve-linux-sigcontext.h: New file.
6152 * nat/aarch64-sve-linux-ptrace.h (SVE_VQ_BYTES): Move to
6154 (SVE_VQ_MIN): Likewise.
6155 (SVE_VQ_MAX): Likewise.
6156 (SVE_VL_MIN): Likewise.
6157 (SVE_VL_MAX): Likewise.
6158 (SVE_NUM_ZREGS): Likewise.
6159 (SVE_NUM_PREGS): Likewise.
6160 (sve_vl_valid): Likewise.
6161 (struct user_sve_header): Likewise.
6163 2018-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6164 Richard Bunt <Richard.Bunt@arm.com>
6166 * linux-nat.c (stop_wait_callback): Don't discard SIGSTOP if it
6167 was requested by GDB.
6169 2018-06-15 Tom de Vries <tdevries@suse.de>
6171 * MAINTAINERS (Write After Approval): Add Tom de Vries.
6173 2018-06-14 Simon Marchi <simon.marchi@polymtl.ca>
6175 * gnulib/update-gnulib.sh: Print expected versions of
6178 2018-06-14 Simon Marchi <simon.marchi@ericsson.com>
6180 * arch-utils.c (default_type_align): Use type_length_units.
6181 * gdbtypes.c (type_align): Use type_length_units.
6183 2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6185 * cli/cli-script.c (_initialize_cli_script): Fix online documentation
6186 of 'define' command.
6188 2018-06-14 Tom de Vries <tdevries@suse.de>
6191 * infcmd.c (print_return_value_1): Use get_user_print_options instead of
6192 get_no_prettyformat_print_options.
6194 2018-06-13 Simon Marchi <simon.marchi@ericsson.com>
6196 * sparc-nat.h: Include target.h.
6197 * sparc64-linux-nat.c (class sparc64_linux_nat_target)
6198 <fetch_registers>: Remove this argument in function call.
6199 <store_registers>: Remove this argument in function call, remove
6201 <low_forget_process>: Call sparc64_forget_process instead of
6202 sparc_forget_process.
6204 2018-06-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6206 * procfs.c (_initialize_procfs): Use add_inf_child_target.
6207 (procfs_target::make_corefile_notes): Adjust to new
6208 target_read_alloc return type.
6210 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6211 Stephen Roberts <stephen.roberts@arm.com>
6214 * infrun.c (fetch_inferior_event): If GDB is not proceeding then
6215 run INF_EXEC_COMPLETE handler, even when not calling normal_stop.
6216 Move should_notify_stop local into more inner scope.
6218 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6219 Stephen Roberts <stephen.roberts@arm.com>
6222 * infrun.c (resume_1): Add call to mark_async_event_handler.
6224 2018-06-12 Andrew Burgess <andrew.burgess@embecosm.com>
6226 * infrun.c (do_target_wait): Change old version of $pc printed.
6228 2018-06-11 Simon Marchi <simon.marchi@ericsson.com>
6230 * dwarf2read.c (read_index_from_section): Rename to...
6231 (read_gdb_index_from_section): ... this, update all callers.
6232 (dwarf2_read_index): Rename to...
6233 (dwarf2_read_gdb_index): ... this, update all callers.
6235 2018-06-11 John David Anglin <danglin@gcc.gnu.org>
6237 * gdb/hppa-linux-nat.c
6238 (hppa_linux_nat_target::fetch_inferior_registers): Rename to
6239 hppa_linux_nat_target::fetch_registers.
6241 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6243 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
6244 * aarch64-tdep.h (AARCH64_DWARF_SVE_VG): Add define.
6245 (AARCH64_DWARF_SVE_FFR): Likewise.
6246 (AARCH64_DWARF_SVE_P0): Likewise.
6247 (AARCH64_DWARF_SVE_Z0): Likewise.
6249 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6251 * common/common-regcache.h (raw_compare): New function.
6252 * regcache.c (regcache::raw_compare): Likewise.
6253 * regcache.h (regcache::raw_compare): New declaration.
6255 2018-06-11 Alan Hayward <alan.hayward@arm.com>
6257 * common/common-regcache.h (reg_buffer_common): New structure.
6258 * regcache.c (reg_buffer::invalidate): Move from detached_regcache.
6259 (reg_buffer::raw_supply): Likewise.
6260 (reg_buffer::raw_supply_integer): Likewise.
6261 (reg_buffer::raw_supply_zeroed): Likewise.
6262 (reg_buffer::raw_collect): Likewise.
6263 (reg_buffer::raw_collect_integer): Likewise.
6264 * regcache.h (reg_buffer::invalidate): Move from detached_regcache.
6265 (reg_buffer::raw_supply): Likewise.
6266 (reg_buffer::raw_supply_integer): Likewise.
6267 (reg_buffer::raw_supply_zeroed): Likewise.
6268 (reg_buffer::raw_collect): Likewise.
6269 (reg_buffer::raw_collect_integer): Likewise.
6271 2018-06-10 Tom Tromey <tom@tromey.com>
6273 * remote.c (stop_reply_p): Remove typedef. Don't declare queue.
6274 (class remote_state) <stop_reply_queue>: Now std::vector.
6275 (remote_state::~remote_state)
6276 (remote_target::stop_reply_queue_length): Update.
6277 (struct queue_iter_param, remove_child_of_pending_fork)
6278 (struct check_pending_event_prevents_wildcard_vcont_callback_data)
6279 (check_pending_event_prevents_wildcard_vcont_callback)
6280 (remove_stop_reply_for_inferior)
6281 (remove_stop_reply_of_remote_state)
6282 (remote_notif_remove_once_on_match)
6283 (stop_reply_match_ptid_and_ws)
6284 (remote_kill_child_of_pending_fork): Remove.
6285 (remote_target::remove_new_fork_children)
6286 (remote_target::check_pending_events_prevent_wildcard_vcont)
6287 (remote_target::discard_pending_stop_replies)
6288 (remote_target::discard_pending_stop_replies_in_queue)
6289 (remote_target::remote_notif_remove_queued_reply)
6290 (remote_target::queued_stop_reply)
6291 (remote_target::push_stop_reply, remote_target::peek_stop_reply)
6292 (remote_target::wait, remote_target::kill_new_fork_children)
6293 (remote_target::async): Update.
6295 2018-06-10 Tom Tromey <tom@tromey.com>
6297 * record-full.c (record_full_arch_list_cleanups): Remove.
6298 (record_full_message): Use try/catch.
6299 (record_full_wait_cleanups): Remove.
6300 (record_full_wait_1): Use try/catch.
6301 (record_full_restore): Likewise.
6303 2018-06-10 Tom Tromey <tom@tromey.com>
6305 * record-full.c (record_full_breakpoint_p): Remove typedef. Don't
6306 declare VEC. Add constructor.
6307 <in_target_beneath>: Now bool.
6308 (record_full_breakpoints): Now a std::vector, static.
6309 (record_full_sync_record_breakpoints)
6310 (record_full_init_record_breakpoints)
6311 (record_full_target::insert_breakpoint)
6312 (record_full_target::remove_breakpoint): Update. Don't use XNEW.
6314 2018-06-10 Simon Marchi <simon.marchi@polymtl.ca>
6316 * dwarf2read.c (process_cu_includes): Remove struct keyword.
6317 * serial.c (serial_interface_lookup): Remove struct keyword.
6319 2018-06-10 Tom Tromey <tom@tromey.com>
6321 * procfs.c (procfs_target::xfer_partial): Use "beneath" as a
6323 * nto-procfs.c (nto_procfs_target::xfer_partial): Use "beneath" as
6325 * go32-nat.c (go32_nat_target::xfer_partial): Use "beneath" as a
6327 * arm-linux-nat.c (arm_linux_nat_target::read_description): Use
6328 "beneath" as a method.
6329 * arm-fbsd-nat.c (arm_fbsd_nat_target::read_description):
6330 Use "beneath" as a method.
6332 2018-06-10 Tom Tromey <tom@tromey.com>
6334 * tracefile.c (struct trace_file_writer_deleter): New.
6335 <operator()>: Rename from trace_file_writer_xfree.
6336 (trace_file_writer_up): New typedef.
6337 (tsave_command, trace_save_tfile, trace_save_ctf): Update.
6339 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6341 * regcache.h (reg_buffer) <~reg_buffer>: Use default destructor.
6342 <m_registers, m_register_status>: Change type to
6344 * regcache.c (reg_buffer::reg_buffer): Use new instead of
6347 2018-06-09 Simon Marchi <simon.marchi@ericsson.com>
6349 * common/common-regcache.h (enum register_status): Add
6350 underlying type "signed char".
6351 * regcache.h (reg_buffer) <m_register_status>: Change type to
6353 * regcache.c (reg_buffer::reg_buffer): Alocate arrays of
6354 register_status instead of signed char.
6355 (reg_buffer::save): Use REG_UNKNOWN instead of 0.
6356 (reg_buffer::get_register_status): Remove cast.
6357 (readable_regcache::raw_read): Remove cast.
6358 (readable_regcache::cooked_read): Remove cast.
6360 2018-06-09 Tom Tromey <tom@tromey.com>
6362 * source.c (reverse_search_command, forward_search_command): Use
6365 2018-06-09 Tom Tromey <tom@tromey.com>
6367 * serial.c (serial_ops_p): Remove typedef. Don't declare VEC.
6368 (serial_ops_list): Now static, std::vector.
6369 (serial_interface_lookup, serial_add_interface): Update.
6371 2018-06-09 Tom Tromey <tom@tromey.com>
6373 * dwarf2read.c (process_cu_includes): Update.
6374 (process_full_comp_unit): Update.
6375 * dwarf2read.h (struct dwarf2_per_objfile) <just_read_cus>: Now a
6378 2018-06-08 Paul Koning <paul_koning@dell.com>
6382 * python/python.c (do_start_initialization):
6383 Avoid call to internal Python API.
6384 (init__gdb_module): New function.
6386 2018-06-08 Gary Benson <gbenson@redhat.com>
6388 * linux-thread-db.c (valprint.h): New include.
6389 (struct check_thread_db_info): New structure.
6390 (check_thread_db_on_load, tdb_testinfo): New static globals.
6391 (check_thread_db, check_thread_db_callback): New functions.
6392 (try_thread_db_load_1): Run integrity checks if requested.
6393 (maintenance_check_libthread_db): New function.
6394 (_initialize_thread_db): Register "maint check libthread-db"
6395 and "maint set/show check-libthread-db".
6396 * NEWS: Mention the above new commands.
6398 2018-06-08 Tom Tromey <tom@tromey.com>
6400 * windows-nat.c (windows_nat_target::xfer_partial): "beneath" is
6403 2018-06-08 Tom Tromey <tom@tromey.com>
6405 * btrace.c (parse_xml_raw): Use gdb::unique_xmalloc_ptr.
6407 2018-06-08 Tom Tromey <tom@tromey.com>
6409 * common/btrace-common.h (struct btrace_data): Add constructor,
6410 destructor, move assignment operator.
6411 <empty, clear, fini>: New methods.
6412 <format>: Initialize.
6413 (btrace_data_init, btrace_data_fini, btrace_data_clear)
6414 (btrace_data_empty): Don't declare.
6415 * common/btrace-common.c (btrace_data_init): Remove.
6416 (btrace_data::fini): Rename from btrace_data_fini.
6417 (btrace_data::empty): Rename from btrace_data_empty.
6418 (btrace_data::clear): Rename from btrace_data_clear. Return
6420 * btrace.h (make_cleanup_btrace_data): Don't declare.
6421 * btrace.c (btrace_add_pc, btrace_stitch_trace, btrace_clear)
6422 (parse_xml_btrace): Update.
6423 (do_btrace_data_cleanup, make_cleanup_btrace_data): Remove.
6424 (maint_btrace_clear_packet_history_cmd): Update.
6426 2018-06-07 Pedro Alves <palves@redhat.com>
6428 * target.h (target_ops) <beneath>: Now a method. All references
6430 (class target_stack): New.
6431 * target.c (g_target_stack): New.
6432 (g_current_top_target): Delete.
6433 (current_top_target): Get the top target out of g_target_stack.
6434 (target_stack::push, target_stack::unpush): New.
6435 (push_target, unpush_target): Reimplement.
6436 (target_is_pushed): Reimplement in terms of g_target_stack.
6437 (target_ops::beneath, target_stack::find_beneath): New.
6439 2018-06-07 Pedro Alves <palves@redhat.com>
6441 * target.h (find_target_beneath): Delete declaration.
6442 * target.c (find_target_beneath): Delete definition.
6443 * aix-thread.c: All callers of find_target_beneath adjusted to
6444 call target_ops::beneath instead.
6445 * bsd-uthread.c: Likewise.
6446 * linux-thread-db.c: Likewise.
6447 * ravenscar-thread.c: Likewise.
6448 * sol-thread.c: Likewise.
6449 * spu-multiarch.c: Likewise.
6451 2018-06-07 Pedro Alves <palves@redhat.com>
6453 * target.h (target_ops) <beneath>: Now a method. All references
6455 (target_ops) <m_beneath>: New.
6456 * target.c (target_ops::beneath): New.
6457 * corelow.c: Adjust all references to target_ops::beneath.
6458 * linux-thread-db.c: Likewise.
6459 * make-target-delegates: Likewise.
6460 * record-btrace.c: Likewise.
6461 * record-full.c: Likewise.
6462 * remote.c: Likewise.
6463 * target.c: Likewise.
6464 * target-delegates.c: Regenerate.
6466 2018-06-07 Pedro Alves <palves@redhat.com>
6468 * target.h (target_stack): Delete.
6469 (current_top_target): Declare function.
6470 * target.c (target_stack): Delete.
6471 (g_current_top_target): New.
6472 (current_top_target): New function.
6473 * auxv.c: Use current_top_target instead of target_stack
6475 * avr-tdep.c: Likewise.
6476 * breakpoint.c: Likewise.
6477 * corefile.c: Likewise.
6478 * elfread.c: Likewise.
6480 * exceptions.c: Likewise.
6481 * frame.c: Likewise.
6482 * gdbarch-selftests.c: Likewise.
6483 * gnu-v3-abi.c: Likewise.
6484 * ia64-tdep.c: Likewise.
6485 * ia64-vms-tdep.c: Likewise.
6486 * infcall.c: Likewise.
6487 * infcmd.c: Likewise.
6488 * infrun.c: Likewise.
6489 * linespec.c: Likewise.
6490 * linux-tdep.c: Likewise.
6491 * minsyms.c: Likewise.
6492 * ppc-linux-nat.c: Likewise.
6493 * ppc-linux-tdep.c: Likewise.
6494 * procfs.c: Likewise.
6495 * regcache.c: Likewise.
6496 * remote.c: Likewise.
6497 * rs6000-tdep.c: Likewise.
6498 * s390-linux-nat.c: Likewise.
6499 * s390-tdep.c: Likewise.
6500 * solib-aix.c: Likewise.
6501 * solib-darwin.c: Likewise.
6502 * solib-dsbt.c: Likewise.
6503 * solib-spu.c: Likewise.
6504 * solib-svr4.c: Likewise.
6505 * solib-target.c: Likewise.
6506 * sparc-tdep.c: Likewise.
6507 * sparc64-tdep.c: Likewise.
6508 * spu-tdep.c: Likewise.
6509 * symfile.c: Likewise.
6510 * symtab.c: Likewise.
6511 * target-descriptions.c: Likewise.
6512 * target-memory.c: Likewise.
6513 * target.c: Likewise.
6514 * target.h: Likewise.
6515 * tracefile-tfile.c: Likewise.
6516 * tracepoint.c: Likewise.
6517 * valops.c: Likewise.
6518 * valprint.c: Likewise.
6519 * value.c: Likewise.
6520 * windows-tdep.c: Likewise.
6521 * mi/mi-main.c: Likewise.
6523 2018-06-07 Tom Tromey <tom@tromey.com>
6525 * valprint.h (build_address_symbolic): Declare.
6526 * printcmd.c (print_address_symbolic): Update.
6527 (build_address_symbolic): Change "name" and "filename" to
6529 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
6531 * defs.h (build_address_symbolic): Remove declaration.
6533 2018-06-07 Alan Hayward <alan.hayward@arm.com>
6535 * aarch64-tdep.c (AARCH64_SVE_V0_REGNUM): Add define.
6536 (aarch64_vnv_type): Add function.
6537 (aarch64_pseudo_register_name): Add V regs for SVE.
6538 (aarch64_pseudo_register_type): Likewise.
6539 (aarch64_pseudo_register_reggroup_p): Likewise.
6540 (aarch64_pseudo_read_value_2): Use V0 offset for SVE
6541 (aarch64_pseudo_read_value): Add V regs for SVE.
6542 (aarch64_pseudo_write_2): Use V0 offset for SVE
6543 (aarch64_pseudo_write): Add V regs for SVE.
6544 * aarch64-tdep.h (struct gdbarch_tdep): Add vnv_type.
6546 2018-06-06 Sergio Durigan Junior <sergiodj@redhat.com>
6548 * arch/aarch64.h (sve_vq_from_vl): Guard with #ifndef.
6549 (sve_vl_from_vq): Likewise.
6551 2018-06-05 Tom Tromey <tom@tromey.com>
6553 * cli/cli-cmds.c (show_version): Update.
6554 * top.c (print_gdb_version): Add "interactive" parameter.
6556 * main.c (captured_main_1): Update.
6557 * top.h (print_gdb_version): Add "interactive" parameter and a
6560 2018-06-05 David Malcolm <dmalcolm@redhat.com>
6562 * common/enum-flags.h: Add trailing semicolon to example in
6565 2018-06-05 Tom Tromey <tom@tromey.com>
6568 * NEWS: Add entry about pager.
6569 * utils.c (pagination_disabled_for_command): New global.
6570 (prompt_for_continue): Allow "c" response to prompt.
6571 (reinitialize_more_filter): Clear
6572 pagination_disabled_for_command.
6573 (fputs_maybe_filtered): Check pagination_disabled_for_command.
6575 2018-06-04 Tom Tromey <tom@tromey.com>
6577 * ada-lang.h (ada_lookup_symbol_list): Update.
6578 * ada-lang.c (resolve_subexp): Update.
6579 (symbols_are_identical_enums): Change type of syms. Remove nsyms
6581 (remove_extra_symbols, remove_irrelevant_renamings): Likewise.
6582 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Change
6583 results parameter to std::vector.
6584 (ada_iterate_over_symbols, ada_lookup_symbol, get_var_value):
6586 * ada-exp.y (block_lookup): Update.
6587 (select_possible_type_sym): Change type of syms. Remove nsyms
6589 (write_var_or_type, write_name_assoc): Update.
6591 2018-06-04 Joel Brobecker <brobecker@adacore.com>
6593 * windows-nat.c (windows_nat_target::xfer_partial): Return
6594 TARGET_XFER_E_IO if we need to delegate to the target beneath
6595 but BENEATH is NULL.
6597 2018-06-04 Simon Marchi <simon.marchi@ericsson.com>
6599 * Makefile.in (config.status): Add configure.nat as a
6602 2018-06-04 Tom Tromey <tom@tromey.com>
6604 * cp-name-parser.y (cpname_state): Add method declarations.
6605 (HANDLE_QUAL): Update.
6606 (cpname_state::d_grab, cpname_state::fill_comp)
6607 (cpname_state::make_operator, cpname_state::make_dtor)
6608 (cpname_state::make_builtin_type, cpname_state::make_name)
6609 (cpname_state::d_qualify, cpname_state::d_int_type)
6610 (cpname_state::d_unary, cpname_state::d_binary): Now methods.
6611 (%union): Move earlier.
6613 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6615 * elfread.c (elf_symfile_segments): Use ELF_SECTION_IN_SEGMENT.
6617 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6619 * aarch64-tdep.c (aarch64_pseudo_read_value_1): New helper func.
6620 (aarch64_pseudo_write_1): Likewise.
6621 (aarch64_pseudo_read_value): Use helper.
6622 (aarch64_pseudo_write): Likewise.
6624 2018-06-04 Pedro Alves <palves@redhat.com>
6626 * darwin-nat.c (darwin_ops): Delete.
6627 (darwin_attach_pid): Use get_native_target.
6629 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6631 * aarch64-tdep.c (aarch64_get_tdesc_vq): Use uint64_t for VQ.
6632 * aarch64-tdep.h (struct gdbarch_tdep): Likewise.
6634 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6636 * aarch64-linux-nat.c (aarch64_linux_read_description): Support SVE.
6637 * aarch64-tdep.c (aarch64_get_tdesc_vq): New function.
6638 (aarch64_gdbarch_init): Check for SVE.
6639 * aarch64-tdep.h (gdbarch_tdep::has_sve): New function.
6641 2018-06-04 Alan Hayward <alan.hayward@arm.com>
6643 * aarch64-tdep.c (aarch64_read_description): Use uint64_t for VQ.
6644 * aarch64-tdep.h (aarch64_read_description): Likewise.
6645 * arch/aarch64.c (aarch64_create_target_description): Likewise.
6646 * arch/aarch64.h (aarch64_create_target_description): Likewise.
6647 * features/aarch64-sve.c (create_feature_aarch64_sve): Likewise.
6648 * nat/aarch64-sve-linux-ptrace.c(aarch64_sve_get_vq): Likewise.
6649 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_get_vq): Likewise.
6651 2018-06-02 Simon Marchi <simon.marchi@ericsson.com>
6653 * value.c (value_fetch_lazy_bitfield): New.
6654 (value_fetch_lazy_memory): New.
6655 (value_fetch_lazy_register): New.
6656 (value_fetch_lazy): Factor out to smaller functions.
6658 2018-06-01 Tom Tromey <tom@tromey.com>
6660 * cp-name-parser.y (backslashable, represented): Now const.
6662 2018-06-01 Tom Tromey <tom@tromey.com>
6664 * cp-name-parser.y: Include parser-defs.h.
6665 (parser_fprintf): Remove declaration.
6667 2018-06-01 Tom Tromey <tom@tromey.com>
6669 * cp-name-parser.y: Use %pure-parser, %lex-param, and
6671 (lexptr, prev_lexptr, error_lexptr, global_errmsg, demangle_info)
6672 (global_result): Remove globals.
6673 (struct cpname_state): New.
6674 (yyparse): Don't declare.
6675 (yylex, yyerror): Move declarations after %union.
6676 (d_grab, fill_comp, make_operator, make_dtor, make_builtin_type)
6677 (make_name): Add state parameter.
6679 (d_qualify, d_int_type, d_unary, d_binary, parse_number) Add state
6681 (HANDLE_QUAL, HANDLE_SPECIAL, HANDLE_TOKEN2, HANDLE_TOKEN3):
6683 (yylex): Add lvalp, state parameters.
6684 (yyerror): Add state parameter.
6685 (cp_demangled_name_to_comp): Update.
6687 2018-06-01 Tom Tromey <tom@tromey.com>
6689 * cp-name-parser.y (parser_fprintf): Declare.
6690 (GDB_YY_REMAP_PREFIX): Define.
6691 Include yy-remap.h. Don't redefine yy* identifiers.
6693 2018-06-01 Tom Tromey <tom@tromey.com>
6695 * python/py-type.c (typy_legacy_template_argument): Update.
6696 * cp-support.h (cp_demangled_name_to_comp): Update.
6697 * cp-name-parser.y (cp_demangled_name_to_comp): Change errmsg
6698 parameter to be a "std::string *".
6701 2018-06-01 H.J. Lu <hongjiu.lu@intel.com>
6703 * ada-lex.l: Include "diagnostics.h" instead of
6704 "common/diagnostics.h".
6705 * unittests/environ-selftests.c: Likewise.
6706 * common/diagnostics.h: Moved to ../include.
6708 2018-06-01 Joel Brobecker <brobecker@adacore.com>
6710 * breakpoint.c (breakpoint_re_set): Temporarily force language_mode
6711 to language_mode_manual while calling breakpoint_re_set_one.
6713 2018-06-01 Tom Tromey <tom@tromey.com>
6715 * valops.c (value_cast_structs, destructor_name_p): Update.
6716 * symtab.c (gdb_mangle_name): Update.
6717 * stabsread.c (define_symbol, read_cpp_abbrev, read_baseclasses):
6719 * p-valprint.c (pascal_object_is_vtbl_ptr_type)
6720 (pascal_object_print_value_fields, pascal_object_print_value):
6722 * p-typeprint.c (pascal_type_print_derivation_info): Update.
6723 * linespec.c (find_methods): Update.
6724 * gdbtypes.h (type_name_no_tag): Remove.
6725 (type_name_or_error): Rename from type_name_no_tag_or_error.
6726 * gdbtypes.c (type_name_no_tag): Remove.
6727 (type_name_or_error): Rename from type_name_no_tag_or_error.
6728 (lookup_struct_elt_type, check_typedef): Update.
6729 * expprint.c (print_subexp_standard): Update.
6730 * dwarf2read.c (dwarf2_add_field, load_partial_dies): Update.
6731 * d-namespace.c (d_lookup_nested_symbol): Update.
6732 * cp-valprint.c (cp_is_vtbl_ptr_type, cp_print_value_fields)
6733 (cp_print_class_member): Update.
6734 * cp-namespace.c (cp_lookup_nested_symbol): Update.
6735 * completer.c (add_struct_fields): Update.
6736 * c-typeprint.c (cp_type_print_derivation_info)
6737 (c_type_print_varspec_prefix, c_type_print_base_struct_union):
6739 * ada-lang.c (parse_old_style_renaming, xget_renaming_scope)
6740 (ada_prefer_type, ada_is_exception_sym): Update.
6742 2018-06-01 Tom Tromey <tom@tromey.com>
6744 * valops.c (enum_constant_from_type, value_namespace_elt)
6745 (value_maybe_namespace_elt): Update.
6746 * valarith.c (find_size_for_pointer_math): Update.
6747 * target-descriptions.c (make_gdb_type): Update.
6748 * symmisc.c (print_symbol): Update.
6749 * stabsread.c (define_symbol, read_type)
6750 (complain_about_struct_wipeout, add_undefined_type)
6751 (cleanup_undefined_types_1): Update.
6752 * rust-lang.c (rust_tuple_type_p, rust_slice_type_p)
6753 (rust_range_type_p, val_print_struct, rust_print_struct_def)
6754 (rust_internal_print_type, rust_composite_type)
6755 (rust_evaluate_funcall, rust_evaluate_subexp)
6756 (rust_inclusive_range_type_p): Update.
6757 * python/py-type.c (typy_get_tag): Update.
6758 * p-typeprint.c (pascal_type_print_base): Update.
6759 * mdebugread.c (parse_symbol, parse_type): Update.
6760 * m2-typeprint.c (m2_long_set, m2_record_fields, m2_enum):
6762 * guile/scm-type.c (gdbscm_type_tag): Update.
6763 * go-lang.c (sixg_string_p): Update.
6764 * gnu-v3-abi.c (build_gdb_vtable_type, build_std_type_info_type):
6766 * gdbtypes.h (struct main_type) <tag_name>: Remove.
6767 (TYPE_TAG_NAME): Remove.
6768 * gdbtypes.c (type_name_no_tag): Simplify.
6769 (check_typedef, check_types_equal, recursive_dump_type)
6770 (copy_type_recursive, arch_composite_type): Update.
6771 * f-typeprint.c (f_type_print_base): Update. Print "Type" prefix
6772 in summary mode when needed.
6773 * eval.c (evaluate_funcall): Update.
6774 * dwarf2read.c (fixup_go_packaging, read_structure_type)
6775 (process_structure_scope, read_enumeration_type)
6776 (read_namespace_type, read_module_type, determine_prefix): Update.
6777 * cp-support.c (inspect_type): Update.
6778 * coffread.c (process_coff_symbol, decode_base_type): Update.
6779 * c-varobj.c (c_is_path_expr_parent): Update.
6780 * c-typeprint.c (c_type_print_base_struct_union): Update.
6781 (c_type_print_base_1): Update. Print struct/class/union/enum in
6782 summary when using C language.
6783 * ax-gdb.c (gen_struct_ref, gen_namespace_elt)
6784 (gen_maybe_namespace_elt): Update.
6785 * ada-lang.c (ada_type_name): Simplify.
6786 (empty_record, ada_template_to_fixed_record_type_1)
6787 (template_to_static_fixed_type)
6788 (to_record_with_fixed_variant_part, ada_check_typedef): Update.
6790 2018-06-01 Tom Tromey <tom@tromey.com>
6792 * dwarf2read.c (dwarf2_compute_name): Pass CU's language to
6794 * c-typeprint.c (c_print_type_1): Add "language" parameter.
6795 (c_print_type): Update.
6796 (c_print_type): New overload.
6797 (c_type_print_varspec_prefix, c_type_print_args)
6798 (c_type_print_varspec_suffix, c_print_type_no_offsets)
6799 (c_type_print_base_struct_union, c_type_print_base_1)
6800 (cp_type_print_method_args): Add "language" parameter.
6801 (c_type_print_base): Update.
6802 * c-lang.h (c_print_type): Add new overload.
6804 2018-06-01 Tom Tromey <tom@tromey.com>
6806 * typeprint.h (c_type_print_varspec_suffix): Don't declare.
6807 * c-typeprint.c (c_type_print_varspec_suffix): Now static.
6809 2018-06-01 Alan Hayward <alan.hayward@arm.com>
6811 * aarch64-tdep.c (aarch64_sve_register_names): New const
6813 * arch/aarch64.h (enum aarch64_regnum): Add SVE entries.
6814 (AARCH64_SVE_Z_REGS_NUM): New define.
6815 (AARCH64_SVE_P_REGS_NUM): Likewise.
6816 (AARCH64_SVE_NUM_REGS): Likewise.
6818 2018-05-31 Uros Bizjak <ubizjak@gmail.com>
6820 * nat/linux-ptrace.h [__alpha__]
6821 (GDB_ARCH_IS_TRAP_BRKPT, GDB_ARCH_IS_TRAP_HWBKPT): Remove
6824 2018-05-31 Maciej W. Rozycki <macro@mips.com>
6826 * arch-utils.c (gdbarch_info_fill): Set `default_byte_order' to
6827 the endianness selected.
6828 * NEWS: Document `set endian auto' mode operation update.
6830 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6832 * Makefile.in: Add new header.
6833 * gdb/arch/aarch64.h (sve_vg_from_vl): New macro.
6834 (sve_vl_from_vg): Likewise.
6835 (sve_vq_from_vl): Likewise.
6836 (sve_vl_from_vq): Likewise.
6837 (sve_vq_from_vg): Likewise.
6838 (sve_vg_from_vq): Likewise.
6839 * configure.nat: Add new c file.
6840 * nat/aarch64-sve-linux-ptrace.c: New file.
6841 * nat/aarch64-sve-linux-ptrace.h: New file.
6843 2018-05-31 Alan Hayward <alan.hayward@arm.com>
6845 * aarch64-linux-nat.c (aarch64_linux_read_description):
6847 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
6849 * aarch64-tdep.c (tdesc_aarch64_list): Add.
6850 (aarch64_read_description): Use VQ to index tdesc_aarch64_list.
6851 (aarch64_gdbarch_init): Add parmeter zero.
6852 * aarch64-tdep.h (aarch64_read_description): Add VQ parmeter.
6853 * arch/aarch64.c (aarch64_create_target_description): Check VQ.
6854 * arch/aarch64.h (aarch64_create_target_description): Add VQ.
6856 * doc/gdb.texinfo: Describe SVE feature
6857 * features/aarch64-sve.c: New file.
6859 2018-05-31 Omair Javaid <omair.javaid@linaro.org>
6862 * gdbarch.sh (significant_addr_bit): Default to zero when
6863 not set by target architecture.
6864 * gdbarch.c: Re-generated.
6865 * utils.c (address_significant): Update.
6867 2018-05-30 Joel Brobecker <brobecker@adacore.com>
6869 * stack.c (func_command): Remove trailing newline in call to error.
6871 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6873 * regcache.h (regcache_raw_collect): Remove, update callers to
6874 use regcache::raw_collect.
6875 * regcache.c (regcache_raw_collect): Remove.
6877 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6879 * regcache.h (regcache_raw_supply): Remove, update callers to
6880 use detached_regcache::raw_supply.
6881 * regcache.c (regcache_raw_supply): Remove.
6883 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6885 * regcache.h (regcache_cooked_write_part): Remove, update
6886 callers to use regcache::cooked_write_part.
6887 * regcache.c (regcache_cooked_write_part): Remove.
6889 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6891 * regcache.h (regcache_cooked_read_part): Remove, update callers
6892 to use readable_regcache::cooked_read_part.
6893 * regcache.c (regcache_cooked_read_part): Remove.
6895 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6897 * regcache.h (regcache_cooked_read_value): Remove, update
6898 callers to use readable_regcache::cooked_read_value.
6899 * regcache.c (regcache_cooked_read_value): Remove.
6901 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6903 * regcache.h (regcache_cooked_write): Remove, update callers to
6904 use regcache::cooked_write.
6905 * regcache.c (regcache_cooked_write): Remove.
6907 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6909 * regcache.h (regcache_invalidate): Remove, update callers to
6910 use detached_regcache::invalidate instead.
6911 * regcache.c (regcache_invalidate): Remove.
6913 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6915 * regcache.h (regcache_raw_write_part): Remove, update callers
6916 to use regcache::raw_write_part instead.
6917 * regcache.c (regcache_raw_write_part): Remove.
6919 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6921 * regcache.h (regcache_raw_read_part): Remove, update callers to
6922 use readable_regcache::raw_read_part instead.
6923 * regcache.c (regcache_raw_read_part): Remove.
6925 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6927 * regcache.h (regcache_cooked_read): Remove, update callers to
6928 use readable_regcache::cooked_read instead.
6929 * regcache.c (regcache_cooked_read): Remove.
6931 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6933 * regcache.h (regcache_raw_write): Remove, update callers to use
6934 regcache::raw_write instead.
6935 * regcache.c (regcache_raw_write): Remove.
6937 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6939 * regcache.h (regcache_raw_read): Remove, update callers to use
6940 readable_regcache::raw_read instead.
6941 * regcache.c (regcache_raw_read): Remove.
6943 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6945 * regcache.h (regcache_raw_update): Remove, update callers to
6946 use readable_regcache::raw_update instead.
6947 * regcache.c (regcache_raw_update): Remove.
6949 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6951 * regcache.h (regcache_register_status): Remove, update callers
6952 to use reg_buffer::get_register_status directly instead.
6953 * regcache.c (regcache_register_status): Remove.
6955 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6957 * regcache.h (regcache_get_ptid): Remove, update all callers to
6958 call regcache::ptid instead.
6959 * regcache.c (regcache_get_ptid): Remove.
6961 2018-05-30 Simon Marchi <simon.marchi@ericsson.com>
6963 * Makefile.in (ALL_TARGET_OBS): Add or1k-tdep.o.
6965 2018-05-30 Pedro Alves <palves@redhat.com>
6967 * common/common-exceptions.h (exception_rethrow): Use
6970 2018-05-29 Simon Marchi <simon.marchi@polymtl.ca>
6972 * breakpoint.c (print_solib_event, check_status_catch_solib):
6973 Remove struct keyword in range-based for loops.
6974 * dbxread.c (find_corresponding_bincl_psymtab): Likewise.
6975 * dwarf2read.c (compute_delayed_physnames, rust_union_quirks);
6977 * linespec.c (find_superclass_methods, search_minsyms_for_name):
6979 * symfile.c (addr_info_make_relative): Likewise.
6980 * thread.c (value_in_thread_stack_temporaries): Likewise.
6982 2018-06-12 Weimin Pan <weimin.pan@oracle.com>
6985 * valops.c (value_struct_elt_for_reference): Call check_typedef on
6986 aggregate type to get its real type before accessing it.
6988 2018-05-29 Weimin Pan <weimin.pan@oracle.com>
6990 * minsyms.h (lookup_minimal_symbol_and_objfile): Remove declaration.
6991 * minsyms.c (lookup_minimal_symbol_and_objfile): Remove definition.
6992 * coff-pe-read.c (add_pe_forwarded_sym): Replace
6993 lookup_minimal_symbol_and_objfile with lookup_bound_minimal_symbol.
6994 * glibc-tdep.c (glibc_skip_solib_resolver): Likewise.
6995 * jit.c (jit_breakpoint_re_set_internal): Likewise.
6996 * printcmd.c (info_address_command): Likewise.
6998 2018-05-29 Tom Tromey <tom@tromey.com>
7000 * windows-nat.c (handle_exception): Update fall-through comment.
7002 2018-05-29 Tom Tromey <tom@tromey.com>
7004 * progspace.h (so_list_ptr): Remove typedef. Don't declare VEC.
7005 (struct program_space) <added_solibs>: Now a std::vector.
7006 * breakpoint.c (print_solib_event): Update.
7007 (check_status_catch_solib): Update.
7008 * progspace.c (clear_program_space_solib_cache): Update.
7009 * solib.c (update_solib_list): Update.
7011 2018-05-29 Tom Tromey <tom@tromey.com>
7013 * python/py-type.c (typy_richcompare): Update.
7014 * guile/scm-type.c (tyscm_equal_p_type_smob): Update.
7015 * gdbtypes.h (types_deeply_equal): Return bool.
7016 (types_equal): Likewise.
7017 * gdbtypes.c (type_equality_entry_d): Remove typedef. Don't
7019 (check_types_equal): Change worklist to std::vector. Return
7021 (struct type_equality_entry): Add constructor.
7022 (compare_maybe_null_strings): Return bool.
7023 (check_types_worklist): Return bool. Change worklist to
7025 (types_deeply_equal): Use std::vector.
7026 (types_equal): Return bool.
7027 (compare_maybe_null_strings): Simplify.
7029 2018-05-29 Tom Tromey <tom@tromey.com>
7031 * record-btrace.c (tp_t): Remove typedef. Don't declare VEC.
7033 2018-05-29 Tom Tromey <tom@tromey.com>
7035 * objc-lang.h: Don't include cp-support.h.
7036 * common/gdb_vecs.h (const_char_ptr): Remove typedef. Don't
7039 2018-05-27 Tom Tromey <tom@tromey.com>
7041 * Makefile.in (DEPFILES): Don't reference REMOTE_OBS.
7043 2018-05-25 Tom Tromey <tom@tromey.com>
7045 * value.c (value::location): Initialize.
7047 2018-05-25 Tom Tromey <tom@tromey.com>
7049 * dbxread.c (init_bincl_list): Remove.
7050 (bincl_list): Now a std::vector.
7051 (bincls_allocated, next_bincl): Remove.
7052 (free_bincl_list, do_free_bincl_list_cleanup)
7053 (make_cleanup_free_bincl_list): Remove.
7054 (dbx_read_symtab, elfstab_build_psymtabs): Use scoped_restore,
7056 (find_corresponding_bincl_psymtab, read_dbx_symtab): Update.
7057 (struct header_file_location): Add constructor.
7058 (add_bincl_to_list): Remove.
7060 2018-05-25 Tom Tromey <tom@tromey.com>
7062 * tui/tui.c (tui_enable): Update.
7063 * mi/mi-interp.c (mi_interp::init): Update.
7064 * interps.h (class interp) <name>: New method.
7065 <m_name>: Rename from name.
7066 (~scoped_restore_interp): Update.
7067 * interps.c (interp::interp): Update.
7068 (interp_add, interp_set, interp_lookup_existing)
7069 (current_interp_named_p): Update.
7071 2018-05-25 Tom Tromey <tom@tromey.com>
7073 * interps.c (interp_name): Remove.
7074 * mi/mi-interp.c (mi_interp::init): Update.
7075 * interps.h (interp_name): Remove.
7076 (~scoped_restore_interp): Update.
7077 * tui/tui.c (tui_enable): Update.
7079 2018-05-25 Tom Tromey <tom@tromey.com>
7081 * utils.c (fputs_maybe_filtered): Update.
7082 * linespec.c (decode_line_full): Update.
7083 * mi/mi-interp.c (mi_on_normal_stop_1, mi_tsv_modified)
7084 (mi_print_breakpoint_for_event, mi_solib_loaded)
7085 (mi_solib_unloaded, mi_command_param_changed, mi_memory_changed)
7086 (mi_user_selected_context_changed): Update.
7087 * mi/mi-main.c (mi_execute_command): Update.
7088 * cli/cli-script.c (execute_control_command): Update.
7089 * python/python.c (execute_gdb_command): Update.
7090 * solib.c (info_sharedlibrary_command): Update.
7091 * interps.c (interp_ui_out): Remove.
7092 * interps.h (interp_ui_out): Remove.
7094 2018-05-25 Tom Tromey <tom@tromey.com>
7096 * tui/tui-interp.c (as_tui_interp): Use dynamic_cast.
7097 * mi/mi-interp.c (as_mi_interp): Use dynamic_cast.
7098 * cli/cli-interp.c (as_cli_interp): Use dynamic_cast.
7100 2018-05-25 Tom Tromey <tom@tromey.com>
7102 * cli/cli-interp.c (safe_execute_command): Use scoped_restore.
7103 * interps.c (interp_exec): Use scoped_restore.
7105 2018-05-25 Tom Tromey <tom@tromey.com>
7107 * remote.c (remote_target::remote_file_get): Use
7109 (remote_target::remote_file_put): Likewise.
7111 2018-05-25 Tom Tromey <tom@tromey.com>
7113 * coff-pe-read.c (struct read_pe_section_data) <section_name>: Now
7115 (get_pe_section_index, add_pe_exported_sym): Update.
7116 (read_pe_exported_syms): Use gdb::def_vector.
7118 2018-05-25 Tom Tromey <tom@tromey.com>
7120 * frame.c (remove_prev_frame): Remove.
7121 (get_prev_frame_if_no_cycle): Use TRY/CATCH.
7123 2018-05-25 Maciej W. Rozycki <macro@mips.com>
7125 * mips-linux-tdep.h (mips_supply_fpregset, mips_fill_fpregset):
7127 * mips-linux-nat.c (supply_fpregset): Always call
7128 `mips64_supply_fpregset' rather than `mips_supply_fpregset'.
7129 (fill_fpregset): Always call `mips64_fill_fpregset' rather than
7130 `mips_fill_fpregset'.
7131 * mips-linux-tdep.c (mips_supply_fpregset)
7132 (mips_supply_fpregset_wrapper, mips_fill_fpregset)
7133 (mips_fill_fpregset_wrapper): Remove functions.
7134 (mips64_supply_fpregset, mips64_fill_fpregset): Update comments.
7135 (mips_linux_fpregset): Remove variable.
7136 (mips_linux_iterate_over_regset_sections): Use
7137 `mips64_linux_fpregset' in place of `mips_linux_fpregset'.
7138 (mips_linux_o32_sigframe_init): Remove comment.
7140 2018-05-25 Pedro Alves <palves@redhat.com>
7142 * remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
7143 (struct readahead_cache, struct packet_reg, struct
7144 remote_arch_state, class remote_state): Move higher up in the
7146 (remote_target::m_remote_state): Now an object instead of a pointer.
7147 (remote_target::get_remote_state): Adjust.
7149 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7151 * stack.c (select_and_print_frame): Delete.
7152 (struct function_bounds): Move struct within function.
7153 (func_command): Most content moved into new function
7154 find_frame_for_function, use new function, print result, add
7156 (find_frame_for_function): New function, now returns a result.
7158 2018-05-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7160 * stack.c (iterate_over_block_arg_vars): Fix comment.
7161 (print_frame_arg_vars): Pass stream in cb_data, not gdb_stdout.
7163 2018-05-24 Andrew Burgess <andrew.burgess@embecosm.com>
7167 (scoped_restore_selected_frame::scoped_restore_selected_frame):
7169 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
7171 * frame.h (class scoped_restore_selected_frame): New class.
7172 * stack.c (print_frame_local_vars): Remove catching and rethrowing
7173 of any exception, use scoped_restore_selected_frame to restore the
7176 2018-05-24 Pedro Alves <palves@redhat.com>
7178 * darwin-nat.h (darwin_nat_target::create_inferior): Mark with
7181 2018-05-23 Tom Tromey <tom@tromey.com>
7183 * complaints.c (struct complaints): Remove.
7184 (symfile_complaint_book): Remove.
7185 (series): New global.
7186 (complaint_internal): Update.
7187 (clear_complaints): Update.
7189 2018-05-23 Tom Tromey <tom@tromey.com>
7191 * complaints.c (counters): New global.
7192 (struct complain): Remove.
7193 (struct complaints) <root>: Remove.
7194 (complaint_sentinel): Remove.
7195 (symfile_complaint_book): Update.
7196 (find_complaint) Remove.
7197 (complaint_internal, clear_complaints): Update.
7199 2018-05-23 Tom Tromey <tom@tromey.com>
7201 * complaints.c (struct complain) <file, line>: Remove.
7202 (find_complaint): Remove file, line parameters.
7203 (complaint_internal): Update.
7205 2018-05-23 Tom Tromey <tom@tromey.com>
7207 * complaints.c (vcomplaint): Remove.
7208 (complaint_internal) Merge in contents of vcomplaint.
7210 2018-05-23 Tom Tromey <tom@tromey.com>
7212 * complaints.c (struct complaints) <explanation>: Remove.
7213 (symfile_explanations): Remove.
7214 (symfile_complaint_book): Update.
7215 (vcomplaint): Update.
7216 (struct explanation): Remove.
7218 2018-05-23 Tom Tromey <tom@tromey.com>
7220 * complaints.c (symfile_complaints): Remove.
7221 (complaint_internal): Remove "complaints" parameter.
7222 (clear_complaints, vcomplaint): Remove "c" parameter.
7223 (get_complaints): Remove.
7224 * dwarf2read.c (dwarf2_statement_list_fits_in_line_number_section_complaint)
7225 (dwarf2_debug_line_missing_file_complaint)
7226 (dwarf2_debug_line_missing_end_sequence_complaint)
7227 (dwarf2_complex_location_expr_complaint)
7228 (dwarf2_const_value_length_mismatch_complaint)
7229 (dwarf2_section_buffer_overflow_complaint)
7230 (dwarf2_macro_malformed_definition_complaint)
7231 (dwarf2_invalid_attrib_class_complaint)
7232 (create_addrmap_from_index, dw2_symtab_iter_next)
7233 (dw2_expand_marked_cus)
7234 (dw2_debug_names_iterator::find_vec_in_debug_names)
7235 (dw2_debug_names_iterator::next, dw2_debug_names_iterator::next)
7236 (create_debug_type_hash_table, init_cutu_and_read_dies)
7237 (partial_die_parent_scope, add_partial_enumeration)
7238 (skip_one_die, fixup_go_packaging, quirk_rust_enum, process_die)
7239 (dwarf2_compute_name, dwarf2_physname, read_namespace_alias)
7240 (read_import_statement, read_file_scope, create_dwo_cu_reader)
7241 (create_cus_hash_table, create_dwp_hash_table)
7242 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7243 (dwarf2_rnglists_process, dwarf2_ranges_process)
7244 (dwarf2_add_type_defn, dwarf2_attach_fields_to_type)
7245 (dwarf2_add_member_fn, get_alignment, maybe_set_alignment)
7246 (handle_struct_member_die, process_structure_scope)
7247 (read_array_type, read_common_block, read_module_type)
7248 (read_tag_pointer_type, read_typedef, read_base_type)
7249 (read_subrange_type, load_partial_dies, partial_die_info::read)
7250 (partial_die_info::read, partial_die_info::read)
7251 (partial_die_info::read, read_checked_initial_length_and_offset)
7252 (dwarf2_string_attr, read_formatted_entries)
7253 (dwarf_decode_line_header)
7254 (lnp_state_machine::check_line_address, dwarf_decode_lines_1)
7255 (new_symbol, dwarf2_const_value_attr, lookup_die_type)
7256 (read_type_die_1, determine_prefix, dwarf2_get_ref_die_offset)
7257 (dwarf2_get_attr_constant_value, dwarf2_fetch_constant_bytes)
7258 (get_signatured_type, get_DW_AT_signature_type)
7259 (decode_locdesc, file_file_name, consume_improper_spaces)
7260 (skip_form_bytes, skip_unknown_opcode, dwarf_parse_macro_header)
7261 (dwarf_decode_macro_bytes, dwarf_decode_macros)
7262 (dwarf2_symbol_mark_computed, set_die_type)
7263 (read_attribute_value): Update.
7264 * stap-probe.c (handle_stap_probe, get_stap_base_address):
7266 * dbxread.c (unknown_symtype_complaint)
7267 (lbrac_mismatch_complaint, repeated_header_complaint)
7268 (set_namestring, function_outside_compilation_unit_complaint)
7269 (read_dbx_symtab, process_one_symbol): Update.
7270 * gdbtypes.c (stub_noname_complaint): Update.
7271 * windows-nat.c (handle_unload_dll): Update.
7272 * coffread.c (coff_symtab_read, enter_linenos, decode_type)
7273 (decode_base_type): Update.
7274 * xcoffread.c (bf_notfound_complaint, ef_complaint)
7275 (eb_complaint, record_include_begin, record_include_end)
7276 (enter_line_range, xcoff_next_symbol_text, read_xcoff_symtab)
7277 (process_xcoff_symbol, read_symbol)
7278 (function_outside_compilation_unit_complaint)
7279 (scan_xcoff_symtab): Update.
7280 * machoread.c (macho_symtab_read, macho_add_oso_symfile): Update.
7281 * buildsym.c (finish_block_internal, make_blockvector)
7282 (end_symtab_get_static_block, augment_type_symtab): Update.
7283 * dtrace-probe.c (dtrace_process_dof)
7284 (dtrace_static_probe_ops::get_probes): Update.
7285 * complaints.h (struct complaint): Don't declare.
7286 (symfile_complaints): Remove.
7287 (complaint_internal): Remove "complaints" parameter.
7288 (complaint): Likewise.
7289 (clear_complaints): Likewise.
7290 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7291 (reread_symbols): Update.
7292 * dwarf2-frame.c (dwarf2_restore_rule, execute_cfa_program)
7293 (dwarf2_frame_cache, decode_frame_entry): Update.
7294 * dwarf2loc.c (dwarf_reg_to_regnum): Update.
7295 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7296 (info_selectors_command): Update.
7297 * macrotab.c (macro_include, check_for_redefinition)
7298 (macro_undef): Update.
7299 * objfiles.c (filter_overlapping_sections): Update.
7300 * stabsread.c (invalid_cpp_abbrev_complaint)
7301 (reg_value_complaint, stabs_general_complaint, dbx_lookup_type)
7302 (define_symbol, error_type, read_type, rs6000_builtin_type)
7303 (stabs_method_name_from_physname, read_member_functions)
7304 (read_cpp_abbrev, read_baseclasses, read_tilde_fields)
7305 (attach_fields_to_type, complain_about_struct_wipeout)
7306 (read_range_type, read_args, common_block_start)
7307 (common_block_end, cleanup_undefined_types_1, scan_file_globals):
7309 * mdebugread.c (index_complaint, unknown_ext_complaint)
7310 (basic_type_complaint, bad_tag_guess_complaint)
7311 (bad_rfd_entry_complaint, unexpected_type_code_complaint)
7312 (reg_value_complaint, parse_symbol, parse_type, upgrade_type)
7313 (parse_procedure, parse_lines)
7314 (function_outside_compilation_unit_complaint)
7315 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref)
7316 (bad_tag_guess_complaint, reg_value_complaint): Update.
7317 * cp-support.c (demangled_name_complaint): Update.
7318 * macroscope.c (sal_macro_scope): Update.
7319 * dwarf-index-write.c (class debug_names): Update.
7321 2018-05-23 Tom Tromey <tom@tromey.com>
7323 * complaints.c (clear_complaints): Remove "noisy" parameter.
7324 * complaints.h (clear_complaints): Update.
7325 * symfile.c (syms_from_objfile_1, finish_new_objfile)
7326 (reread_symbols): Update.
7328 2018-05-23 Tom Tromey <tom@tromey.com>
7330 * complaints.c (enum complaint_series): Remove FIRST_MESSAGE,
7332 (vcomplaint, clear_complaints): Update.
7333 (symfile_explanations): Remove some messages.
7335 2018-05-23 Tom Tromey <tom@tromey.com>
7337 * complaints.c (internal_complaint): Remove.
7338 * complaints.h (internal_complaint): Remove.
7340 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7342 * i387-tdep.c (i387_collect_xsave): Make `i' unsigned.
7344 2018-05-22 Pedro Alves <palves@redhat.com>
7346 * remote-fileio.c (remote_fileio_reply, remote_fileio_ioerror)
7347 (remote_fileio_badfd, remote_fileio_return_errno)
7348 (remote_fileio_return_success, remote_fileio_func_open)
7349 (remote_fileio_func_open, remote_fileio_func_close)
7350 (remote_fileio_func_read, remote_fileio_func_write)
7351 (remote_fileio_func_lseek, remote_fileio_func_rename)
7352 (remote_fileio_func_unlink, remote_fileio_func_stat)
7353 (remote_fileio_func_fstat, remote_fileio_func_gettimeofday)
7354 (remote_fileio_func_isatty, remote_fileio_func_system): Add
7355 remote_target parameter.
7356 (remote_fio_func_map) <func>: Add remote_target parameter.
7357 (do_remote_fileio_request, remote_fileio_request):
7358 * remote-fileio.h (remote_fileio_request):
7359 * remote-notif.c (remote_notif_ack, remote_notif_parse, ): Add
7360 remote_target parameter.
7361 (remote_notif_process, handle_notification): Adjust to pass down
7363 (remote_notif_state_allocate): Add remote_target parameter. Save
7365 * remote-notif.h (struct remote_target): Forward declare.
7366 (struct notif_client) <parse, ack, can_get_pending_events>: Add
7367 remote_target parameter.
7368 (struct remote_notif_state) <remote>: New field.
7369 (remote_notif_ack, remote_notif_parse): Add remote_target
7371 (remote_notif_state_allocate, remote_notif_state_allocate): Add
7372 remote_target parameter.
7373 * remote.c (OPAQUETHREADBYTES, threadref, gdb_ext_thread_info)
7374 (threads_listing_context, rmt_thread_action, protocol_feature)
7375 (packet_reg, stop_reply, stop_reply_p, enum packet_support)
7376 (packet_result, struct threads_listing_context, remote_state):
7377 Move definitions and declarations higher up.
7378 (remote_target) <~remote_target>: Declare.
7379 (remote_download_command_source, remote_file_put, remote_file_get)
7380 (remote_file_delete, remote_hostio_pread, remote_hostio_pwrite)
7381 (remote_hostio_pread_vFile, remote_hostio_send_command)
7382 (remote_hostio_set_filesystem, remote_hostio_open)
7383 (remote_hostio_close, remote_hostio_unlink, remote_state)
7384 (get_remote_state, get_remote_packet_size, get_memory_packet_size)
7385 (get_memory_write_packet_size, get_memory_read_packet_size)
7386 (append_pending_thread_resumptions, remote_detach_1)
7387 (append_resumption, remote_resume_with_vcont)
7388 (add_current_inferior_and_thread, wait_ns, wait_as)
7389 (process_stop_reply, remote_notice_new_inferior)
7390 (process_initial_stop_replies, remote_add_thread)
7391 (btrace_sync_conf, remote_btrace_maybe_reopen)
7392 (remove_new_fork_children, kill_new_fork_children)
7393 (discard_pending_stop_replies, stop_reply_queue_length)
7394 (check_pending_events_prevent_wildcard_vcont)
7395 (discard_pending_stop_replies_in_queue, stop_reply)
7396 (remote_notif_remove_queued_reply, stop_reply *queued_stop_reply)
7397 (peek_stop_reply, remote_parse_stop_reply, remote_stop_ns)
7398 (remote_interrupt_as, remote_interrupt_ns)
7399 (remote_get_noisy_reply, remote_query_attached)
7400 (remote_add_inferior, remote_current_thread, get_current_thread)
7401 (set_thread, set_general_thread, set_continue_thread)
7402 (set_general_process, write_ptid)
7403 (remote_unpack_thread_info_response, remote_get_threadinfo)
7404 (parse_threadlist_response, remote_get_threadlist)
7405 (remote_threadlist_iterator, remote_get_threads_with_ql)
7406 (remote_get_threads_with_qxfer)
7407 (remote_get_threads_with_qthreadinfo, extended_remote_restart)
7408 (get_offsets, remote_check_symbols, remote_supported_packet)
7409 (remote_query_supported, remote_packet_size)
7410 (remote_serial_quit_handler, remote_detach_pid)
7411 (remote_vcont_probe, remote_resume_with_hc)
7412 (send_interrupt_sequence, interrupt_query)
7413 (remote_notif_get_pending_events, fetch_register_using_p)
7414 (send_g_packet, process_g_packet, fetch_registers_using_g)
7415 (store_register_using_P, store_registers_using_G)
7416 (set_remote_traceframe, check_binary_download)
7417 (remote_write_bytes_aux, remote_write_bytes, remote_read_bytes_1)
7418 (remote_xfer_live_readonly_partial, remote_read_bytes)
7419 (remote_send_printf, remote_flash_write, readchar)
7420 (remote_serial_write, putpkt, putpkt_binary, skip_frame)
7421 (read_frame, getpkt, getpkt_or_notif_sane_1, getpkt_sane)
7422 (getpkt_or_notif_sane, remote_vkill, remote_kill_k)
7423 (extended_remote_disable_randomization, extended_remote_run)
7424 (send_environment_packet, extended_remote_environment_support)
7425 (extended_remote_set_inferior_cwd, remote_write_qxfer)
7426 (remote_read_qxfer, push_stop_reply, vcont_r_supported)
7427 (packet_command): Now methods of ...
7428 (remote_target): ... this class.
7429 (m_remote_state) <remote_target>: New field.
7430 (struct remote_state) <stop_reply_queue,
7431 remote_async_inferior_event_token, wait_forever_enabled_p>: New
7433 (remote_state::remote_state): Allocate stop_reply_queue.
7434 (remote_state): Delete global.
7435 (get_remote_state_raw): Delete.
7436 (remote_target::get_remote_state): Allocate m_remote_state on
7438 (get_current_remote_target): New.
7439 (remote_ops, extended_remote_ops): Delete.
7440 (wait_forever_enabled_p, remote_async_inferior_event_token):
7441 Delete, moved to struct remote_state.
7442 (remote_target::close): Delete self. Destruction bits split to
7444 (remote_target::~remote_target): ... this.
7445 (show_memory_packet_size): Adjust to use
7446 get_current_remote_target.
7447 (struct protocol_feature) <func>: Add remote_target parameter.
7448 All callers adjusted.
7449 (curr_quit_handler_target): New.
7450 (remote_serial_quit_handler): Reimplement.
7451 (remote_target::open_1): Adjust to use get_current_remote_target.
7452 Heap-allocate remote_target/extended_remote_target instances.
7453 (vcont_builder::vcont_builder): Add remote_target parameter, and
7454 save it in m_remote. All callers adjusted.
7455 (vcont_builder::m_remote): New field.
7456 (vcont_builder::restart, vcont_builder::flush)
7457 (vcont_builder::push_action): Use it.
7458 (remote_target::commit_resume): Use it.
7459 (struct queue_iter_param) <remote>: New field.
7460 (remote_target::remove_new_fork_children): Fill in 'remote' field.
7461 (check_pending_event_prevents_wildcard_vcont_callback_data): New.
7462 (check_pending_event_prevents_wildcard_vcont_callback)
7463 (remote_target::check_pending_events_prevent_wildcard_vcont)
7464 (remote_target::discard_pending_stop_replies)
7465 (remote_target::discard_pending_stop_replies_in_queue)
7466 (remote_target::remote_notif_remove_queued_reply): Fill in
7468 (remote_notif_get_pending_events): New.
7469 (remote_target::readchar, remote_target::remote_serial_write):
7470 Save/restore curr_quit_handler_target.
7472 (kill_new_fork_children): Fill in 'remote' field.
7473 (packet_command): Use get_current_remote_target, defer to
7474 remote_target method of same name.
7475 (scoped_remote_fd::scoped_remote_fd): Add 'remote_target'
7476 parameter, and save it in m_remote. All callers adjusted.
7477 (scoped_remote_fd::release): Use m_remote.
7478 (scoped_remote_fd::m_remote): New field.
7479 (remote_file_put, remote_file_get, remote_file_delete): Use
7480 get_current_remote_target, defer to remote_target method of same
7482 (remote_btrace_reset): Add remote_state paremeter. Update all
7484 (remote_async_inferior_event_handler). Pass down 'data'.
7485 (remote_new_objfile): Use get_current_remote_target.
7486 (remote_target::vcont_r_supported): New.
7487 (set_range_stepping): Use get_current_remote_target and
7488 remote_target::vcont_r_supported.
7489 (_initialize_remote): Don't allocate 'remote_state' and
7490 'stop_reply_queue' globals.
7491 * remote.h (struct remote_target): Forward declare.
7492 (getpkt, putpkt, remote_notif_get_pending_events): Add
7493 'remote_target' parameter.
7495 2018-05-22 Pedro Alves <palves@redhat.com>
7497 * remote.c (vcont_builder): Now a class. Make all data members
7499 (vcont_builder) <vcont_builder, restart, flush, push_action>:
7501 (vcont_builder_restart): Rename to ...
7502 (vcont_builder::restart): ... this.
7503 (vcont_builder_flush): Rename to ...
7504 (vcont_builder::flush): ... this.
7505 (vcont_builder_push_action): Rename to ...
7506 (vcont_builder::push_action): ... this.
7507 (remote_target::commit_resume): Adjust.
7509 2018-05-22 Pedro Alves <palves@redhat.com>
7511 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE): Rename to ...
7512 (DEFAULT_MAX_MEMORY_PACKET_SIZE_FIXED): ... this.
7513 (get_fixed_memory_packet_size): New.
7514 (get_memory_packet_size): Use it.
7515 (set_memory_packet_size): Don't override the config size with
7516 DEFAULT_MAX_MEMORY_PACKET_SIZE.
7517 (show_memory_packet_size): Use get_fixed_memory_packet_size.
7518 Don't refer to get_memory_packet_size if not connected to a remote
7519 target. Show "(default)" if configured size is 0.
7521 2018-05-22 Pedro Alves <palves@redhat.com>
7523 * remote.c (remote_target::mourn_inferior): Move
7524 discard_pending_stop_replies call here from ...
7525 (_initialize_remote): ... here.
7527 2018-05-22 Pedro Alves <palves@redhat.com>
7529 * remote.c (compare_section_command): Remove set_general_process
7532 2018-05-22 Pedro Alves <palves@redhat.com>
7534 * remote.c (struct packet_reg, struct remote_arch_state):
7535 Move higher up in the file.
7536 (remote_state) <m_arch_states>: Store remote_arch_state values
7537 instead of remote_arch_state pointers.
7538 (remote_state::get_remote_arch_state): Adjust.
7540 2018-05-22 Pedro Alves <palves@redhat.com>
7542 * remote.c: Include <unordered_map>.
7543 (remote_state): Now a class.
7544 (remote_state) <get_remote_arch_state>: Declare method.
7545 <get_remote_arch_state>: New field.
7546 (remote_arch_state) <remote_arch_state>: Declare ctor.
7547 <regs>: Now a unique_ptr.
7548 (remote_gdbarch_data_handle): Delete.
7549 (get_remote_arch_state): Delete.
7550 (remote_state::get_remote_arch_state): New.
7551 (get_remote_state): Adjust to call remote_state's
7552 get_remote_arch_state method.
7553 (init_remote_state): Delete, bits factored out to ...
7554 (remote_arch_state::remote_arch_state): ... this new method.
7555 (get_remote_packet_size, get_memory_packet_size)
7556 (process_g_packet, remote_target::fetch_registers)
7557 (remote_target::prepare_to_store, store_registers_using_G)
7558 (remote_target::store_registers, remote_target::get_trace_status):
7559 Adjust to call remote_state's method.
7560 (_initialize_remote): Remove reference to
7561 remote_gdbarch_data_handle.
7563 2018-05-22 Pedro Alves <palves@redhat.com>
7565 * remote.c (struct readahead_cache) <invalidate, invalidate_fd,
7566 pread>: New method declarations.
7567 (remote_target::open_1): Adjust.
7568 (readahead_cache_invalidate): Rename to ...
7569 (readahead_cache::invalidate): ... this, and adjust to be a class
7571 (readahead_cache_invalidate_fd): Rename to ...
7572 (readahead_cache::invalidate_fd): ... this, and adjust to be a
7574 (remote_hostio_pwrite): Adjust.
7575 (remote_hostio_pread_from_cache): Rename to ...
7576 (readahead_cache::pread): ... this, and adjust to be a class
7578 (remote_hostio_close): Adjust.
7580 2018-05-22 Pedro Alves <palves@redhat.com>
7582 * remote.c (remote_hostio_close_cleanup): Delete.
7583 (class scoped_remote_fd): New.
7584 (remote_file_put, remote_file_get): Use it.
7586 2018-05-22 Pedro Alves <palves@redhat.com>
7588 (struct vCont_action_support): Use bool and initialize all fields.
7589 (struct readahead_cache): Initialize all fields.
7590 (remote_state): Use bool and initialize all fields.
7591 (remote_state::remote_state, remote_state::~remote_state): New.
7592 (new_remote_state): Delete.
7593 (_initialize_remote): Use new to allocate remote_state.
7595 2018-05-22 Pedro Alves <palves@redhat.com>
7599 * c-exp.y: Include "c-support.h".
7600 (parse_number, c_parse_escape, lex_one_token): Use TOLOWER instead
7601 of tolower. Use c_ident_is_alpha to scan names.
7602 * c-lang.c: Include "c-support.h".
7603 (convert_ucn, convert_octal, convert_hex, convert_escape): Use
7604 ISXDIGIT instead of isxdigit and ISDIGIT instead of isdigit.
7605 * c-support.h: New file, with bits factored out from ...
7606 * cp-name-parser.y: ... this file.
7607 Include "c-support.h".
7608 (cp_ident_is_alpha, cp_ident_is_alnum): Deleted, moved to
7609 c-support.h and renamed.
7610 (symbol_end, yylex): Adjust.
7612 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7614 * arch/ppc-linux-common.c (ppc_linux_has_isa205): Change the
7615 parameter type to CORE_ADDR.
7616 * arch/ppc-linux-common.h (ppc_linux_has_isa205): Change the
7617 parameter type in declaration to CORE_ADDR.
7618 * ppc-linux-tdep.c (ppc_linux_core_read_description): Call
7619 target_auxv_search to get AT_HWCAP and use the result to get the
7621 * ppc-linux-nat.c (ppc_linux_get_hwcap): Change the return type
7622 to CORE_ADDR. Remove the cast of the return value to unsigned
7623 long. Fix error predicate of target_auxv_search.
7624 (ppc_linux_nat_target::read_description): Change the type of the
7625 hwcap variable to CORE_ADDR.
7627 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7629 * rs6000-tdep.c (rs6000_gdbarch_init): Assign 1 to have_dfp only
7630 if the size of fpscr is larger than 32 bits.
7632 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7634 * ppc-linux-tdep.c (ppc_linux_vsxregset): New function.
7635 (ppc32_linux_vsxregmap): New global.
7636 (ppc32_linux_vsxregset): Initialize with ppc32_linux_vsxregmap,
7637 regcache_supply_regset, and regcache_collect_regset.
7638 * ppc-linux-tdep.h (ppc_linux_vsxregset): Declare.
7639 * ppc-linux-nat.c (supply_vsxregset, fill_vsxregset): Remove.
7640 (fetch_vsx_register, store_vsx_register): Remove.
7641 (fetch_vsx_registers): Add regno parameter. Get regset using
7642 ppc_linux_vsxregset. Use regset to supply registers.
7643 (store_vsx_registers): Add regno parameter. Get regset using
7644 ppc_linux_vsxregset. Use regset to collect registers.
7645 (fetch_register): Call fetch_vsx_registers instead of
7647 (store_register): Call store_vsx_registers instead of
7649 (fetch_ppc_registers): Call fetch_vsx_registers with -1 for the
7650 new regno parameter.
7651 (store_ppc_registers): Call store_vsx_registers with -1 for the
7652 new regno parameter.
7653 * rs6000-tdep.c (ppc_vsx_support_p, ppc_supply_vsxreget)
7654 (ppc_collect_vsxregset): Remove.
7656 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7658 * ppc-tdep.h (struct ppc_reg_offsets): Remove vector register
7660 * ppc-fbsd-tdep.c (ppc32_fbsd_reg_offsets): Remove initializers
7661 for vector register offset fields.
7662 (ppc64_fbsd_reg_offsets): Likewise.
7663 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7664 to vector register offset fields.
7665 * ppc-obsd-tdep.c (_initialize_ppcnbsd_tdep): Remove assignment
7666 to vector register offset fields.
7667 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Remove assignment to
7668 vector register offset fields.
7669 * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Remove
7670 initializers for vector register offset fields.
7671 (rs6000_aix64_reg_offsets): Likewise.
7672 * rs6000-tdep.c (ppc_vrreg_offset): Remove.
7673 (ppc_supply_vrregset): Remove.
7674 (ppc_collect_vrregset): Remove.
7675 * ppc-linux-tdep.c (ppc_linux_collect_vrregset): New function.
7676 (ppc_linux_vrregset) : New function.
7677 (ppc32_le_linux_vrregmap, ppc32_be_linux_vrregmap)
7678 (ppc32_le_linux_vrregset, ppc32_be_linux_vrregset): New globals.
7679 (ppc32_linux_vrregset): Remove.
7680 (ppc_linux_iterate_over_regset_sections): Call ppc_linux_vrregset
7681 and use result instead of ppc32_linux_vrregset.
7682 (ppc32_linux_reg_offsets): Remove initializers for vector register
7684 (ppc64_linux_reg_offsets): Likewise.
7685 * ppc-linux-tdep.h (ppc_linux_vrregset): New declaration.
7686 * ppc-linux-nat.c: Include regset.h.
7687 (gdb_vrregset_t): Adjust comment to account for little-endian
7689 (supply_vrregset, fill_vrregset): Remove.
7690 (fetch_altivec_register, store_altivec_register): Remove.
7691 (fetch_altivec_registers): Add regno parameter. Get regset using
7692 ppc_linux_vrregset. Use regset to supply registers.
7693 (store_altivec_registers): Add regno parameter. Get regset using
7694 ppc_linux_vrregset. Use regset to collect registers.
7695 (fetch_register): Call fetch_altivec_registers instead of
7696 fetch_altivec_register.
7697 (store_register): Call store_altivec_registers instead of
7698 store_altivec_register.
7699 (fetch_ppc_registers): Call fetch_altivec_registers with -1 for
7700 the new regno parameter.
7701 (store_ppc_registers): Call store_altivec_registers with -1 for
7702 the new regno parameter.
7704 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7706 * arch/ppc-linux-common.h (PPC_LINUX_SIZEOF_VRREGSET)
7707 (PPC_LINUX_SIZEOF_VSXREGSET): Define.
7708 * ppc-linux-nat.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
7709 (gdb_vrregset_t): Change array type size to
7710 PPC_LINUX_SIZEOF_VRREGSET.
7711 (gdb_vsxregset_t): Change array type size to
7712 PPC_LINUX_SIZEOF_VSXREGSET.
7713 * ppc-linux-tdep.c (ppc_linux_iterate_over_regset_sections):
7714 Change integer literals to PPC_LINUX_SIZEOF_VRREGSET and
7715 PPC_LINUX_SIZEOF_VSXREGSET.
7717 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7719 * configure.nat <linux powerpc>: Add ppc-linux.o to NATDEPFILES.
7720 * ppc-linux-nat.c (ppc_linux_target_wordsize): Move to
7722 (ppc_linux_nat_target::auxv_parse): Get thread id tid. Call
7723 ppc_linux_target_wordsize with tid.
7724 (ppc_linux_nat_target::read_description): Call ppc_linux_target
7726 * nat/ppc-linux.c: Include nat/gdb_ptrace.h.
7727 (ppc64_64bit_inferior_p): Add static and inline specifiers.
7728 (ppc_linux_target_wordsize): Move here from ppc-linux-nat.c. Add
7729 tid parameter. Remove static specifier.
7730 * nat/ppc-linux.h (ppc64_64bit_inferior_p): Remove declaration.
7731 (ppc_linux_target_wordsize): New declaration.
7733 2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
7735 * arch/ppc-linux-common.c: New file.
7736 * arch/ppc-linux-common.h: New file.
7737 * arch/ppc-linux-tdesc.h: New file.
7738 * configure.tgt (powerpc*-*-linux*): Add arch/ppc-linux-common.o.
7739 * Makefile.in (ALL_TARGET_OBS): Add arch/ppc-linux-common.o.
7740 (HFILES_NO_SRCDIR): Add arch/ppc-linux-common.h and
7741 arch/ppc-linux-tdesc.h.
7742 * ppc-linux-nat.c: Include arch/ppc-linux-common.h and
7743 arch/ppc-linux-tdesc.h.
7744 (ppc_linux_nat_target::read_description): Remove target
7745 description matching code. Fill a ppc_linux_features struct and
7746 call ppc_linux_match_description with it. Move comment about ISA
7747 2.05 to ppc-linux-common.c.
7748 * ppc-linux-tdep.c: Include arch/ppc-linux-common.h and
7749 arch/ppc-linux-tdesc.h.
7750 (ppc_linux_core_read_description): Remove target description
7751 matching code. Fill a ppc_linux_features struct and call
7752 ppc_linux_match_description with it.
7753 * ppc-linux-tdep.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
7754 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
7755 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
7756 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
7757 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
7758 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
7759 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
7760 (tdesc_powerpc_e500l): Remove.
7762 2018-05-22 Joel Brobecker <brobecker@adacore.com>
7764 * ada-lang.c (catch_assert_command): Pass empty string instead
7765 of NULL for excep_string argument.
7767 2018-05-22 Maciej W. Rozycki <macro@mips.com>
7769 * mips-linux-nat.c (mips64_linux_register_addr): Return -1 if
7770 the width of the requested register exceeds the width of the
7773 2018-05-21 Tom Tromey <tom@tromey.com>
7775 * printcmd.c (output_command): Remove.
7776 (output_command_const): Rename to output_command.
7777 * valprint.h (output_command): Rename from output_command_const.
7778 * tracepoint.c (trace_dump_actions): Call output_command.
7780 2018-05-21 Tom Tromey <tom@tromey.com>
7782 * mi/mi-cmd-catch.c (mi_cmd_catch_assert)
7783 (mi_cmd_catch_exception, mi_cmd_catch_handlers): Update.
7784 * ada-lang.h (create_ada_exception_catchpoint): Update.
7785 * ada-lang.c (struct ada_catchpoint) <excep_string>: Now a
7787 (create_excep_cond_exprs, ~ada_catchpoint)
7788 (should_stop_exception, print_one_exception)
7789 (print_mention_exception, print_recreate_exception): Update.
7790 (ada_get_next_arg): Remove.
7791 (catch_ada_exception_command_split): Use std::string. Change type
7792 of "excep_string", "cond_string".
7793 (catch_ada_exception_command): Update.
7794 (create_ada_exception_catchpoint): Change type of excep_string.
7795 (ada_exception_sal): Remove excep_string parameter.
7796 (~ada_catchpoint): Remove.
7798 2018-05-21 Tom Tromey <tom@tromey.com>
7800 * ada-lang.c (ada_collect_symbol_completion_matches): Remove
7803 2018-05-21 Tom Tromey <tom@tromey.com>
7805 * ada-lang.c (ada_exception_message_1, ada_exception_message):
7806 Return unique_xmalloc_ptr.
7807 (print_it_exception): Update.
7809 2018-05-21 Tom Tromey <tom@tromey.com>
7811 * tracepoint.c (trace_dump_actions): Use std::string.
7813 2018-05-21 Tom Tromey <tom@tromey.com>
7815 * symfile.c (reread_symbols): Use std::string for original_name.
7817 2018-05-21 Tom Tromey <tom@tromey.com>
7819 * dwarf2read.c (dwarf2_read_debug_names): Use std::unique_ptr.
7820 (mapped_index_base): Use DISABLE_COPY_AND_ASSIGN. Default
7823 2018-05-20 Simon Marchi <simon.marchi@polymtl.ca>
7825 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Rename the wrong
7827 (HAVE_IS_TRIVIALLY_CONSTRUCTIBLE): ... this.
7828 * objfiles.c (get_objfile_bfd_data): Allocate
7829 objfile_per_bfd_storage with obstack_new when allocating on
7832 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7834 * ada-lang.c (cache_symbol): Use XOBNEW and/or XOBNEWVEC and/or
7836 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
7837 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
7838 * mdebugread.c (mdebug_build_psymtabs): Likewise.
7839 (add_pending): Likewise.
7840 (parse_symbol): Likewise.
7841 (parse_partial_symbols): Likewise.
7842 (psymtab_to_symtab_1): Likewise.
7843 (new_psymtab): Likewise.
7844 (elfmdebug_build_psymtabs): Likewise.
7845 * minsyms.c (terminate_minimal_symbol_table): Likewise.
7846 * objfiles.c (get_objfile_bfd_data): Likewise.
7847 (objfile_register_static_link): Likewise.
7848 * psymtab.c (allocate_psymtab): Likewise.
7849 * stabsread.c (read_member_functions): Likewise.
7850 * xcoffread.c (xcoff_end_psymtab): Likewise.
7852 2018-05-20 Simon Marchi <simon.marchi@ericsson.com>
7854 * common/traits.h (HAVE_IS_TRIVIALLY_COPYABLE): Define if
7855 compiler supports std::is_trivially_constructible.
7856 * common/poison.h: Include obstack.h.
7857 (IsMallocable): Define to is_trivially_constructible if the
7858 compiler supports it, define to true_type otherwise.
7862 (XOBNEWVEC): Redefine.
7863 * gdb_obstack.h (obstack_zalloc): New.
7864 (OBSTACK_ZALLOC): Redefine.
7865 (obstack_calloc): New.
7866 (OBSTACK_CALLOC): Redefine.
7868 * gdbarch.sh: Include gdb_obstack in gdbarch.h.
7869 (gdbarch_obstack): New declaration in gdbarch.h, definition in
7871 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Use
7872 obstack_calloc/obstack_zalloc.
7873 (gdbarch_obstack_zalloc): Remove.
7874 * target-descriptions.c (tdesc_data_init): Use obstack_new.
7876 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7878 * stack.c (backtrace_command_1): Remove useless variable int i.
7880 2018-05-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7882 * stack.c (print_frame_info): Fix comment.
7884 2018-05-18 Tom Tromey <tom@tromey.com>
7886 * dwarf2read.c (struct dwz_file): Add constructor, initializers.
7887 <dwz_bfd>: Now a gdb_bfd_ref_ptr.
7888 (~dwarf2_per_objfile): Update
7889 (dwarf2_get_dwz_file): Use new.
7890 * dwarf2read.h (struct dwarf2_per_objfile) <dwz_file>: Now a
7893 2018-05-18 Tom Tromey <tom@tromey.com>
7895 * dwarf2read.h (struct dwarf2_per_objfile) <dwp_file>: Now a
7897 * dwarf2read.c (struct dwp_file): Add constructor and
7899 (open_and_init_dwp_file): Return a unique_ptr.
7900 (dwarf2_per_objfile, create_dwp_hash_table)
7901 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2)
7902 (lookup_dwo_unit_in_dwp): Update.
7903 (open_and_init_dwp_file, get_dwp_file): Update.
7905 2018-05-18 Tom Tromey <tom@tromey.com>
7907 * dwarf2read.c (dwarf2_per_objfile): Update.
7908 (struct mapped_index): Add initializers.
7909 (dwarf2_read_index): Use new.
7910 (dw2_symtab_iter_init): Update.
7911 * dwarf2read.h (struct dwarf2_per_objfile) <index_table>: Now a
7914 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7916 * dwarf2read.c (mapped_index) <total_size>: Remove.
7918 2018-05-18 Simon Marchi <simon.marchi@ericsson.com>
7920 * unittests/format_pieces-selftests.c (test_format_specifier):
7923 2018-05-18 Tom Tromey <tom@tromey.com>
7925 * c-typeprint.c (maybe_print_hole): New function.
7926 (c_print_type_struct_field_offset): Update.
7927 (c_type_print_base_struct_union): Call maybe_print_hole.
7929 2018-05-17 Keith Seitz <keiths@redhat.com>
7931 * breakpoint.c (build_bpstat_chain): New function, moved from
7933 (bpstat_stop_status): Add optional parameter, `stop_chain'.
7934 If no stop chain is passed, call build_bpstat_chain to build it.
7935 * breakpoint.h (build_bpstat_chain): Declare.
7936 (bpstat_stop_status): Move documentation here from breakpoint.c.
7937 * infrun.c (handle_signal_stop): Before eliding inlined frames,
7938 build the stop chain and pass it to skip_inline_frames.
7939 Pass this stop chain to bpstat_stop_status.
7940 * inline-frame.c: Include breakpoint.h.
7941 (stopped_by_user_bp_inline_frame): New function.
7942 (skip_inline_frames): Add parameter `stop_chain'.
7943 Move documention to inline-frame.h.
7944 If non-NULL, use stopped_by_user_bp_inline_frame to determine
7945 whether the frame should be elided.
7946 * inline-frame.h (skip_inline_frames): Add parameter `stop_chain'.
7947 Add moved documentation and update for new parameter.
7949 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7952 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
7953 unittests/format_pieces-selftests.c.
7954 * common/format.h (format_piece) <operator==>: New.
7955 (format_pieces) <operator[]>: Remove.
7956 * common/format.c (format_pieces::format_pieces): Handle \e.
7957 * unittests/format_pieces-selftests.c: New.
7959 2018-05-17 Tom Tromey <tom@tromey.com>
7962 * dwarf2read.c (load_cu, dw2_do_instantiate_symtab)
7963 (dw2_instantiate_symtab): Add skip_partial parameter.
7964 (dw2_find_last_source_symtab, dw2_map_expand_apply)
7965 (dw2_lookup_symbol, dw2_expand_symtabs_for_function)
7966 (dw2_expand_all_symtabs, dw2_expand_symtabs_with_fullname)
7967 (dw2_expand_symtabs_matching_one)
7968 (dw2_find_pc_sect_compunit_symtab)
7969 (dw2_debug_names_lookup_symbol)
7970 (dw2_debug_names_expand_symtabs_for_function): Update.
7971 (init_cutu_and_read_dies): Add skip_partial parameter.
7972 (process_psymtab_comp_unit, build_type_psymtabs_1)
7973 (process_skeletonless_type_unit, load_partial_comp_unit)
7974 (psymtab_to_symtab_1): Update.
7975 (load_full_comp_unit): Add skip_partial parameter.
7976 (process_imported_unit_die, dwarf2_read_addr_index)
7977 (follow_die_offset, dwarf2_fetch_die_loc_sect_off)
7978 (dwarf2_fetch_constant_bytes, dwarf2_fetch_die_type_sect_off)
7979 (read_signatured_type): Update.
7981 2018-05-17 Simon Marchi <simon.marchi@ericsson.com>
7983 * value.c (release_value): Remove unused variable.
7984 (record_latest_value): Likewise.
7985 (access_value_history): Likewise.
7986 (preserve_values): Likewise.
7988 2018-05-17 Tom Tromey <tom@tromey.com>
7990 * extension.h (struct ext_lang_type_printers) <py_type_printers>:
7993 2018-05-16 Maciej W. Rozycki <macro@mips.com>
7996 * linux-nat-trad.c (linux_nat_trad_target::fetch_register):
7997 Also handle registers whose width is not a multiple of
7999 (linux_nat_trad_target::store_register): Likewise.
8001 2018-05-16 Tom Tromey <tom@tromey.com>
8003 * gdbcore.h (core_bfd): Redefine.
8004 * corelow.c (core_target::close): Update.
8005 (core_target_open): Update.
8006 * progspace.h (struct program_space) <cbfd>: Now a
8009 2018-05-16 Tom Tromey <tom@tromey.com>
8012 * symfile-add-flags.h (enum symfile_add_flags)
8013 <SYMFILE_NOT_FILENAME>: New constant.
8014 * symfile.c (read_symbols): Use SYMFILE_NOT_FILENAME. Get
8015 objfile name from BFD.
8016 (symbol_file_add_with_addrs): Check SYMFILE_NOT_FILENAME.
8017 * minidebug.c (find_separate_debug_file_in_section): Put
8018 ".gnu_debugdata" into BFD's file name.
8020 2018-05-16 Simon Marchi <simon.marchi@ericsson.com>
8022 * regcache.c (regcache_read_ftype, regcache_write_ftype):
8025 2018-05-15 Tamar Christina <tamar.christina@arm.com>
8028 * aarch64-tdep.c (aarch64_analyze_prologue,
8029 aarch64_software_single_step, aarch64_displaced_step_copy_insn):
8030 Indicate not interested in errors.
8032 2018-05-15 Maciej W. Rozycki <macro@mips.com>
8034 * mips-linux-nat.c (mips_linux_nat_target::fetch_registers):
8035 Supply the MIPS_ZERO_REGNUM register.
8037 2018-05-15 Maciej W. Rozycki <macro@mips.com>
8039 * mips-tdep.c (mask_address_var): Make variable static.
8041 2018-05-14 Tom Tromey <tom@tromey.com>
8043 * dwarf2read.c (rust_union_quirks): Clear rust_unions.
8045 2018-05-11 Andrew Burgess <andrew.burgess@embecosm.com>
8047 * i387-tdep.c (i387_collect_xsave): Use FXSAVE_MXCSR_ADDR not
8048 FXSAVE_ADDR for the mxcsr register.
8050 2018-05-11 Max Filippov <jcmvbkbc@gmail.com>
8052 * configure.tgt (xtensa*-*-linux*): Drop gdb_target definition.
8054 2018-05-11 Pedro Alves <palves@redhat.com>
8056 * corelow.c (core_target) <core_target>: No longer inline.
8057 Initialize m_core_gdbarch, m_core_vec and build the section table
8059 <~core_target>: New.
8060 <core_gdbarch, get_core_register_section>: New methods.
8061 <m_core_section_table, m_core_vec, m_core_gdbarch>: New fields,
8062 factored out from ...
8063 <core_data, core_vec, core_gdbarch>: ... these deleted globals.
8065 (sniff_core_bfd): Add gdbarch parameter.
8066 (core_close): Delete, merged into ...
8067 (core_target::close): ... here. Delete self.
8068 (core_close_cleanup): Delete.
8069 (core_target_open): Allocate a core_target on the heap. Use a
8070 unique_ptr instead of a cleanup. Bits moved into the core_target
8071 ctor. Adjust to use core_target methods instead of globals.
8072 (get_core_register_section): Rename to ...
8073 (core_target::get_core_register_section): ... this and adjust.
8074 (struct get_core_registers_cb_data): New.
8075 (get_core_registers_cb): Use it. Use bool.
8076 (core_target::fetch_registers, core_target::files_info)
8077 (core_target::xfer_partial, core_target::read_description)
8078 (core_target::pid_to, core_target::thread_name): Adjust to
8079 reference class fields instead of globals.
8080 * target.h (struct target_ops_deleter, target_ops_up): New.
8082 2018-05-11 Pedro Alves <palves@redhat.com>
8084 * corefile.c (core_file_command): Move to corelow.c.
8085 * corelow.c (the_core_target): Delete.
8086 (core_file_command): Moved from corefile.c. Check exec_bfd
8087 instead of the_core_target. Use target_detach instead of calling
8088 into the_core_target directly.
8089 (maybe_say_no_core_file_now): New.
8090 (core_target::detach): Use it.
8091 (_initialize_corelow): Remove references to the_core_target.
8092 * gdbcore.h (the_core_target): Delete.
8094 2018-05-11 Tom Tromey <tromey@redhat.com>
8095 Pedro Alves <palves@redhat.com>
8097 * corefile.c (core_bfd): Remove.
8098 * gdbcore.h (core_bfd): Now a macro.
8099 * progspace.h (struct program_space) <cbfd>: New field.
8101 2018-05-11 Tom Tromey <tom@tromey.com>
8103 * mdebugread.c (parse_partial_symbols, psymtab_to_symtab_1): Use
8106 2018-05-10 Tom Tromey <tom@tromey.com>
8108 * configure: Rebuild.
8109 * warning.m4 (AM_GDB_WARNINGS): Use -Wimplicit-fallthrough=3.
8111 2018-05-10 Joel Brobecker <brobecker@adacore.com>
8114 * regformats/regdat.sh: Adjust script, following the addition
8115 of the new expedite_regs parameter to init_target_desc.
8117 2018-05-10 Omair Javaid <omair.javaid@linaro.org>
8120 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add call to
8121 set_gdbarch_significant_addr_bit.
8122 * aarch64-tdep.c (aarch64_gdbarch_init): Remove call to
8123 set_gdbarch_significant_addr_bit.
8124 * utils.c (address_significant): Update to sign extend addr.
8126 2018-05-09 Max Filippov <jcmvbkbc@gmail.com>
8128 * xtensa-linux-tdep.c (xtensa-tdep.h): New include.
8129 (xtensa_linux_init_abi): Limit tdep->num_regs by
8130 tdep->num_nopriv_regs.
8131 * xtensa-tdep.c (xtensa_derive_tdep): Calculate
8132 tdep->num_nopriv_regs and only copy it to tdep->num_regs if it's
8135 2018-05-08 Simon Marchi <simon.marchi@ericsson.com>
8137 * unittests/string_view-selftests.c: Define GNULIB_NAMESPACE.
8139 2018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8141 * common/x86-xstate.h (I387_FCTRL_INIT_VAL): New constant.
8142 (I387_MXCSR_INIT_VAL): New constant.
8143 * amd64-tdep.c (amd64_supply_xsave): Only read state from xsave
8144 buffer if it was supplied by the inferior.
8145 * i387-tdep.c (i387_supply_fsave): Use I387_MXCSR_INIT_VAL.
8146 (i387_xsave_get_clear_bv): New function.
8147 (i387_supply_xsave): Only read x87 control registers from the
8148 xsave buffer if the feature is enabled, and the state will have
8149 been written, otherwise, provide a suitable default.
8150 (i387_collect_xsave): Pre-clear all registers in xsave buffer,
8151 including x87 control registers. Update control registers if they
8152 have changed from the default value, and mark features as enabled
8154 * i387-tdep.h (i387_xsave_get_clear_bv): Declare.
8156 2018-05-08 Ulrich Weigand <uweigand@de.ibm.com>
8158 * spu-tdep.c (info_spu_event_command): Fix output formatting.
8160 2018-05-07 Tom Tromey <tom@tromey.com>
8162 * configure: Rebuild.
8163 * warning.m4 (AM_GDB_WARNINGS): Add -Wduplicated-cond.
8165 2018-05-07 Tom Tromey <tom@tromey.com>
8168 * arm-tdep.c (arm_record_vfp_data_proc_insn): Properly mask off D
8169 bit. Use correct value for VDIV.
8171 2018-05-04 Tom Tromey <tom@tromey.com>
8173 * configure: Rebuild.
8174 * warning.m4 (AM_GDB_WARNINGS): Add -Wimplicit-fallthrough.
8176 2018-05-04 Tom Tromey <tom@tromey.com>
8178 * linux-record.c (record_linux_system_call) <case
8179 RECORD_SYS_RECVFROM>: Add "break".
8181 2018-05-04 Tom Tromey <tom@tromey.com>
8183 * mi/mi-main.c (mi_cmd_trace_frame_collected) <REGISTERS_FORMAT>:
8184 Add missing "break".
8185 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals) <NO_FRAME_FILTERS>:
8186 Add missing "break".
8188 2018-05-04 Tom Tromey <tom@tromey.com>
8190 * rs6000-tdep.c (ppc_process_record_op4)
8191 (ppc_process_record_op63): Add fall-through comment.
8193 2018-05-04 Tom Tromey <tom@tromey.com>
8195 * i386-tdep.c (i386_process_record): Add fall-through comment.
8197 2018-05-04 Tom Tromey <tom@tromey.com>
8199 * stabsread.c (define_symbol) <case 'p'>: Add fall-through
8202 2018-05-04 Tom Tromey <tom@tromey.com>
8204 * riscv-tdep.c (riscv_isa_xlen): Add fall-through comment.
8205 * utils.c (can_dump_core) <LIMIT_CUR>: Add fall-through comment.
8206 * eval.c (fetch_subexp_value) <MEMORY_ERROR>: Add fall-through
8208 * d-valprint.c (d_val_print) <TYPE_CODE_STRUCT>: Add fall-through
8210 * coffread.c (coff_symtab_read) <C_LABEL>: Add fall-through
8213 2018-05-04 Tom Tromey <tom@tromey.com>
8215 * dwarf2loc.c (unimplemented): Add ATTRIBUTE_NORETURN.
8217 2018-05-04 Tom Tromey <tom@tromey.com>
8219 * s390-tdep.c (s390_process_record): Fix fall-through comments.
8220 * xcoffread.c (scan_xcoff_symtab): Move comment later.
8221 * symfile.c (section_is_mapped): Fix fall-through comment.
8222 * stabsread.c (define_symbol, read_member_functions): Fix
8223 fall-through comment.
8224 * s390-linux-tdep.c (s390_process_record): Fix fall-through
8226 * remote.c (remote_wait_as): Fix fall-through comment.
8227 * p-exp.y (yylex): Fix fall-through comment.
8228 * nat/x86-dregs.c (x86_length_and_rw_bits): Fix fall-through
8230 * msp430-tdep.c (msp430_gdbarch_init): Fix fall-through comment.
8231 * mdebugread.c (parse_partial_symbols): Fix fall-through comment.
8232 * jv-exp.y (yylex): Fix fall-through comment.
8233 * go-exp.y (lex_one_token): Fix fall-through comment.
8234 * gdbtypes.c (get_discrete_bounds, rank_one_type): Fix
8235 fall-through comment.
8236 * f-exp.y (yylex): Fix fall-through comment.
8237 * dwarf2read.c (process_die): Fix fall-through comments.
8238 * dbxread.c (process_one_symbol): Fix fall-through comment.
8239 * d-exp.y (lex_one_token): Fix fall-through comment.
8240 * cp-name-parser.y (yylex): Fix fall-through comment.
8241 * coffread.c (coff_symtab_read): Fix fall-through comment.
8242 * c-exp.y (lex_one_token): Fix fall-through comment.
8243 * arm-tdep.c (arm_decode_miscellaneous): Fix fall-through
8245 * arch/arm.c (arm_instruction_changes_pc): Fix fall-through
8248 2018-05-04 Tom Tromey <tom@tromey.com>
8251 * NEWS: Mention gdb.execute change.
8252 * gdbcmd.h (execute_control_command): Don't declare.
8253 * python/python.c (execute_gdb_command): Use read_command_lines_1,
8254 execute_control_commands, execute_control_commands_to_string.
8255 * cli/cli-script.h (execute_control_commands)
8256 (execute_control_commands_to_string): Declare.
8257 (execute_control_command): Add from_tty parameter.
8258 * cli/cli-script.c (execute_control_commands)
8259 (execute_control_commands_to_string): New functions.
8260 (execute_user_command): Use execute_control_commands.
8261 (execute_control_command_1): Add "from_tty" parameter. Update.
8262 (execute_control_command): Likewise.
8264 2018-05-04 Tom Tromey <tom@tromey.com>
8267 * NEWS: Mention that breakpoint commands are writable.
8268 * python/py-breakpoint.c (bppy_set_commands): New function.
8269 (breakpoint_object_getset) <"commands">: Use it.
8271 2018-05-04 Tom Tromey <tom@tromey.com>
8273 * tracepoint.c (actions_command): Update.
8274 * mi/mi-cmd-break.c (mi_command_line_array)
8275 (mi_command_line_array_cnt, mi_command_line_array_ptr)
8276 (mi_read_next_line): Remove.
8277 (mi_cmd_break_commands): Update.
8278 * cli/cli-script.h (read_command_lines, read_command_lines_1): Use
8280 * cli/cli-script.c (get_command_line): Update.
8281 (process_next_line): Use function_view. Constify.
8282 (recurse_read_control_structure, read_command_lines)
8283 (read_command_lines_1): Change argument types to function_view.
8284 (do_define_command, document_command): Update.
8285 * breakpoint.h (check_tracepoint_command): Don't declare.
8286 * breakpoint.c (check_tracepoint_command): Remove.
8287 (commands_command_1, create_tracepoint_from_upload): Update.
8289 2018-05-04 Tom Tromey <tom@tromey.com>
8292 * cli/cli-script.h (enum command_control_type) <define_control>:
8294 * cli/cli-script.c (multi_line_command_p): Handle define_control.
8295 (build_command_line, execute_control_command_1)
8296 (process_next_line): Likewise.
8297 (do_define_command): New function, extracted from define_command.
8298 (define_command): Use it.
8300 2018-05-04 Tom Tromey <tom@tromey.com>
8302 * tracepoint.c (actions_command): Update.
8303 * cli/cli-script.h (read_command_lines): Update.
8304 * cli/cli-script.c (read_command_lines): Constify prompt_arg.
8305 (MAX_TMPBUF): Remove define.
8306 (define_command): Use string_printf.
8307 (document_command): Likewise.
8308 * breakpoint.c (commands_command_1): Update.
8310 2018-05-04 Tom Tromey <tom@tromey.com>
8312 * top.c (execute_command): Update.
8313 * cli/cli-script.h (print_command_lines): Now varargs.
8314 * cli/cli-script.c (print_command_lines): Now varargs.
8315 (execute_control_command_1) <case while_control, case if_control>:
8318 2018-05-04 Tom Tromey <tom@tromey.com>
8320 * tracepoint.c (all_tracepoint_actions): Rename from
8321 all_tracepoint_actions_and_cleanup. Change return type.
8322 (actions_command, encode_actions_1, encode_actions)
8323 (trace_dump_actions, tdump_command): Update.
8324 * remote.c (remote_download_command_source): Update.
8325 * python/python.c (gdbpy_eval_from_control_command)
8326 (python_command, python_interactive_command): Update.
8327 * mi/mi-cmd-break.c (mi_cmd_break_commands): Update.
8328 * guile/guile.c (guile_command)
8329 (gdbscm_eval_from_control_command, guile_command): Update.
8330 * compile/compile.c (compile_code_command)
8331 (compile_print_command, compile_to_object): Update.
8332 * cli/cli-script.h (struct command_lines_deleter): New.
8333 (counted_command_line): New typedef.
8334 (struct command_line): Add constructor, destructor.
8335 <body_list>: Remove.
8336 <body_list_0, body_list_1>: New members.
8337 (command_line_up): Remove typedef.
8338 (read_command_lines, read_command_lines_1, get_command_line):
8340 (copy_command_lines): Don't declare.
8341 * cli/cli-script.c (build_command_line): Use "new".
8342 (get_command_line): Return counted_command_line.
8343 (print_command_lines, execute_user_command)
8344 (execute_control_command_1, while_command, if_command): Update.
8345 (realloc_body_list): Remove.
8346 (process_next_line, recurse_read_control_structure): Update.
8347 (read_command_lines, read_command_lines_1): Return counted_command_line.
8348 (free_command_lines): Use "delete".
8349 (copy_command_lines): Remove.
8350 (define_command, document_command, show_user_1): Update.
8351 * cli/cli-decode.h (struct cmd_list_element) <user_commands>: Now
8352 a counted_command_line.
8353 * breakpoint.h (counted_command_line): Remove typedef.
8354 (breakpoint_set_commands): Update.
8355 * breakpoint.c (check_no_tracepoint_commands)
8356 (validate_commands_for_breakpoint): Update.
8357 (breakpoint_set_commands): Change commands to be a
8358 counted_command_line.
8359 (commands_command_1, update_dprintf_command_list)
8360 (create_tracepoint_from_upload): Update.
8362 2018-05-04 Tom Tromey <tom@tromey.com>
8364 * cli/cli-decode.h (cmd_list_element): New constructor.
8365 (~cmd_list_element): New destructor.
8366 (struct cmd_list_element): Add initializers.
8367 * cli/cli-decode.c (do_add_cmd): Use "new".
8368 (delete_cmd): Use "delete".
8370 2018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8371 Pedro Alves <palves@redhat.com>
8373 PR breakpoints/19806 and support for PR external/20207.
8374 * NEWS: Mention Aarch64 watchpoint improvements.
8375 * aarch64-linux-nat.c (aarch64_linux_stopped_data_address): Fix missed
8376 watchpoints and PR external/20207 watchpoints.
8377 * nat/aarch64-linux-hw-point.c
8378 (kernel_supports_any_contiguous_range): New.
8379 (aarch64_watchpoint_offset): New.
8380 (aarch64_watchpoint_length): Support PR external/20207 watchpoints.
8381 (aarch64_point_encode_ctrl_reg): New parameter offset, new asserts.
8382 (aarch64_point_is_aligned): Support PR external/20207 watchpoints.
8383 (aarch64_align_watchpoint): New parameters aligned_offset_p and
8384 next_addr_orig_p. Support PR external/20207 watchpoints.
8385 (aarch64_downgrade_regs): New.
8386 (aarch64_dr_state_insert_one_point): New parameters offset and
8388 (aarch64_dr_state_remove_one_point): Likewise.
8389 (aarch64_handle_breakpoint): Update caller.
8390 (aarch64_handle_aligned_watchpoint): Likewise.
8391 (aarch64_handle_unaligned_watchpoint): Support addr_orig and
8393 (aarch64_linux_set_debug_regs): Remove const from state. Call
8394 aarch64_downgrade_regs.
8395 (aarch64_show_debug_reg_state): Print also dr_addr_orig_wp.
8396 * nat/aarch64-linux-hw-point.h (DR_CONTROL_LENGTH): Rename to ...
8397 (DR_CONTROL_MASK): ... this.
8398 (struct aarch64_debug_reg_state): New field dr_addr_orig_wp.
8399 (unsigned int aarch64_watchpoint_offset): New prototype.
8400 (aarch64_linux_set_debug_regs): Remove const from state.
8401 * utils.c (align_up, align_down): Move to ...
8402 * common/common-utils.c (align_up, align_down): ... here.
8403 * utils.h (align_up, align_down): Move to ...
8404 * common/common-utils.h (align_up, align_down): ... here.
8406 2018-05-04 Joel Brobecker <brobecker@adacore.com>
8408 * sparc-tdep.c (sparc_structure_return_p): Re-implement to
8409 match the ABI as summarized in GCC's gcc/config/sparc/sparc.c.
8410 (sparc_arg_by_memory_p): Renamed from sparc_arg_on_registers_p.
8411 Re-implement to match the ABI as summarized in GCC's
8412 gcc/config/sparc/sparc.c. All callers updated.
8413 (sparc32_store_arguments): Remove assertion.
8415 2018-05-04 Tom Tromey <tom@tromey.com>
8417 * printcmd.c: Don't include tui.h.
8418 (decode_format): Use skip_spaces.
8420 2018-05-04 Tom Tromey <tom@tromey.com>
8423 * printcmd.c (last_count): New global.
8424 (x_command): Use saved count when repeating.
8426 2018-05-04 Tom Tromey <tom@tromey.com>
8428 * nto-procfs.c (do_closedir_cleanup): Remove.
8429 (procfs_pidlist): Use gdb_dir_up.
8430 * procfs.c (do_closedir_cleanup): Remove.
8431 (proc_update_threads): Use gdb_dir_up.
8432 * common/filestuff.h (struct gdb_dir_deleter): New.
8433 (gdb_dir_up): New typedef.
8435 2018-05-04 Tom Tromey <tom@tromey.com>
8437 * ada-lang.c (print_mention_exception): Use std::string.
8439 2018-05-04 Tom Tromey <tom@tromey.com>
8441 * ada-lang.c (create_excep_cond_exprs): Update.
8442 (ada_exception_catchpoint_cond_string): Use std::string.
8444 2018-05-04 Tom Tromey <tom@tromey.com>
8446 * ada-lang.c (xget_renaming_scope): Return std::string.
8447 (old_renaming_is_invisible): Update.
8449 2018-05-04 Tom Tromey <tom@tromey.com>
8451 * bfd-target.c (target_bfd::m_bfd): Now a gdb_bfd_ref_ptr.
8452 (target_bfd::target_bfd, target_bfd::~target_bfd): Update.
8454 2018-05-04 Ulrich Weigand <uweigand@de.ibm.com>
8456 * spu-linux-nat.c (spu_linux_nat_target::wait): Fix syntax error.
8458 2018-05-04 Tom Tromey <tom@tromey.com>
8460 * remote.c (remote_query_supported_append): Change type.
8461 (remote_check_symbols): Update.
8463 2018-05-04 Paul Pluzhnikov <ppluzhnikov@google.com>
8466 * configure.ac: Prepend libpython.
8467 * python/python-config.py: Likewise.
8468 * configure: Regenerate.
8470 2018-05-03 Simon Marchi <simon.marchi@ericsson.com>
8472 * Makefile.in (%.c: %.l): Use -t instead of --stdout.
8474 2018-05-03 Pedro Alves <palves@redhat.com>
8477 (s390_linux_nat_target::have_continuable_watchpoint): Mark with
8478 override. Write 'true' instead of '1'.
8479 (s390_linux_nat_target::watchpoint_addr_within_range): Remove
8482 2018-05-02 Pedro Alves <palves@redhat.com>
8484 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Use
8485 add_inf_child_target.
8486 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Use
8487 add_inf_child_target.
8488 * aix-thread.c (aix_thread_target_info): New.
8489 (aix_thread_target) <shortname, longname, doc>: Delete.
8491 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Use
8492 add_inf_child_target.
8493 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Use
8494 add_inf_child_target.
8495 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Use
8496 add_inf_child_target.
8497 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Use
8498 add_inf_child_target.
8499 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Use
8500 add_inf_child_target.
8501 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Use
8502 add_inf_child_target.
8503 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Use
8504 add_inf_child_target.
8505 * arm-linux-nat.c (_initialize_arm_linux_nat): Use
8506 add_inf_child_target.
8507 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Use
8508 add_inf_child_target.
8509 * bfd-target.c (target_bfd_target_info): New.
8510 (target_bfd) <shortname, longname, doc>: Delete.
8512 * bsd-kvm.c (bsd_kvm_target_info): New.
8513 (bsd_kvm_target) <shortname, longname, doc>: Delete.
8515 (bsd_kvm_target::open): Rename to ...
8516 (bsd_kvm_target_open): ... this. Adjust.
8517 * bsd-uthread.c (bsd_uthread_target_info): New.
8518 (bsd_uthread_target) <shortname, longname, doc>: Delete.
8520 * corefile.c (core_file_command): Adjust.
8521 * corelow.c (core_target_info): New.
8522 (core_target) <shortname, longname, doc>: Delete.
8524 (core_target::open): Rename to ...
8525 (core_target_open): ... this. Adjust.
8526 * ctf.c (ctf_target_info): New.
8527 (ctf_target) <shortname, longname, doc>: Delete.
8529 (ctf_target::open): Rename to ...
8530 (ctf_target_open): ... this.
8531 (_initialize_ctf): Adjust.
8532 * exec.c (exec_target_info): New.
8533 (exec_target) <shortname, longname, doc>: Delete.
8535 (exec_target::open): Rename to ...
8536 (exec_target_open): ... this.
8537 * gdbcore.h (core_target_open): Declare.
8538 * go32-nat.c (_initialize_go32_nat): Use add_inf_child_target.
8539 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Use
8540 add_inf_child_target.
8541 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Use
8542 add_inf_child_target.
8543 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Use
8544 add_inf_child_target.
8545 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Use
8546 add_inf_child_target.
8547 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Use
8548 add_inf_child_target.
8549 * i386-gnu-nat.c (_initialize_i386gnu_nat): Use
8550 add_inf_child_target.
8551 * i386-linux-nat.c (_initialize_i386_linux_nat): Use
8552 add_inf_child_target.
8553 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Use
8554 add_inf_child_target.
8555 * i386-obsd-nat.c (_initialize_i386obsd_nat): Use
8556 add_inf_child_target.
8557 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Use
8558 add_inf_child_target.
8559 * inf-child.c (inf_child_target_info): New.
8560 (inf_child_target::info): New.
8561 (inf_child_open_target): Remove 'target' parameter. Use
8562 get_native_target instead.
8563 (inf_child_target::open): Delete.
8564 (add_inf_child_target): New.
8565 * inf-child.h (inf_child_target) <shortname, longname, doc, open>:
8568 (add_inf_child_target): Declare.
8569 (inf_child_open_target): Declare.
8570 * linux-thread-db.c (thread_db_target_info): New.
8571 (thread_db_target) <shortname, longname, doc>: Delete.
8573 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Use
8574 add_inf_child_target.
8575 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Use
8576 add_inf_child_target.
8577 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Use
8578 add_inf_child_target.
8579 * m88k-bsd-nat.c (_initialize_m88kbsd_nat): Use
8580 add_inf_child_target.
8581 * make-target-delegates (print_class): Adjust.
8582 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Use
8583 add_inf_child_target.
8584 * mips-linux-nat.c (_initialize_mips_linux_nat): Use
8585 add_inf_child_target.
8586 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Use
8587 add_inf_child_target.
8588 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Use
8589 add_inf_child_target.
8590 * nto-procfs.c (nto_native_target_info): New.
8591 (nto_procfs_target_native) <shortname, longname, doc>:
8594 (nto_procfs_target_info): New.
8595 (nto_procfs_target_procfs) <shortname, longname, doc>:
8598 (init_procfs_targets): Adjust.
8599 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Use
8600 add_inf_child_target.
8601 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Use
8602 add_inf_child_target.
8603 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Use
8604 add_inf_child_target.
8605 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Use
8606 add_inf_child_target.
8607 * ravenscar-thread.c (ravenscar_target_info): New.
8608 (ravenscar_thread_target) <shortname, longname, doc>:
8611 * record-btrace.c (record_btrace_target_info):
8612 (record_btrace_target) <shortname, longname, doc>: Delete.
8614 (record_btrace_target::open): Rename to ...
8615 (record_btrace_target_open): ... this. Adjust.
8616 * record-full.c (record_longname, record_doc): New.
8617 (record_full_base_target) <shortname, longname, doc>: Delete.
8619 (record_full_target_info): New.
8620 (record_full_target): <shortname>: Delete.
8622 (record_full_core_open_1, record_full_open_1): Update comments.
8623 (record_full_base_target::open): Rename to ...
8624 (record_full_open): ... this.
8625 (cmd_record_full_restore): Update.
8626 (_initialize_record_full): Update.
8627 * remote-sim.c (remote_sim_target_info): New.
8628 (gdbsim_target) <shortname, longname, doc>: Delete.
8630 (gdbsim_target::open): Rename to ...
8631 (gdbsim_target_open): ... this.
8632 (_initialize_remote_sim): Adjust.
8633 * remote.c (remote_doc): New.
8634 (remote_target_info): New.
8635 (remote_target) <shortname, longname, doc>: Delete.
8637 (extended_remote_target_info): New.
8638 (extended_remote_target) <shortname, longname, doc>: Delete.
8640 (remote_target::open_1): Make static. Adjust.
8641 * rs6000-nat.c (_initialize_rs6000_nat): Use add_inf_child_target.
8642 * s390-linux-nat.c (_initialize_s390_nat): Use
8643 add_inf_child_target.
8644 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Use
8645 add_inf_child_target.
8646 * sol-thread.c (thread_db_target_info): New.
8647 (sol_thread_target) <shortname, longname, doc>: Delete.
8649 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Use
8650 add_inf_child_target.
8651 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Use
8652 add_inf_child_target.
8653 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Use
8654 add_inf_child_target.
8655 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Use
8656 add_inf_child_target.
8657 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Use
8658 add_inf_child_target.
8659 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Use
8660 add_inf_child_target.
8661 * spu-linux-nat.c (_initialize_spu_nat): Use
8662 add_inf_child_target.
8663 * spu-multiarch.c (spu_multiarch_target_info): New.
8664 (spu_multiarch_target) <shortname, longname, doc>: Delete.
8666 * target-delegates.c: Regenerate.
8667 * target.c: Include <unordered_map>.
8668 (target_ops_p): Delete.
8669 (DEF_VEC_P(target_ops_p)): Delete.
8670 (target_factories): New.
8671 (test_target_info): New.
8672 (test_target_ops::info): New.
8673 (open_target): Adjust to use target_factories.
8674 (add_target_with_completer): Rename to ...
8675 (add_target): ... this. Change prototype. Register target_info
8676 and open callback in target_factories. Register target_info in
8677 command context instead of target_ops.
8678 (add_target): Delete old implementation.
8679 (add_deprecated_target_alias): Change prototype. Adjust.
8680 (the_native_target): New.
8681 (set_native_target, get_native_target): New.
8682 (find_default_run_target): Use the_native_target.
8683 (find_attach_target, find_run_target): Simplify.
8684 (target_ops::open): Delete.
8685 (dummy_target_info): New.
8686 (dummy_target::shortname, dummy_target::longname)
8687 (dummy_target::doc): Delete.
8688 (dummy_target::info): New.
8689 (debug_target::shortname, debug_target::longname)
8690 (debug_target::doc): Delete.
8691 (debug_target::info): New.
8692 * target.h (struct target_info): New.
8693 (target_ops::~target_ops): Add comment.
8694 (target_ops::info): New.
8695 (target_ops::shortname, target_ops::longname, target_ops::doc): No
8696 longer virtual. Implement in terms of target_info.
8697 (set_native_target, get_native_target): Declare.
8698 (target_open_ftype): New.
8699 (add_target, add_target_with_completer)
8700 (add_deprecated_target_alias): Change prototype.
8701 (test_target) <shortname, longname, doc>: Delete.
8703 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Use
8704 add_inf_child_target.
8705 * tracefile-tfile.c (tfile_target_info): New.
8706 (tfile_target) <shortname, longname, doc>: Delete.
8708 (tfile_target::open): Rename to ...
8709 (tfile_target_open): ... this.
8710 (_initialize_tracefile_tfile): Adjust.
8711 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Use
8712 add_inf_child_target.
8713 * windows-nat.c (_initialize_windows_nat): Use
8714 add_inf_child_target.
8715 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Use
8716 add_inf_child_target.
8718 2018-05-02 Pedro Alves <palves@redhat.com>
8720 * linux-nat.h (linux_nat_target) <low_new_thread,
8721 low_delete_thread, low_new_fork, low_forget_process,
8722 low_prepare_to_resume, low_siginfo_fixup, low_status_is_event>:
8723 New virtual methods.
8724 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8725 (linux_nat_new_fork_ftype, linux_nat_set_new_fork)
8726 (linux_nat_forget_process_ftype, linux_nat_set_forget_process)
8727 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8728 (linux_nat_set_prepare_to_resume, linux_nat_set_status_is_event):
8730 * linux-fork.c (delete_fork): Adjust to call low method.
8731 * linux-nat.c (linux_nat_new_thread, linux_nat_delete_thread)
8732 (linux_nat_new_fork, linux_nat_forget_process_hook)
8733 (linux_nat_prepare_to_resume, linux_nat_siginfo_fixup)
8734 (linux_nat_status_is_event):
8735 (linux_nat_target::follow_fork, lwp_free, add_lwp, detach_one_lwp)
8736 (linux_resume_one_lwp_throw, linux_handle_extended_wait): Adjust
8738 (sigtrap_is_event): Rename to ...
8739 (linux_nat_target::low_status_is_event): ... this.
8740 (linux_nat_set_status_is_event): Delete.
8741 (save_stop_reason, linux_nat_wait_1)
8742 (linux_nat_target::mourn_inferior, siginfo_fixup): Adjust to call
8744 (linux_nat_set_new_thread, linux_nat_set_delete_thread)
8745 (linux_nat_set_new_fork, linux_nat_set_forget_process)
8746 (linux_nat_forget_process, linux_nat_set_siginfo_fixup)
8747 (linux_nat_set_prepare_to_resume): Delete.
8748 * aarch64-linux-nat.c: All linux_nat_set_* callbacks converted to
8749 low virtual methods.
8750 * amd64-linux-nat.c: Likewise.
8751 * arm-linux-nat.c: Likewise.
8752 * i386-linux-nat.c: Likewise.
8753 * ia64-linux-nat.c: Likewise.
8754 * mips-linux-nat.c: Likewise.
8755 * ppc-linux-nat.c: Likewise.
8756 * s390-linux-nat.c: Likewise.
8757 * sparc64-linux-nat.c: Likewise.
8758 * x86-linux-nat.c: Likewise.
8759 * x86-linux-nat.h: Include "nat/x86-linux.h".
8760 (x86_linux_nat_target) <low_new_fork, low_forget_process,
8761 low_prepare_to_resume, low_new_thread, low_delete_thread>:
8764 2018-05-02 Pedro Alves <palves@redhat.com>
8766 * target.h (target_ops)
8767 <stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8768 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint,
8769 stopped_by_watchpoint, have_continuable_watchpoint,
8770 stopped_data_address, watchpoint_addr_within_range,
8771 can_accel_watchpoint_condition, can_run, thread_alive,
8772 has_all_memory, has_memory, has_stack, has_registers,
8773 has_execution, can_async_p, is_async_p, supports_non_stop,
8774 always_non_stop_p, can_execute_reverse, supports_multi_process,
8775 supports_enable_disable_tracepoint,
8776 supports_disable_randomization, supports_string_tracing,
8777 supports_evaluation_of_breakpoint_conditions,
8778 can_run_breakpoint_commands, filesystem_is_local,
8779 can_download_tracepoint, get_trace_state_variable_value,
8780 set_trace_notes, get_tib_address, use_agent, can_use_agent,
8781 record_is_replaying, record_will_replay,
8782 augmented_libraries_svr4_read>: Adjust to return bool.
8783 * aarch64-linux-nat.c: All implementations adjusted.
8784 * aix-thread.c: All implementations adjusted.
8785 * arm-linux-nat.c: All implementations adjusted.
8786 * breakpoint.c: All implementations adjusted.
8787 * bsd-kvm.c: All implementations adjusted.
8788 * bsd-uthread.c: All implementations adjusted.
8789 * corelow.c: All implementations adjusted.
8790 * ctf.c: All implementations adjusted.
8791 * darwin-nat.c: All implementations adjusted.
8792 * darwin-nat.h: All implementations adjusted.
8793 * exec.c: All implementations adjusted.
8794 * fbsd-nat.c: All implementations adjusted.
8795 * fbsd-nat.h: All implementations adjusted.
8796 * gnu-nat.c: All implementations adjusted.
8797 * gnu-nat.h: All implementations adjusted.
8798 * go32-nat.c: All implementations adjusted.
8799 * ia64-linux-nat.c: All implementations adjusted.
8800 * inf-child.c: All implementations adjusted.
8801 * inf-child.h: All implementations adjusted.
8802 * inf-ptrace.c: All implementations adjusted.
8803 * inf-ptrace.h: All implementations adjusted.
8804 * linux-nat.c: All implementations adjusted.
8805 * linux-nat.h: All implementations adjusted.
8806 * mips-linux-nat.c: All implementations adjusted.
8807 * nto-procfs.c: All implementations adjusted.
8808 * ppc-linux-nat.c: All implementations adjusted.
8809 * procfs.c: All implementations adjusted.
8810 * ravenscar-thread.c: All implementations adjusted.
8811 * record-btrace.c: All implementations adjusted.
8812 * record-full.c: All implementations adjusted.
8813 * remote-sim.c: All implementations adjusted.
8814 * remote.c: All implementations adjusted.
8815 * s390-linux-nat.c: All implementations adjusted.
8816 * sol-thread.c: All implementations adjusted.
8817 * spu-multiarch.c: All implementations adjusted.
8818 * target-delegates.c: All implementations adjusted.
8819 * target.c: All implementations adjusted.
8820 * target.h: All implementations adjusted.
8821 * tracefile-tfile.c: All implementations adjusted.
8822 * tracefile.c: All implementations adjusted.
8823 * tracefile.h: All implementations adjusted.
8824 * windows-nat.c: All implementations adjusted.
8825 * x86-linux-nat.h: All implementations adjusted.
8826 * x86-nat.h: All implementations adjusted.
8828 2018-05-02 Pedro Alves <palves@redhat.com>
8830 * make-target-delegates (scan_target_h): Don't trim lines here.
8831 Replace sequences of tabs and/or whitespace with a single
8833 (top level, parsing methods): Trim each line before processing it
8836 2018-05-02 Pedro Alves <palves@redhat.com>
8837 John Baldwin <jhb@freebsd.org>
8839 * target.h (enum strata) <debug_stratum>: New.
8840 (struct target_ops) <all delegation methods>: Replace by C++
8841 virtual methods, and drop "to_" prefix. All references updated
8843 <to_shortname, to_longname, to_doc, to_data,
8844 to_have_steppable_watchpoint, to_have_continuable_watchpoint,
8845 to_has_thread_control, to_attach_no_wait>: Delete, replaced by
8846 virtual methods. All references updated throughout.
8847 <can_attach, supports_terminal_ours, can_create_inferior,
8848 get_thread_control_capabilities, attach_no_wait>: New
8850 <insert_breakpoint, remove_breakpoint>: Now
8851 TARGET_DEFAULT_NORETURN methods.
8852 <info_proc>: Now returns bool.
8854 (OPS_MAGIC): Delete.
8855 (current_target): Delete. All references replaced by references
8857 (target_stack): ... this. New.
8858 (target_shortname, target_longname): Adjust.
8859 (target_can_run): Now a function declaration.
8860 (default_child_has_all_memory, default_child_has_memory)
8861 (default_child_has_stack, default_child_has_registers)
8862 (default_child_has_execution): Remove target_ops parameter.
8863 (complete_target_initialization): Delete.
8864 (memory_breakpoint_target): New template class.
8865 (test_target_ops): Refactor as a C++ class with virtual methods.
8866 * make-target-delegates (NAME_PART): Tighten.
8867 (POINTER_PART, CP_SYMBOL): New.
8868 (SIMPLE_RETURN_PART): Reimplement.
8869 (VEC_RETURN_PART): Expect less.
8870 (RETURN_PART, VIRTUAL_PART): New.
8871 (METHOD): Adjust to C++ virtual methods.
8872 (scan_target_h): Remove reference to C99.
8873 (dname): Output "target_ops::" prefix.
8874 (write_function_header): Adjust to output a C++ class method.
8875 (write_declaration): New.
8876 (write_delegator): Adjust to output a C++ class method.
8877 (tdname): Output "dummy_target::" prefix.
8878 (write_tdefault, write_debugmethod): Adjust to output a C++ class
8880 (tdefault_names, debug_names): Delete.
8881 (return_types, tdefaults, styles, argtypes_array): New.
8882 (top level): All methods are delegators.
8884 (top level): Print dummy_target and debug_target classes.
8885 * target-delegates.c: Regenerate.
8886 * target-debug.h (target_debug_print_enum_info_proc_what)
8887 (target_debug_print_thread_control_capabilities)
8888 (target_debug_print_thread_info_p): New.
8889 * target.c (dummy_target): Delete.
8890 (the_dummy_target, the_debug_target): New.
8891 (target_stack): Now extern.
8892 (set_targetdebug): Push/unpush debug target.
8893 (default_child_has_all_memory, default_child_has_memory)
8894 (default_child_has_stack, default_child_has_registers)
8895 (default_child_has_execution): Remove target_ops parameter.
8896 (complete_target_initialization): Delete.
8897 (add_target_with_completer): No longer call
8898 complete_target_initialization.
8899 (target_supports_terminal_ours): Use regular delegation.
8900 (update_current_target): Delete.
8901 (push_target): No longer check magic number. Don't call
8902 update_current_target.
8903 (unpush_target): Don't call update_current_target.
8904 (target_is_pushed): No longer check magic number.
8905 (target_require_runnable): Skip for all stratums over
8907 (target_ops::info_proc): New.
8908 (target_info_proc): Use find_target_at and
8909 find_default_run_target.
8910 (target_supports_disable_randomization): Use regular delegation.
8911 (target_get_osdata): Use find_target_at.
8912 (target_ops::open, target_ops::close, target_ops::can_attach)
8913 (target_ops::attach, target_ops::can_create_inferior)
8914 (target_ops::create_inferior, target_ops::can_run)
8915 (target_can_run): New.
8916 (default_fileio_target): Use regular delegation.
8917 (target_ops::fileio_open, target_ops::fileio_pwrite)
8918 (target_ops::fileio_pread, target_ops::fileio_fstat)
8919 (target_ops::fileio_close, target_ops::fileio_unlink)
8920 (target_ops::fileio_readlink): New.
8921 (target_fileio_open_1, target_fileio_unlink)
8922 (target_fileio_readlink): Always call the target method. Handle
8924 (return_zero, return_zero_has_execution): Delete.
8925 (init_dummy_target): Delete.
8926 (dummy_target::dummy_target, dummy_target::shortname)
8927 (dummy_target::longname, dummy_target::doc)
8928 (debug_target::debug_target, debug_target::shortname)
8929 (debug_target::longname, debug_target::doc): New.
8930 (target_supports_delete_record): Use regular delegation.
8931 (setup_target_debug): Delete.
8932 (maintenance_print_target_stack): Skip debug_stratum.
8933 (initialize_targets): Instantiate the_dummy_target and
8935 * auxv.c (target_auxv_parse): Remove 'ops' parameter. Adjust to
8937 (target_auxv_search, fprint_target_auxv): Adjust.
8938 (info_auxv_command): Adjust to use target_stack.
8939 * auxv.h (target_auxv_parse): Remove 'ops' parameter.
8940 * exceptions.c (print_flush): Handle a NULL target_stack.
8941 * regcache.c (target_ops_no_register): Refactor as class with
8944 * exec.c (exec_target): New class.
8945 (exec_ops): Now an exec_target.
8946 (exec_open, exec_close_1, exec_get_section_table)
8947 (exec_xfer_partial, exec_files_info, exec_has_memory)
8948 (exec_make_note_section): Refactor as exec_target methods.
8949 (exec_file_clear, ignore, exec_remove_breakpoint, init_exec_ops):
8951 (exec_target::find_memory_regions): New.
8952 (_initialize_exec): Don't call init_exec_ops.
8953 * gdbcore.h (exec_file_clear): Delete.
8955 * corefile.c (core_target): Delete.
8956 (core_file_command): Adjust.
8957 * corelow.c (core_target): New class.
8958 (the_core_target): New.
8959 (core_close): Remove target_ops parameter.
8960 (core_close_cleanup): Adjust.
8961 (core_target::close): New.
8962 (core_open, core_detach, get_core_registers, core_files_info)
8963 (core_xfer_partial, core_thread_alive, core_read_description)
8964 (core_pid_to_str, core_thread_name, core_has_memory)
8965 (core_has_stack, core_has_registers, core_info_proc): Rework as
8966 core_target methods.
8967 (ignore, core_remove_breakpoint, init_core_ops): Delete.
8968 (_initialize_corelow): Initialize the_core_target.
8969 * gdbcore.h (core_target): Delete.
8970 (the_core_target): New.
8972 * ctf.c: (ctf_target): New class.
8973 (ctf_ops): Now a ctf_target.
8974 (ctf_open, ctf_close, ctf_files_info, ctf_fetch_registers)
8975 (ctf_xfer_partial, ctf_get_trace_state_variable_value)
8976 (ctf_trace_find, ctf_traceframe_info): Refactor as ctf_target
8978 (init_ctf_ops): Delete.
8979 (_initialize_ctf): Don't call it.
8980 * tracefile-tfile.c (tfile_target): New class.
8981 (tfile_ops): Now a tfile_target.
8982 (tfile_open, tfile_close, tfile_files_info)
8983 (tfile_get_tracepoint_status, tfile_trace_find)
8984 (tfile_fetch_registers, tfile_xfer_partial)
8985 (tfile_get_trace_state_variable_value, tfile_traceframe_info):
8986 Refactor as tfile_target methods.
8987 (tfile_xfer_partial_features): Remove target_ops parameter.
8988 (init_tfile_ops): Delete.
8989 (_initialize_tracefile_tfile): Don't call it.
8990 * tracefile.c (tracefile_has_all_memory, tracefile_has_memory)
8991 (tracefile_has_stack, tracefile_has_registers)
8992 (tracefile_thread_alive, tracefile_get_trace_status): Refactor as
8993 tracefile_target methods.
8994 (init_tracefile_ops): Delete.
8995 (tracefile_target::tracefile_target): New.
8996 * tracefile.h: Include "target.h".
8997 (tracefile_target): New class.
8998 (init_tracefile_ops): Delete.
9000 * spu-multiarch.c (spu_multiarch_target): New class.
9001 (spu_ops): Now a spu_multiarch_target.
9002 (spu_thread_architecture, spu_region_ok_for_hw_watchpoint)
9003 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
9004 (spu_search_memory, spu_mourn_inferior): Refactor as
9005 spu_multiarch_target methods.
9006 (init_spu_ops): Delete.
9007 (_initialize_spu_multiarch): Remove references to init_spu_ops,
9008 complete_target_initialization.
9010 * ravenscar-thread.c (ravenscar_thread_target): New class.
9011 (ravenscar_ops): Now a ravenscar_thread_target.
9012 (ravenscar_resume, ravenscar_wait, ravenscar_update_thread_list)
9013 (ravenscar_thread_alive, ravenscar_pid_to_str)
9014 (ravenscar_fetch_registers, ravenscar_store_registers)
9015 (ravenscar_prepare_to_store, ravenscar_stopped_by_sw_breakpoint)
9016 (ravenscar_stopped_by_hw_breakpoint)
9017 (ravenscar_stopped_by_watchpoint, ravenscar_stopped_data_address)
9018 (ravenscar_mourn_inferior, ravenscar_core_of_thread)
9019 (ravenscar_get_ada_task_ptid): Refactor as ravenscar_thread_target
9021 (init_ravenscar_thread_ops): Delete.
9022 (_initialize_ravenscar): Remove references to
9023 init_ravenscar_thread_ops and complete_target_initialization.
9025 * bsd-uthread.c (bsd_uthread_ops_hack): Delete.
9026 (bsd_uthread_target): New class.
9027 (bsd_uthread_ops): Now a bsd_uthread_target.
9028 (bsd_uthread_activate): Adjust to refer to bsd_uthread_ops.
9029 (bsd_uthread_close, bsd_uthread_mourn_inferior)
9030 (bsd_uthread_fetch_registers, bsd_uthread_store_registers)
9031 (bsd_uthread_wait, bsd_uthread_resume, bsd_uthread_thread_alive)
9032 (bsd_uthread_update_thread_list, bsd_uthread_extra_thread_info)
9033 (bsd_uthread_pid_to_str): Refactor as bsd_uthread_target methods.
9034 (bsd_uthread_target): Delete function.
9035 (_initialize_bsd_uthread): Remove reference to
9036 complete_target_initialization.
9038 * bfd-target.c (target_bfd_data): Delete. Fields folded into ...
9039 (target_bfd): ... this new class.
9040 (target_bfd_xfer_partial, target_bfd_get_section_table)
9041 (target_bfd_close): Refactor as target_bfd methods.
9042 (target_bfd::~target_bfd): New.
9043 (target_bfd_reopen): Adjust.
9044 (target_bfd::close): New.
9046 * record-btrace.c (record_btrace_target): New class.
9047 (record_btrace_ops): Now a record_btrace_target.
9048 (record_btrace_open, record_btrace_stop_recording)
9049 (record_btrace_disconnect, record_btrace_close)
9050 (record_btrace_async, record_btrace_info)
9051 (record_btrace_insn_history, record_btrace_insn_history_range)
9052 (record_btrace_insn_history_from, record_btrace_call_history)
9053 (record_btrace_call_history_range)
9054 (record_btrace_call_history_from, record_btrace_record_method)
9055 (record_btrace_is_replaying, record_btrace_will_replay)
9056 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
9057 (record_btrace_remove_breakpoint, record_btrace_fetch_registers)
9058 (record_btrace_store_registers, record_btrace_prepare_to_store)
9059 (record_btrace_to_get_unwinder)
9060 (record_btrace_to_get_tailcall_unwinder, record_btrace_resume)
9061 (record_btrace_commit_resume, record_btrace_wait)
9062 (record_btrace_stop, record_btrace_can_execute_reverse)
9063 (record_btrace_stopped_by_sw_breakpoint)
9064 (record_btrace_supports_stopped_by_sw_breakpoint)
9065 (record_btrace_stopped_by_hw_breakpoint)
9066 (record_btrace_supports_stopped_by_hw_breakpoint)
9067 (record_btrace_update_thread_list, record_btrace_thread_alive)
9068 (record_btrace_goto_begin, record_btrace_goto_end)
9069 (record_btrace_goto, record_btrace_stop_replaying_all)
9070 (record_btrace_execution_direction)
9071 (record_btrace_prepare_to_generate_core)
9072 (record_btrace_done_generating_core): Refactor as
9073 record_btrace_target methods.
9074 (init_record_btrace_ops): Delete.
9075 (_initialize_record_btrace): Remove reference to
9076 init_record_btrace_ops.
9077 * record-full.c (RECORD_FULL_IS_REPLAY): Adjust to always refer to
9078 the execution_direction global.
9079 (record_full_base_target, record_full_target)
9080 (record_full_core_target): New classes.
9081 (record_full_ops): Now a record_full_target.
9082 (record_full_core_ops): Now a record_full_core_target.
9083 (record_full_target::detach, record_full_target::disconnect)
9084 (record_full_core_target::disconnect)
9085 (record_full_target::mourn_inferior, record_full_target::kill):
9087 (record_full_open, record_full_close, record_full_async): Refactor
9088 as methods of the record_full_base_target class.
9089 (record_full_resume, record_full_commit_resume): Refactor
9090 as methods of the record_full_target class.
9091 (record_full_wait, record_full_stopped_by_watchpoint)
9092 (record_full_stopped_data_address)
9093 (record_full_stopped_by_sw_breakpoint)
9094 (record_full_supports_stopped_by_sw_breakpoint)
9095 (record_full_stopped_by_hw_breakpoint)
9096 (record_full_supports_stopped_by_hw_breakpoint): Refactor as
9097 methods of the record_full_base_target class.
9098 (record_full_store_registers, record_full_xfer_partial)
9099 (record_full_insert_breakpoint, record_full_remove_breakpoint):
9100 Refactor as methods of the record_full_target class.
9101 (record_full_can_execute_reverse, record_full_get_bookmark)
9102 (record_full_goto_bookmark, record_full_execution_direction)
9103 (record_full_record_method, record_full_info, record_full_delete)
9104 (record_full_is_replaying, record_full_will_replay)
9105 (record_full_goto_begin, record_full_goto_end, record_full_goto)
9106 (record_full_stop_replaying): Refactor as methods of the
9107 record_full_base_target class.
9108 (record_full_core_resume, record_full_core_kill)
9109 (record_full_core_fetch_registers)
9110 (record_full_core_prepare_to_store)
9111 (record_full_core_store_registers, record_full_core_xfer_partial)
9112 (record_full_core_insert_breakpoint)
9113 (record_full_core_remove_breakpoint)
9114 (record_full_core_has_execution): Refactor
9115 as methods of the record_full_core_target class.
9116 (record_full_base_target::supports_delete_record): New.
9117 (init_record_full_ops): Delete.
9118 (init_record_full_core_ops): Delete.
9119 (record_full_save): Refactor as method of the
9120 record_full_base_target class.
9121 (_initialize_record_full): Remove references to
9122 init_record_full_ops and init_record_full_core_ops.
9124 * remote.c (remote_target, extended_remote_target): New classes.
9125 (remote_ops): Now a remote_target.
9126 (extended_remote_ops): Now an extended_remote_target.
9127 (remote_insert_fork_catchpoint, remote_remove_fork_catchpoint)
9128 (remote_insert_vfork_catchpoint, remote_remove_vfork_catchpoint)
9129 (remote_insert_exec_catchpoint, remote_remove_exec_catchpoint)
9130 (remote_pass_signals, remote_set_syscall_catchpoint)
9131 (remote_program_signals, )
9132 (remote_thread_always_alive): Remove target_ops parameter.
9133 (remote_thread_alive, remote_thread_name)
9134 (remote_update_thread_list, remote_threads_extra_info)
9135 (remote_static_tracepoint_marker_at)
9136 (remote_static_tracepoint_markers_by_strid)
9137 (remote_get_ada_task_ptid, remote_close, remote_start_remote)
9138 (remote_open): Refactor as methods of remote_target.
9139 (extended_remote_open, extended_remote_detach)
9140 (extended_remote_attach, extended_remote_post_attach):
9141 (extended_remote_supports_disable_randomization)
9142 (extended_remote_create_inferior): : Refactor as method of
9143 extended_remote_target.
9144 (remote_set_permissions, remote_open_1, remote_detach)
9145 (remote_follow_fork, remote_follow_exec, remote_disconnect)
9146 (remote_resume, remote_commit_resume, remote_stop)
9147 (remote_interrupt, remote_pass_ctrlc, remote_terminal_inferior)
9148 (remote_terminal_ours, remote_wait, remote_fetch_registers)
9149 (remote_prepare_to_store, remote_store_registers)
9150 (remote_flash_erase, remote_flash_done, remote_files_info)
9151 (remote_kill, remote_mourn, remote_insert_breakpoint)
9152 (remote_remove_breakpoint, remote_insert_watchpoint)
9153 (remote_watchpoint_addr_within_range)
9154 (remote_remove_watchpoint, remote_region_ok_for_hw_watchpoint)
9155 (remote_check_watch_resources, remote_stopped_by_sw_breakpoint)
9156 (remote_supports_stopped_by_sw_breakpoint)
9157 (remote_stopped_by_hw_breakpoint)
9158 (remote_supports_stopped_by_hw_breakpoint)
9159 (remote_stopped_by_watchpoint, remote_stopped_data_address)
9160 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
9161 (remote_verify_memory): Refactor as methods of remote_target.
9162 (remote_write_qxfer, remote_read_qxfer): Remove target_ops
9164 (remote_xfer_partial, remote_get_memory_xfer_limit)
9165 (remote_search_memory, remote_rcmd, remote_memory_map)
9166 (remote_pid_to_str, remote_get_thread_local_address)
9167 (remote_get_tib_address, remote_read_description): Refactor as
9168 methods of remote_target.
9169 (remote_target::fileio_open, remote_target::fileio_pwrite)
9170 (remote_target::fileio_pread, remote_target::fileio_close): New.
9171 (remote_hostio_readlink, remote_hostio_fstat)
9172 (remote_filesystem_is_local, remote_can_execute_reverse)
9173 (remote_supports_non_stop, remote_supports_disable_randomization)
9174 (remote_supports_multi_process, remote_supports_cond_breakpoints)
9175 (remote_supports_enable_disable_tracepoint)
9176 (remote_supports_string_tracing)
9177 (remote_can_run_breakpoint_commands, remote_trace_init)
9178 (remote_download_tracepoint, remote_can_download_tracepoint)
9179 (remote_download_trace_state_variable, remote_enable_tracepoint)
9180 (remote_disable_tracepoint, remote_trace_set_readonly_regions)
9181 (remote_trace_start, remote_get_trace_status)
9182 (remote_get_tracepoint_status, remote_trace_stop)
9183 (remote_trace_find, remote_get_trace_state_variable_value)
9184 (remote_save_trace_data, remote_get_raw_trace_data)
9185 (remote_set_disconnected_tracing, remote_core_of_thread)
9186 (remote_set_circular_trace_buffer, remote_traceframe_info)
9187 (remote_get_min_fast_tracepoint_insn_len)
9188 (remote_set_trace_buffer_size, remote_set_trace_notes)
9189 (remote_use_agent, remote_can_use_agent, remote_enable_btrace)
9190 (remote_disable_btrace, remote_teardown_btrace)
9191 (remote_read_btrace, remote_btrace_conf)
9192 (remote_augmented_libraries_svr4_read, remote_load)
9193 (remote_pid_to_exec_file, remote_can_do_single_step)
9194 (remote_execution_direction, remote_thread_handle_to_thread_info):
9195 Refactor as methods of remote_target.
9196 (init_remote_ops, init_extended_remote_ops): Delete.
9197 (remote_can_async_p, remote_is_async_p, remote_async)
9198 (remote_thread_events, remote_upload_tracepoints)
9199 (remote_upload_trace_state_variables): Refactor as methods of
9201 (_initialize_remote): Remove references to init_remote_ops and
9202 init_extended_remote_ops.
9204 * remote-sim.c (gdbsim_target): New class.
9205 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_kill)
9206 (gdbsim_load, gdbsim_create_inferior, gdbsim_open, gdbsim_close)
9207 (gdbsim_detach, gdbsim_resume, gdbsim_interrupt)
9208 (gdbsim_wait, gdbsim_prepare_to_store, gdbsim_xfer_partial)
9209 (gdbsim_files_info, gdbsim_mourn_inferior, gdbsim_thread_alive)
9210 (gdbsim_pid_to_str, gdbsim_has_all_memory, gdbsim_has_memory):
9211 Refactor as methods of gdbsim_target.
9212 (gdbsim_ops): Now a gdbsim_target.
9213 (init_gdbsim_ops): Delete.
9214 (gdbsim_cntrl_c): Adjust.
9215 (_initialize_remote_sim): Remove reference to init_gdbsim_ops.
9217 * amd64-linux-nat.c (amd64_linux_nat_target): New class.
9218 (the_amd64_linux_nat_target): New.
9219 (amd64_linux_fetch_inferior_registers)
9220 (amd64_linux_store_inferior_registers): Refactor as methods of
9221 amd64_linux_nat_target.
9222 (_initialize_amd64_linux_nat): Adjust. Set linux_target.
9223 * i386-linux-nat.c: Don't include "linux-nat.h".
9224 (i386_linux_nat_target): New class.
9225 (the_i386_linux_nat_target): New.
9226 (i386_linux_fetch_inferior_registers)
9227 (i386_linux_store_inferior_registers, i386_linux_resume): Refactor
9228 as methods of i386_linux_nat_target.
9229 (_initialize_i386_linux_nat): Adjust. Set linux_target.
9230 * inf-child.c (inf_child_ops): Delete.
9231 (inf_child_fetch_inferior_registers)
9232 (inf_child_store_inferior_registers): Delete.
9233 (inf_child_post_attach, inf_child_prepare_to_store): Refactor as
9234 methods of inf_child_target.
9235 (inf_child_target::supports_terminal_ours)
9236 (inf_child_target::terminal_init)
9237 (inf_child_target::terminal_inferior)
9238 (inf_child_target::terminal_ours_for_output)
9239 (inf_child_target::terminal_ours, inf_child_target::interrupt)
9240 (inf_child_target::pass_ctrlc, inf_child_target::terminal_info):
9242 (inf_child_open, inf_child_disconnect, inf_child_close)
9243 (inf_child_mourn_inferior, inf_child_maybe_unpush_target)
9244 (inf_child_post_startup_inferior, inf_child_can_run)
9245 (inf_child_pid_to_exec_file): Refactor as methods of
9247 (inf_child_follow_fork): Delete.
9248 (inf_child_target::can_create_inferior)
9249 (inf_child_target::can_attach): New.
9250 (inf_child_target::has_all_memory, inf_child_target::has_memory)
9251 (inf_child_target::has_stack, inf_child_target::has_registers)
9252 (inf_child_target::has_execution): New.
9253 (inf_child_fileio_open, inf_child_fileio_pwrite)
9254 (inf_child_fileio_pread, inf_child_fileio_fstat)
9255 (inf_child_fileio_close, inf_child_fileio_unlink)
9256 (inf_child_fileio_readlink, inf_child_use_agent)
9257 (inf_child_can_use_agent): Refactor as methods of
9259 (return_zero, inf_child_target): Delete.
9260 (inf_child_target::inf_child_target): New.
9261 * inf-child.h: Include "target.h".
9262 (inf_child_target): Delete function prototype.
9263 (inf_child_target): New class.
9264 (inf_child_open_target, inf_child_mourn_inferior)
9265 (inf_child_maybe_unpush_target): Delete.
9266 * inf-ptrace.c (inf_ptrace_target::~inf_ptrace_target): New.
9267 (inf_ptrace_follow_fork, inf_ptrace_insert_fork_catchpoint)
9268 (inf_ptrace_remove_fork_catchpoint, inf_ptrace_create_inferior)
9269 (inf_ptrace_post_startup_inferior, inf_ptrace_mourn_inferior)
9270 (inf_ptrace_attach, inf_ptrace_post_attach, inf_ptrace_detach)
9271 (inf_ptrace_detach_success, inf_ptrace_kill, inf_ptrace_resume)
9272 (inf_ptrace_wait, inf_ptrace_xfer_partial)
9273 (inf_ptrace_thread_alive, inf_ptrace_files_info)
9274 (inf_ptrace_pid_to_str, inf_ptrace_auxv_parse): Refactor as
9275 methods of inf_ptrace_target.
9276 (inf_ptrace_target): Delete function.
9277 * inf-ptrace.h: Include "inf-child.h".
9278 (inf_ptrace_target): Delete function declaration.
9279 (inf_ptrace_target): New class.
9280 (inf_ptrace_trad_target, inf_ptrace_detach_success): Delete.
9281 * linux-nat.c (linux_target): New.
9282 (linux_ops, linux_ops_saved, super_xfer_partial): Delete.
9283 (linux_nat_target::~linux_nat_target): New.
9284 (linux_child_post_attach, linux_child_post_startup_inferior)
9285 (linux_child_follow_fork, linux_child_insert_fork_catchpoint)
9286 (linux_child_remove_fork_catchpoint)
9287 (linux_child_insert_vfork_catchpoint)
9288 (linux_child_remove_vfork_catchpoint)
9289 (linux_child_insert_exec_catchpoint)
9290 (linux_child_remove_exec_catchpoint)
9291 (linux_child_set_syscall_catchpoint, linux_nat_pass_signals)
9292 (linux_nat_create_inferior, linux_nat_attach, linux_nat_detach)
9293 (linux_nat_resume, linux_nat_stopped_by_watchpoint)
9294 (linux_nat_stopped_data_address)
9295 (linux_nat_stopped_by_sw_breakpoint)
9296 (linux_nat_supports_stopped_by_sw_breakpoint)
9297 (linux_nat_stopped_by_hw_breakpoint)
9298 (linux_nat_supports_stopped_by_hw_breakpoint, linux_nat_wait)
9299 (linux_nat_kill, linux_nat_mourn_inferior)
9300 (linux_nat_xfer_partial, linux_nat_thread_alive)
9301 (linux_nat_update_thread_list, linux_nat_pid_to_str)
9302 (linux_nat_thread_name, linux_child_pid_to_exec_file)
9303 (linux_child_static_tracepoint_markers_by_strid)
9304 (linux_nat_is_async_p, linux_nat_can_async_p)
9305 (linux_nat_supports_non_stop, linux_nat_always_non_stop_p)
9306 (linux_nat_supports_multi_process)
9307 (linux_nat_supports_disable_randomization, linux_nat_async)
9308 (linux_nat_stop, linux_nat_close, linux_nat_thread_address_space)
9309 (linux_nat_core_of_thread, linux_nat_filesystem_is_local)
9310 (linux_nat_fileio_open, linux_nat_fileio_readlink)
9311 (linux_nat_fileio_unlink, linux_nat_thread_events): Refactor as
9312 methods of linux_nat_target.
9313 (linux_nat_wait_1, linux_xfer_siginfo, linux_proc_xfer_partial)
9314 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Remove target_ops
9316 (check_stopped_by_watchpoint): Adjust.
9317 (linux_xfer_partial): Delete.
9318 (linux_target_install_ops, linux_target, linux_nat_add_target):
9320 (linux_nat_target::linux_nat_target): New.
9321 * linux-nat.h: Include "inf-ptrace.h".
9322 (linux_nat_target): New.
9323 (linux_target, linux_target_install_ops, linux_nat_add_target):
9324 Delete function declarations.
9325 (linux_target): Declare global.
9326 * linux-thread-db.c (thread_db_target): New.
9327 (thread_db_target::thread_db_target): New.
9328 (thread_db_ops): Delete.
9329 (the_thread_db_target): New.
9330 (thread_db_detach, thread_db_wait, thread_db_mourn_inferior)
9331 (thread_db_update_thread_list, thread_db_pid_to_str)
9332 (thread_db_extra_thread_info)
9333 (thread_db_thread_handle_to_thread_info)
9334 (thread_db_get_thread_local_address, thread_db_get_ada_task_ptid)
9335 (thread_db_resume): Refactor as methods of thread_db_target.
9336 (init_thread_db_ops): Delete.
9337 (_initialize_thread_db): Remove reference to init_thread_db_ops.
9338 * x86-linux-nat.c: Don't include "linux-nat.h".
9339 (super_post_startup_inferior): Delete.
9340 (x86_linux_nat_target::~x86_linux_nat_target): New.
9341 (x86_linux_child_post_startup_inferior)
9342 (x86_linux_read_description, x86_linux_enable_btrace)
9343 (x86_linux_disable_btrace, x86_linux_teardown_btrace)
9344 (x86_linux_read_btrace, x86_linux_btrace_conf): Refactor as
9345 methods of x86_linux_nat_target.
9346 (x86_linux_create_target): Delete. Bits folded ...
9347 (x86_linux_add_target): ... here. Now takes a linux_nat_target
9349 * x86-linux-nat.h: Include "linux-nat.h" and "x86-nat.h".
9350 (x86_linux_nat_target): New class.
9351 (x86_linux_create_target): Delete.
9352 (x86_linux_add_target): Now takes a linux_nat_target pointer.
9353 * x86-nat.c (x86_insert_watchpoint, x86_remove_watchpoint)
9354 (x86_region_ok_for_watchpoint, x86_stopped_data_address)
9355 (x86_stopped_by_watchpoint, x86_insert_hw_breakpoint)
9356 (x86_remove_hw_breakpoint, x86_can_use_hw_breakpoint)
9357 (x86_stopped_by_hw_breakpoint): Remove target_ops parameter and
9359 (x86_use_watchpoints): Delete.
9360 * x86-nat.h: Include "breakpoint.h" and "target.h".
9361 (x86_use_watchpoints): Delete.
9362 (x86_can_use_hw_breakpoint, x86_region_ok_for_hw_watchpoint)
9363 (x86_stopped_by_watchpoint, x86_stopped_data_address)
9364 (x86_insert_watchpoint, x86_remove_watchpoint)
9365 (x86_insert_hw_breakpoint, x86_remove_hw_breakpoint)
9366 (x86_stopped_by_hw_breakpoint): New declarations.
9367 (x86_nat_target): New template class.
9369 * ppc-linux-nat.c (ppc_linux_nat_target): New class.
9370 (the_ppc_linux_nat_target): New.
9371 (ppc_linux_fetch_inferior_registers)
9372 (ppc_linux_can_use_hw_breakpoint)
9373 (ppc_linux_region_ok_for_hw_watchpoint)
9374 (ppc_linux_ranged_break_num_registers)
9375 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
9376 (ppc_linux_insert_mask_watchpoint)
9377 (ppc_linux_remove_mask_watchpoint)
9378 (ppc_linux_can_accel_watchpoint_condition)
9379 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint)
9380 (ppc_linux_stopped_data_address, ppc_linux_stopped_by_watchpoint)
9381 (ppc_linux_watchpoint_addr_within_range)
9382 (ppc_linux_masked_watch_num_registers)
9383 (ppc_linux_store_inferior_registers, ppc_linux_auxv_parse)
9384 (ppc_linux_read_description): Refactor as methods of
9385 ppc_linux_nat_target.
9386 (_initialize_ppc_linux_nat): Adjust. Set linux_target.
9388 * procfs.c (procfs_xfer_partial): Delete forward declaration.
9389 (procfs_target): New class.
9390 (the_procfs_target): New.
9391 (procfs_target): Delete function.
9392 (procfs_auxv_parse, procfs_attach, procfs_detach)
9393 (procfs_fetch_registers, procfs_store_registers, procfs_wait)
9394 (procfs_xfer_partial, procfs_resume, procfs_pass_signals)
9395 (procfs_files_info, procfs_kill_inferior, procfs_mourn_inferior)
9396 (procfs_create_inferior, procfs_update_thread_list)
9397 (procfs_thread_alive, procfs_pid_to_str)
9398 (procfs_can_use_hw_breakpoint, procfs_stopped_by_watchpoint)
9399 (procfs_stopped_data_address, procfs_insert_watchpoint)
9400 (procfs_remove_watchpoint, procfs_region_ok_for_hw_watchpoint)
9401 (proc_find_memory_regions, procfs_info_proc)
9402 (procfs_make_note_section): Refactor as methods of procfs_target.
9403 (_initialize_procfs): Adjust.
9404 * sol-thread.c (sol_thread_target): New class.
9405 (sol_thread_ops): Now a sol_thread_target.
9406 (sol_thread_detach, sol_thread_resume, sol_thread_wait)
9407 (sol_thread_fetch_registers, sol_thread_store_registers)
9408 (sol_thread_xfer_partial, sol_thread_mourn_inferior)
9409 (sol_thread_alive, solaris_pid_to_str, sol_update_thread_list)
9410 (sol_get_ada_task_ptid): Refactor as methods of sol_thread_target.
9411 (init_sol_thread_ops): Delete.
9412 (_initialize_sol_thread): Adjust. Remove references to
9413 init_sol_thread_ops and complete_target_initialization.
9415 * windows-nat.c (windows_nat_target): New class.
9416 (windows_fetch_inferior_registers)
9417 (windows_store_inferior_registers, windows_resume, windows_wait)
9418 (windows_attach, windows_detach, windows_pid_to_exec_file)
9419 (windows_files_info, windows_create_inferior)
9420 (windows_mourn_inferior, windows_interrupt, windows_kill_inferior)
9421 (windows_close, windows_pid_to_str, windows_xfer_partial)
9422 (windows_get_tib_address, windows_get_ada_task_ptid)
9423 (windows_thread_name, windows_thread_alive): Refactor as
9424 windows_nat_target methods.
9425 (do_initial_windows_stuff): Adjust.
9426 (windows_target): Delete function.
9427 (_initialize_windows_nat): Adjust.
9429 * darwin-nat.c (darwin_resume, darwin_wait_to, darwin_interrupt)
9430 (darwin_mourn_inferior, darwin_kill_inferior)
9431 (darwin_create_inferior, darwin_attach, darwin_detach)
9432 (darwin_pid_to_str, darwin_thread_alive, darwin_xfer_partial)
9433 (darwin_pid_to_exec_file, darwin_get_ada_task_ptid)
9434 (darwin_supports_multi_process): Refactor as darwin_nat_target
9436 (darwin_resume_to, darwin_files_info): Delete.
9437 (_initialize_darwin_inferior): Rename to ...
9438 (_initialize_darwin_nat): ... this. Adjust to C++ification.
9439 * darwin-nat.h: Include "inf-child.h".
9440 (darwin_nat_target): New class.
9441 (darwin_complete_target): Delete.
9442 * i386-darwin-nat.c (i386_darwin_nat_target): New class.
9443 (darwin_target): New.
9444 (i386_darwin_fetch_inferior_registers)
9445 (i386_darwin_store_inferior_registers): Refactor as methods of
9447 (darwin_complete_target): Delete, with ...
9448 (_initialize_i386_darwin_nat): ... bits factored out here.
9450 * alpha-linux-nat.c (alpha_linux_nat_target): New class.
9451 (the_alpha_linux_nat_target): New.
9452 (alpha_linux_register_u_offset): Refactor as
9453 alpha_linux_nat_target method.
9454 (_initialize_alpha_linux_nat): Adjust.
9455 * linux-nat-trad.c (inf_ptrace_register_u_offset): Delete.
9456 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9457 (inf_ptrace_store_register, inf_ptrace_store_registers): Refact as
9458 methods of linux_nat_trad_target.
9459 (linux_trad_target): Delete.
9460 * linux-nat-trad.h (linux_trad_target): Delete function.
9461 (linux_nat_trad_target): New class.
9462 * mips-linux-nat.c (mips_linux_nat_target): New class.
9463 (super_fetch_registers, super_store_registers, super_close):
9465 (the_mips_linux_nat_target): New.
9466 (mips64_linux_regsets_fetch_registers)
9467 (mips64_linux_regsets_store_registers)
9468 (mips64_linux_fetch_registers, mips64_linux_store_registers)
9469 (mips_linux_register_u_offset, mips_linux_read_description)
9470 (mips_linux_can_use_hw_breakpoint)
9471 (mips_linux_stopped_by_watchpoint)
9472 (mips_linux_stopped_data_address)
9473 (mips_linux_region_ok_for_hw_watchpoint)
9474 (mips_linux_insert_watchpoint, mips_linux_remove_watchpoint)
9475 (mips_linux_close): Refactor as methods of mips_linux_nat.
9476 (_initialize_mips_linux_nat): Adjust to C++ification.
9478 * aix-thread.c (aix_thread_target): New class.
9479 (aix_thread_ops): Now an aix_thread_target.
9480 (aix_thread_detach, aix_thread_resume, aix_thread_wait)
9481 (aix_thread_fetch_registers, aix_thread_store_registers)
9482 (aix_thread_xfer_partial, aix_thread_mourn_inferior)
9483 (aix_thread_thread_alive, aix_thread_pid_to_str)
9484 (aix_thread_extra_thread_info, aix_thread_get_ada_task_ptid):
9485 Refactor as methods of aix_thread_target.
9486 (init_aix_thread_ops): Delete.
9487 (_initialize_aix_thread): Remove references to init_aix_thread_ops
9488 and complete_target_initialization.
9489 * rs6000-nat.c (rs6000_xfer_shared_libraries): Delete.
9490 (rs6000_nat_target): New class.
9491 (the_rs6000_nat_target): New.
9492 (rs6000_fetch_inferior_registers, rs6000_store_inferior_registers)
9493 (rs6000_xfer_partial, rs6000_wait, rs6000_create_inferior)
9494 (rs6000_xfer_shared_libraries): Refactor as rs6000_nat_target methods.
9495 (super_create_inferior): Delete.
9496 (_initialize_rs6000_nat): Adjust to C++ification.
9498 * arm-linux-nat.c (arm_linux_nat_target): New class.
9499 (the_arm_linux_nat_target): New.
9500 (arm_linux_fetch_inferior_registers)
9501 (arm_linux_store_inferior_registers, arm_linux_read_description)
9502 (arm_linux_can_use_hw_breakpoint, arm_linux_insert_hw_breakpoint)
9503 (arm_linux_remove_hw_breakpoint)
9504 (arm_linux_region_ok_for_hw_watchpoint)
9505 (arm_linux_insert_watchpoint, arm_linux_remove_watchpoint)
9506 (arm_linux_stopped_data_address, arm_linux_stopped_by_watchpoint)
9507 (arm_linux_watchpoint_addr_within_range): Refactor as methods of
9508 arm_linux_nat_target.
9509 (_initialize_arm_linux_nat): Adjust to C++ification.
9511 * aarch64-linux-nat.c (aarch64_linux_nat_target): New class.
9512 (the_aarch64_linux_nat_target): New.
9513 (aarch64_linux_fetch_inferior_registers)
9514 (aarch64_linux_store_inferior_registers)
9515 (aarch64_linux_child_post_startup_inferior)
9516 (aarch64_linux_read_description)
9517 (aarch64_linux_can_use_hw_breakpoint)
9518 (aarch64_linux_insert_hw_breakpoint)
9519 (aarch64_linux_remove_hw_breakpoint)
9520 (aarch64_linux_insert_watchpoint, aarch64_linux_remove_watchpoint)
9521 (aarch64_linux_region_ok_for_hw_watchpoint)
9522 (aarch64_linux_stopped_data_address)
9523 (aarch64_linux_stopped_by_watchpoint)
9524 (aarch64_linux_watchpoint_addr_within_range)
9525 (aarch64_linux_can_do_single_step): Refactor as methods of
9526 aarch64_linux_nat_target.
9527 (super_post_startup_inferior): Delete.
9528 (_initialize_aarch64_linux_nat): Adjust to C++ification.
9530 * hppa-linux-nat.c (hppa_linux_nat_target): New class.
9531 (the_hppa_linux_nat_target): New.
9532 (hppa_linux_fetch_inferior_registers)
9533 (hppa_linux_store_inferior_registers): Refactor as methods of
9534 hppa_linux_nat_target.
9535 (_initialize_hppa_linux_nat): Adjust to C++ification.
9537 * ia64-linux-nat.c (ia64_linux_nat_target): New class.
9538 (the_ia64_linux_nat_target): New.
9539 (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint)
9540 (ia64_linux_stopped_data_address)
9541 (ia64_linux_stopped_by_watchpoint, ia64_linux_fetch_registers)
9542 (ia64_linux_store_registers, ia64_linux_xfer_partial): Refactor as
9543 ia64_linux_nat_target methods.
9544 (super_xfer_partial): Delete.
9545 (_initialize_ia64_linux_nat): Adjust to C++ification.
9547 * m32r-linux-nat.c (m32r_linux_nat_target): New class.
9548 (the_m32r_linux_nat_target): New.
9549 (m32r_linux_fetch_inferior_registers)
9550 (m32r_linux_store_inferior_registers): Refactor as
9551 m32r_linux_nat_target methods.
9552 (_initialize_m32r_linux_nat): Adjust to C++ification.
9554 * m68k-linux-nat.c (m68k_linux_nat_target): New class.
9555 (the_m68k_linux_nat_target): New.
9556 (m68k_linux_fetch_inferior_registers)
9557 (m68k_linux_store_inferior_registers): Refactor as
9558 m68k_linux_nat_target methods.
9559 (_initialize_m68k_linux_nat): Adjust to C++ification.
9561 * s390-linux-nat.c (s390_linux_nat_target): New class.
9562 (the_s390_linux_nat_target): New.
9563 (s390_linux_fetch_inferior_registers)
9564 (s390_linux_store_inferior_registers, s390_stopped_by_watchpoint)
9565 (s390_insert_watchpoint, s390_remove_watchpoint)
9566 (s390_can_use_hw_breakpoint, s390_insert_hw_breakpoint)
9567 (s390_remove_hw_breakpoint, s390_region_ok_for_hw_watchpoint)
9568 (s390_auxv_parse, s390_read_description): Refactor as methods of
9569 s390_linux_nat_target.
9570 (_initialize_s390_nat): Adjust to C++ification.
9572 * sparc-linux-nat.c (sparc_linux_nat_target): New class.
9573 (the_sparc_linux_nat_target): New.
9574 (_initialize_sparc_linux_nat): Adjust to C++ification.
9575 * sparc-nat.c (sparc_fetch_inferior_registers)
9576 (sparc_store_inferior_registers): Remove target_ops parameter.
9577 * sparc-nat.h (sparc_fetch_inferior_registers)
9578 (sparc_store_inferior_registers): Remove target_ops parameter.
9579 * sparc64-linux-nat.c (sparc64_linux_nat_target): New class.
9580 (the_sparc64_linux_nat_target): New.
9581 (_initialize_sparc64_linux_nat): Adjust to C++ification.
9583 * spu-linux-nat.c (spu_linux_nat_target): New class.
9584 (the_spu_linux_nat_target): New.
9585 (spu_child_post_startup_inferior, spu_child_post_attach)
9586 (spu_child_wait, spu_fetch_inferior_registers)
9587 (spu_store_inferior_registers, spu_xfer_partial)
9588 (spu_can_use_hw_breakpoint): Refactor as spu_linux_nat_target
9590 (_initialize_spu_nat): Adjust to C++ification.
9592 * tilegx-linux-nat.c (tilegx_linux_nat_target): New class.
9593 (the_tilegx_linux_nat_target): New.
9594 (fetch_inferior_registers, store_inferior_registers):
9595 Refactor as methods.
9596 (_initialize_tile_linux_nat): Adjust to C++ification.
9598 * xtensa-linux-nat.c (xtensa_linux_nat_target): New class.
9599 (the_xtensa_linux_nat_target): New.
9600 (xtensa_linux_fetch_inferior_registers)
9601 (xtensa_linux_store_inferior_registers): Refactor as
9602 xtensa_linux_nat_target methods.
9603 (_initialize_xtensa_linux_nat): Adjust to C++ification.
9605 * fbsd-nat.c (USE_SIGTRAP_SIGINFO): Delete.
9606 (fbsd_pid_to_exec_file, fbsd_find_memory_regions)
9607 (fbsd_find_memory_regions, fbsd_info_proc, fbsd_xfer_partial)
9608 (fbsd_thread_alive, fbsd_pid_to_str, fbsd_thread_name)
9609 (fbsd_update_thread_list, fbsd_resume, fbsd_wait)
9610 (fbsd_stopped_by_sw_breakpoint)
9611 (fbsd_supports_stopped_by_sw_breakpoint, fbsd_follow_fork)
9612 (fbsd_insert_fork_catchpoint, fbsd_remove_fork_catchpoint)
9613 (fbsd_insert_vfork_catchpoint, fbsd_remove_vfork_catchpoint)
9614 (fbsd_post_startup_inferior, fbsd_post_attach)
9615 (fbsd_insert_exec_catchpoint, fbsd_remove_exec_catchpoint)
9616 (fbsd_set_syscall_catchpoint)
9617 (super_xfer_partial, super_resume, super_wait)
9618 (fbsd_supports_stopped_by_hw_breakpoint): Delete.
9619 (fbsd_handle_debug_trap): Remove target_ops parameter.
9620 (fbsd_nat_add_target): Delete.
9621 * fbsd-nat.h: Include "inf-ptrace.h".
9622 (fbsd_nat_add_target): Delete.
9623 (USE_SIGTRAP_SIGINFO): Define.
9624 (fbsd_nat_target): New class.
9626 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers)
9627 (amd64bsd_store_inferior_registers): Remove target_ops parameter.
9628 (amd64bsd_target): Delete.
9629 * amd64-bsd-nat.h: New file.
9630 * amd64-fbsd-nat.c: Include "amd64-bsd-nat.h" instead of
9632 (amd64_fbsd_nat_target): New class.
9633 (the_amd64_fbsd_nat_target): New.
9634 (amd64fbsd_read_description): Refactor as method of
9635 amd64_fbsd_nat_target.
9636 (amd64_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9637 (_initialize_amd64fbsd_nat): Adjust to C++ification.
9638 * amd64-nat.h (amd64bsd_target): Delete function declaration.
9639 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers)
9640 (i386bsd_store_inferior_registers): Remove target_ops parameter.
9641 (i386bsd_target): Delete.
9642 * i386-bsd-nat.h (i386bsd_target): Delete function declaration.
9643 (i386bsd_fetch_inferior_registers)
9644 (i386bsd_store_inferior_registers): Declare.
9645 (i386_bsd_nat_target): New class.
9646 * i386-fbsd-nat.c (i386_fbsd_nat_target): New class.
9647 (the_i386_fbsd_nat_target): New.
9648 (i386fbsd_resume, i386fbsd_read_description): Refactor as
9649 i386_fbsd_nat_target methods.
9650 (i386_fbsd_nat_target::supports_stopped_by_hw_breakpoint): New.
9651 (_initialize_i386fbsd_nat): Adjust to C++ification.
9652 * x86-bsd-nat.c (super_mourn_inferior): Delete.
9653 (x86bsd_mourn_inferior, x86bsd_target): Delete.
9654 (_initialize_x86_bsd_nat): Adjust to C++ification.
9655 * x86-bsd-nat.h: Include "x86-nat.h".
9656 (x86bsd_target): Delete declaration.
9657 (x86bsd_nat_target): New class.
9659 * aarch64-fbsd-nat.c (aarch64_fbsd_nat_target): New class.
9660 (the_aarch64_fbsd_nat_target): New.
9661 (aarch64_fbsd_fetch_inferior_registers)
9662 (aarch64_fbsd_store_inferior_registers): Refactor as methods of
9663 aarch64_fbsd_nat_target.
9664 (_initialize_aarch64_fbsd_nat): Adjust to C++ification.
9665 * alpha-bsd-nat.c (alpha_bsd_nat_target): New class.
9666 (the_alpha_bsd_nat_target): New.
9667 (alphabsd_fetch_inferior_registers)
9668 (alphabsd_store_inferior_registers): Refactor as
9669 alpha_bsd_nat_target methods.
9670 (_initialize_alphabsd_nat): Refactor as methods of
9671 alpha_bsd_nat_target.
9672 * amd64-nbsd-nat.c: Include "amd64-bsd-nat.h".
9673 (the_amd64_nbsd_nat_target): New.
9674 (_initialize_amd64nbsd_nat): Adjust to C++ification.
9675 * amd64-obsd-nat.c: Include "amd64-bsd-nat.h".
9676 (the_amd64_obsd_nat_target): New.
9677 (_initialize_amd64obsd_nat): Adjust to C++ification.
9678 * arm-fbsd-nat.c (arm_fbsd_nat_target): New.
9679 (the_arm_fbsd_nat_target): New.
9680 (arm_fbsd_fetch_inferior_registers)
9681 (arm_fbsd_store_inferior_registers, arm_fbsd_read_description):
9682 (_initialize_arm_fbsd_nat): Refactor as methods of
9683 arm_fbsd_nat_target.
9684 (_initialize_arm_fbsd_nat): Adjust to C++ification.
9685 * arm-nbsd-nat.c (arm_netbsd_nat_target): New class.
9686 (the_arm_netbsd_nat_target): New.
9687 (armnbsd_fetch_registers, armnbsd_store_registers): Refactor as
9688 arm_netbsd_nat_target.
9689 (_initialize_arm_netbsd_nat): Adjust to C++ification.
9690 * hppa-nbsd-nat.c (hppa_nbsd_nat_target): New class.
9691 (the_hppa_nbsd_nat_target): New.
9692 (hppanbsd_fetch_registers, hppanbsd_store_registers): Refactor as
9693 hppa_nbsd_nat_target methods.
9694 (_initialize_hppanbsd_nat): Adjust to C++ification.
9695 * hppa-obsd-nat.c (hppa_obsd_nat_target): New class.
9696 (the_hppa_obsd_nat_target): New.
9697 (hppaobsd_fetch_registers, hppaobsd_store_registers): Refactor as
9698 methods of hppa_obsd_nat_target.
9699 (_initialize_hppaobsd_nat): Adjust to C++ification. Use
9701 * i386-nbsd-nat.c (the_i386_nbsd_nat_target): New.
9702 (_initialize_i386nbsd_nat): Adjust to C++ification. Use
9704 * i386-obsd-nat.c (the_i386_obsd_nat_target): New.
9705 (_initialize_i386obsd_nat): Use add_target.
9706 * m68k-bsd-nat.c (m68k_bsd_nat_target): New class.
9707 (the_m68k_bsd_nat_target): New.
9708 (m68kbsd_fetch_inferior_registers)
9709 (m68kbsd_store_inferior_registers): Refactor as methods of
9710 m68k_bsd_nat_target.
9711 (_initialize_m68kbsd_nat): Adjust to C++ification.
9712 * mips-fbsd-nat.c (mips_fbsd_nat_target): New class.
9713 (the_mips_fbsd_nat_target): New.
9714 (mips_fbsd_fetch_inferior_registers)
9715 (mips_fbsd_store_inferior_registers): Refactor as methods of
9716 mips_fbsd_nat_target.
9717 (_initialize_mips_fbsd_nat): Adjust to C++ification. Use
9719 * mips-nbsd-nat.c (mips_nbsd_nat_target): New class.
9720 (the_mips_nbsd_nat_target): New.
9721 (mipsnbsd_fetch_inferior_registers)
9722 (mipsnbsd_store_inferior_registers): Refactor as methods of
9723 mips_nbsd_nat_target.
9724 (_initialize_mipsnbsd_nat): Adjust to C++ification.
9725 * mips64-obsd-nat.c (mips64_obsd_nat_target): New class.
9726 (the_mips64_obsd_nat_target): New.
9727 (mips64obsd_fetch_inferior_registers)
9728 (mips64obsd_store_inferior_registers): Refactor as methods of
9729 mips64_obsd_nat_target.
9730 (_initialize_mips64obsd_nat): Adjust to C++ification. Use
9732 * nbsd-nat.c (nbsd_pid_to_exec_file): Refactor as method of
9734 * nbsd-nat.h: Include "inf-ptrace.h".
9735 (nbsd_nat_target): New class.
9736 * obsd-nat.c (obsd_pid_to_str, obsd_update_thread_list)
9737 (obsd_wait): Refactor as methods of obsd_nat_target.
9738 (obsd_add_target): Delete.
9739 * obsd-nat.h: Include "inf-ptrace.h".
9740 (obsd_nat_target): New class.
9741 * ppc-fbsd-nat.c (ppc_fbsd_nat_target): New class.
9742 (the_ppc_fbsd_nat_target): New.
9743 (ppcfbsd_fetch_inferior_registers)
9744 (ppcfbsd_store_inferior_registers): Refactor as methods of
9745 ppc_fbsd_nat_target.
9746 (_initialize_ppcfbsd_nat): Adjust to C++ification. Use
9748 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): New class.
9749 (the_ppc_nbsd_nat_target): New.
9750 (ppcnbsd_fetch_inferior_registers)
9751 (ppcnbsd_store_inferior_registers): Refactor as methods of
9752 ppc_nbsd_nat_target.
9753 (_initialize_ppcnbsd_nat): Adjust to C++ification.
9754 * ppc-obsd-nat.c (ppc_obsd_nat_target): New class.
9755 (the_ppc_obsd_nat_target): New.
9756 (ppcobsd_fetch_registers, ppcobsd_store_registers): Refactor as
9757 methods of ppc_obsd_nat_target.
9758 (_initialize_ppcobsd_nat): Adjust to C++ification. Use
9760 * sh-nbsd-nat.c (sh_nbsd_nat_target): New class.
9761 (the_sh_nbsd_nat_target): New.
9762 (shnbsd_fetch_inferior_registers)
9763 (shnbsd_store_inferior_registers): Refactor as methods of
9765 (_initialize_shnbsd_nat): Adjust to C++ification.
9766 * sparc-nat.c (sparc_xfer_wcookie): Make extern.
9767 (inf_ptrace_xfer_partial): Delete.
9768 (sparc_xfer_partial, sparc_target): Delete.
9769 * sparc-nat.h (sparc_fetch_inferior_registers)
9770 (sparc_store_inferior_registers, sparc_xfer_wcookie): Declare.
9771 (sparc_target): Delete function declaration.
9772 (sparc_target): New template class.
9773 * sparc-nbsd-nat.c (the_sparc_nbsd_nat_target): New.
9774 (_initialize_sparcnbsd_nat): Adjust to C++ification.
9775 * sparc64-fbsd-nat.c (the_sparc64_fbsd_nat_target): New.
9776 (_initialize_sparc64fbsd_nat): Adjust to C++ification. Use
9778 * sparc64-nbsd-nat.c (the_sparc64_nbsd_nat_target): New.
9779 (_initialize_sparc64nbsd_nat): Adjust to C++ification.
9780 * sparc64-obsd-nat.c (the_sparc64_obsd_nat_target): New.
9781 (_initialize_sparc64obsd_nat): Adjust to C++ification. Use
9783 * vax-bsd-nat.c (vax_bsd_nat_target): New class.
9784 (the_vax_bsd_nat_target): New.
9785 (vaxbsd_fetch_inferior_registers)
9786 (vaxbsd_store_inferior_registers): Refactor as vax_bsd_nat_target
9788 (_initialize_vaxbsd_nat): Adjust to C++ification.
9790 * bsd-kvm.c (bsd_kvm_target): New class.
9791 (bsd_kvm_ops): Now a bsd_kvm_target.
9792 (bsd_kvm_open, bsd_kvm_close, bsd_kvm_xfer_partial)
9793 (bsd_kvm_files_info, bsd_kvm_fetch_registers)
9794 (bsd_kvm_thread_alive, bsd_kvm_pid_to_str): Refactor as methods of
9796 (bsd_kvm_return_one): Delete.
9797 (bsd_kvm_add_target): Adjust to C++ification.
9799 * nto-procfs.c (nto_procfs_target, nto_procfs_target_native)
9800 (nto_procfs_target_procfs): New classes.
9801 (procfs_open_1, procfs_thread_alive, procfs_update_thread_list)
9802 (procfs_files_info, procfs_pid_to_exec_file, procfs_attach)
9803 (procfs_post_attach, procfs_wait, procfs_fetch_registers)
9804 (procfs_xfer_partial, procfs_detach, procfs_insert_breakpoint)
9805 (procfs_remove_breakpoint, procfs_insert_hw_breakpoint)
9806 (procfs_remove_hw_breakpoint, procfs_resume)
9807 (procfs_mourn_inferior, procfs_create_inferior, procfs_interrupt)
9808 (procfs_kill_inferior, procfs_store_registers)
9809 (procfs_pass_signals, procfs_pid_to_str, procfs_can_run): Refactor
9810 as methods of nto_procfs_target.
9811 (nto_procfs_ops): Now an nto_procfs_target_procfs.
9812 (nto_native_ops): Delete.
9813 (procfs_open, procfs_native_open): Delete.
9814 (nto_native_ops): Now an nto_procfs_target_native.
9815 (init_procfs_targets): Adjust to C++ification.
9816 (procfs_can_use_hw_breakpoint, procfs_remove_hw_watchpoint)
9817 (procfs_insert_hw_watchpoint, procfs_stopped_by_watchpoint):
9818 Refactor as methods of nto_procfs_target.
9820 * go32-nat.c (go32_nat_target): New class.
9821 (the_go32_nat_target): New.
9822 (go32_attach, go32_resume, go32_wait, go32_fetch_registers)
9823 (go32_store_registers, go32_xfer_partial, go32_files_info)
9824 (go32_kill_inferior, go32_create_inferior, go32_mourn_inferior)
9825 (go32_terminal_init, go32_terminal_info, go32_terminal_inferior)
9826 (go32_terminal_ours, go32_pass_ctrlc, go32_thread_alive)
9827 (go32_pid_to_str): Refactor as methods of go32_nat_target.
9828 (go32_target): Delete.
9829 (_initialize_go32_nat): Adjust to C++ification.
9831 * gnu-nat.c (gnu_wait, gnu_resume, gnu_kill_inferior)
9832 (gnu_mourn_inferior, gnu_create_inferior, gnu_attach, gnu_detach)
9833 (gnu_stop, gnu_thread_alive, gnu_xfer_partial)
9834 (gnu_find_memory_regions, gnu_pid_to_str): Refactor as methods of
9836 (gnu_target): Delete.
9837 * gnu-nat.h (gnu_target): Delete.
9838 (gnu_nat_target): New class.
9839 * i386-gnu-nat.c (gnu_base_target): New.
9840 (i386_gnu_nat_target): New class.
9841 (the_i386_gnu_nat_target): New.
9842 (_initialize_i386gnu_nat): Adjust to C++ification.
9844 2018-05-02 Pedro Alves <palves@redhat.com>
9846 * bfd-target.c (target_bfd_xclose): Rename to ...
9847 (target_bfd_close): ... this.
9848 (target_bfd_reopen): Adjust.
9849 * target.c (target_close): Remove references to to_xclose.
9850 * target.h (target_ops::to_xclose): Delete.
9851 (target_ops::to_close): Update comments.
9853 2018-05-02 Pedro Alves <palves@redhat.com>
9855 * alpha-linux-nat.c: Include "linux-nat-trad.h" instead of
9857 * configure.nat (alpha-linux, linux-mips): Add linux-nat-trad.o.
9858 * inf-ptrace.c (inf_ptrace_register_u_offset)
9859 (inf_ptrace_fetch_register, inf_ptrace_fetch_registers)
9860 (inf_ptrace_store_register, inf_ptrace_store_registers)
9861 (inf_ptrace_trad_target): Move to ...
9862 * linux-nat-trad.c: ... this new file.
9863 * linux-nat-trad.h: New file.
9864 * linux-nat.c (linux_target_install_ops): Make extern.
9865 (linux_trad_target): Delete.
9866 * linux-nat.h (linux_trad_target): Delete declaration.
9867 (linux_target_install_ops): Declare.
9868 * mips-linux-nat.c: Include "linux-nat-trad.h" instead of
9871 2018-05-02 Pedro Alves <palves@redhat.com>
9873 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9874 procfs_target/add_target here.
9875 * procfs.c (procfs_target): Make static.
9876 (_initialize_procfs): Call add_target here.
9877 * procfs.h (struct target_ops): Remove forward declaration.
9878 (procfs_target): Remove declaration.
9879 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Delete.
9881 2018-05-02 Pedro Alves <palves@redhat.com>
9883 * procfs.c (procfs_stopped_by_watchpoint)
9884 (procfs_insert_watchpoint, procfs_remove_watchpoint)
9885 (procfs_region_ok_for_hw_watchpoint, procfs_stopped_data_address):
9887 (procfs_use_watchpoints): Delete, move contents...
9888 (procfs_target): ... here.
9889 * procfs.h (procfs_use_watchpoints): Delete declaration.
9890 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Don't call
9891 procfs_use_watchpoints.
9892 * sparc-sol2-nat.c (_initialize_sparc_sol2_nat): Don't call
9893 procfs_use_watchpoints.
9895 2018-05-02 Tom Tromey <tom@tromey.com>
9898 * python/python.c (gdbpy_parameter_value): Handle var_zuinteger
9899 and var_zuinteger_unlimited.
9900 * python/py-param.c (struct parm_constant): Add PARAM_ZUINTEGER
9901 and PARAM_ZUINTEGER_UNLIMITED.
9902 (set_parameter_value): Handle var_zuinteger and
9903 var_zuinteger_unlimited.
9904 (add_setshow_generic): Likewise.
9905 (parmpy_init): Likewise.
9907 2018-04-28 Dan Robertson <danlrobertson89@gmail.com>
9910 * gdb/rust-exp.y (convert_params_to_types): Ensure that the params
9911 pointer is not null before dereferencing it.
9913 2018-04-30 Tom Tromey <tom@tromey.com>
9915 * darwin-nat-info.c (darwin_debug_regions_recurse): Remove use of
9918 2018-04-30 Tom Tromey <tom@tromey.com>
9920 * breakpoint.c (mention): Remove use of is_mi_like_p.
9921 (print_mention_ranged_breakpoint): Likewise.
9922 * break-catch-throw.c (print_it_exception_catchpoint): Remove use
9925 2018-04-30 Tom Tromey <tom@tromey.com>
9927 * tracepoint.c (tvariables_info_1): Remove use of is_mi_like_p.
9929 2018-04-30 Tom Tromey <tom@tromey.com>
9931 * spu-tdep.c (info_spu_mailbox_list, info_spu_dma_cmdlist)
9932 (info_spu_event_command): Remove some uses of is_mi_like_p.
9934 2018-04-30 Tom Tromey <tom@tromey.com>
9936 * python/py-framefilter.c (py_print_single_arg)
9937 (enumerate_locals, py_print_args, py_print_frame): Remove some
9938 uses of is_mi_like_p.
9940 2018-04-30 Tom Tromey <tom@tromey.com>
9943 * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
9944 * ui-out.h (ui_out::is_mi_like_p): Now const.
9945 (ui_out::do_is_mi_like_p): Now const.
9946 * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
9948 2018-04-30 Tom Tromey <tom@tromey.com>
9950 * varobj.c (varobj_set_visualizer): Use new_reference.
9951 * python/python.c (gdbpy_decode_line): Use new_reference.
9952 * python/py-cmd.c (cmdpy_function, cmdpy_completer_helper): Use
9955 2018-04-30 Tom Tromey <tom@tromey.com>
9957 * varobj.c (install_new_value): Use new_reference.
9958 * value.h (value_incref): Return void. Swap intro comment with
9960 * value.c (set_value_parent): Use new_reference.
9961 (value_incref): Return void. Update intro comment.
9962 (release_value): Use new_reference.
9963 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use new_reference.
9965 2018-04-30 Tom Tromey <tom@tromey.com>
9967 * symfile-mem.c (symbol_file_add_from_memory): Use new_reference.
9968 * gdb_bfd.h (new_bfd_ref): Remove.
9969 (gdb_bfd_open): Update comment.
9970 * gdb_bfd.c (gdb_bfd_open, gdb_bfd_fopen, gdb_bfd_openr)
9971 (gdb_bfd_openw, gdb_bfd_openr_iovec, gdb_bfd_record_inclusion)
9972 (gdb_bfd_fdopenr): Use new_reference.
9973 * exec.c (exec_file_attach): Use new_reference.
9975 2018-04-30 Tom Tromey <tom@tromey.com>
9977 * common/gdb_ref_ptr.h (ref_ptr::new_reference): New static
9980 2018-04-30 Tom Tromey <tom@tromey.com>
9982 * jit.c (jit_read_code_entry): Use type_align.
9983 * i386-tdep.c (i386_gdbarch_init): Don't call
9984 set_gdbarch_long_long_align_bit.
9985 * gdbarch.sh: Remove long_long_align_bit.
9986 * gdbarch.c, gdbarch.h: Rebuild.
9987 * arc-tdep.c (arc_type_align): New function.
9988 (arc_gdbarch_init): Use arc_type_align. Don't call
9989 set_gdbarch_long_long_align_bit.
9991 2018-04-30 Tom Tromey <tom@tromey.com>
9993 * rust-lang.c (rust_type_alignment): Remove.
9994 (rust_composite_type): Use type_align.
9996 2018-04-30 Tom Tromey <tom@tromey.com>
9998 * NEWS: Mention Type.align.
9999 * python/py-type.c (typy_get_alignof): New function.
10000 (type_object_getset): Add "alignof".
10002 2018-04-30 Tom Tromey <tom@tromey.com>
10006 * std-operator.def (UNOP_ALIGNOF): New operator.
10007 * expprint.c (dump_subexp_body_standard) <case UNOP_ALIGNOF>:
10009 * eval.c (evaluate_subexp_standard) <case UNOP_ALIGNOF>: New.
10010 * c-lang.c (c_op_print_tab): Add alignof.
10011 * c-exp.y (ALIGNOF): New token.
10012 (exp): Add "ALIGNOF" production.
10013 (ident_tokens): Add _Alignof and alignof.
10015 2018-04-30 Tom Tromey <tom@tromey.com>
10017 * i386-tdep.c (i386_type_align): New function.
10018 (i386_gdbarch_init): Update.
10019 * gdbarch.sh (type_align): New method.
10020 * gdbarch.c, gdbarch.h: Rebuild.
10021 * arch-utils.h (default_type_align): Declare.
10022 * arch-utils.c (default_type_align): New function.
10023 * gdbtypes.h (TYPE_ALIGN_BITS): New define.
10024 (struct type) <align_log2>: New field.
10025 <instance_flags>: Now a bitfield.
10026 (TYPE_RAW_ALIGN): New macro.
10027 (type_align, type_raw_align, set_type_align): Declare.
10028 * gdbtypes.c (type_align, type_raw_align, set_type_align): New
10030 * dwarf2read.c (quirk_rust_enum): Set type alignment.
10031 (get_alignment, maybe_set_alignment): New functions.
10032 (read_structure_type, read_enumeration_type, read_array_type)
10033 (read_set_type, read_tag_pointer_type, read_tag_reference_type)
10034 (read_subrange_type, read_base_type): Set type alignment.
10036 2018-04-30 Simon Marchi <simon.marchi@ericsson.com>
10038 * dwarf2read.c (read_index_from_section): Use bool.
10040 2018-04-29 Fabian Groffen <grobian@gentoo.org>
10043 * proc-events.c (init_syscall_table): Guard usage os SYS_uuidsys
10046 2018-04-29 John Reiser <jreiser@BitWagon.com>
10049 * gdb/Makefile.in: (.c:.l, .c:.y): Write the target only in the
10050 last step, and do it atomically.
10052 2018-04-27 Alexandre Oliva <aoliva@redhat.com>
10054 * compile/compile-c-types.c (convert_int, convert_float):
10055 Update for C FE v1.
10057 2018-04-27 Tom Tromey <tom@tromey.com>
10060 * rust-lang.c (rust_inclusive_range_type_p): New function.
10061 (rust_range): Handle inclusive ranges.
10062 (rust_compute_range): Likewise.
10063 * rust-exp.y (struct rust_op) <inclusive>: New field.
10064 (DOTDOTEQ): New constant.
10065 (range_expr): Add "..=" productions.
10066 (operator_tokens): Add "..=" token.
10067 (ast_range): Add "inclusive" parameter.
10068 (convert_ast_to_expression) <case OP_RANGE>: Handle inclusive
10070 * parse.c (operator_length_standard) <case OP_RANGE>: Handle new
10072 * expression.h (enum range_type) <NONE_BOUND_DEFAULT_EXCLUSIVE,
10073 LOW_BOUND_DEFAULT_EXCLUSIVE>: New constants.
10075 * expprint.c (print_subexp_standard): Handle new bounds values.
10076 (dump_subexp_body_standard): Likewise.
10078 2018-04-27 Tom Tromey <tom@tromey.com>
10080 * configure: Rebuild.
10081 * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override.
10082 * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not
10084 (class symbol_needs_eval_context): Likewise.
10085 * dwarf2read.c (mock_mapped_index::symbol_name_count)
10086 (mock_mapped_index::symbol_name_at): Use "override". Remove
10088 * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use
10090 (class dwarf_expr_executor): Use "override", not "OVERRIDE".
10091 * aarch64-tdep.c (instruction_reader::read): Use "override".
10092 (instruction_reader_test::read): Likewise.
10093 * arm-tdep.c (instruction_reader::read): Use "override".
10094 (instruction_reader_thumb::read): Likewise.
10096 2018-04-26 Andrzej Kaczmarek <andrzej.kaczmarek@codecoup.pl>
10099 * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result
10100 instead of remote_send.
10101 (remote_send): Remove.
10103 2018-04-26 Pedro Alves <palves@redhat.com>
10105 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use
10106 find_function_start_sal instead of find_pc_line.
10108 2018-04-26 Pedro Alves <palves@redhat.com>
10110 * breakpoint.c (set_breakpoint_location_function): Handle
10111 mst_data_gnu_ifunc.
10112 * c-exp.y (variable production): Handle mst_data_gnu_ifunc.
10113 * elfread.c (elf_symtab_read): Give data symbols with
10114 BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type.
10115 (elf_rel_plt_read): Update comment.
10116 * linespec.c (convert_linespec_to_sals): Handle
10117 mst_data_gnu_ifunc.
10118 (minsym_found): Handle mst_data_gnu_ifunc.
10119 * minsyms.c (msymbol_is_function, minimal_symbol_reader::record)
10120 (find_solib_trampoline_target): Handle mst_data_gnu_ifunc.
10121 * parse.c (find_minsym_type_and_address): Handle
10122 mst_data_gnu_ifunc.
10123 * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc.
10124 * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc.
10125 * symtab.h (minimal_symbol_type) <mst_text_gnu_ifunc>: Update
10127 <mst_data_gnu_ifunc>: New enumerator.
10129 2018-04-26 Pedro Alves <palves@redhat.com>
10131 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ...
10132 (lookup_minimal_symbol_by_pc_section): ... this. Replace
10133 'want_trampoline' parameter by a lookup_msym_prefer parameter.
10135 (lookup_minimal_symbol_by_pc_section): Delete old implementation.
10136 (lookup_minimal_symbol_by_pc): Adjust.
10137 (in_gnu_ifunc_stub): Prefer GNU ifunc symbols.
10138 (lookup_solib_trampoline_symbol_by_pc): Adjust.
10139 * minsyms.h (lookup_msym_prefer): New enum.
10140 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10141 parameter by a lookup_msym_prefer parameter.
10143 2018-04-26 Pedro Alves <palves@redhat.com>
10145 * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name
10146 ends in "@plt" instead of looking at the symbol's section.
10148 2018-04-26 Pedro Alves <palves@redhat.com>
10150 * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove
10152 (find_pc_partial_function_gnu_ifunc): Rename to ...
10153 (find_pc_partial_function): ... this, and remove references to
10155 (find_pc_partial_function): Delete old implementation.
10156 * symtab.h (find_pc_partial_function_gnu_ifunc): Delete.
10158 2018-04-26 Pedro Alves <palves@redhat.com>
10160 * linespec.c (struct bound_minimal_symbol_search_key): New.
10161 (convert_linespec_to_sals): Sort minimal symbols earlier. Don't
10162 skip first line if we found a GNU ifunc minimal symbol by name.
10163 (compare_msymbols): Change parameters to work with a destructured
10165 (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New
10168 2018-04-26 Pedro Alves <palves@redhat.com>
10170 * breakpoint.c (set_breakpoint_location_function): Don't resolve
10171 ifunc targets here. Instead, if we have an ifunc minsym, use its
10173 (add_location_to_breakpoint): Store the minsym and the objfile in
10174 the breakpoint location.
10175 * breakpoint.h (bp_location) <msymbol, objfile>: New fields.
10176 * linespec.c (minsym_found): Resolve GNU ifunc targets here.
10177 Record the minsym in the sal.
10178 * symtab.h (symtab_and_line) <msymbol>: New field.
10180 2018-04-26 Pedro Alves <palves@redhat.com>
10182 * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P
10183 unless we actually resolved the ifunc.
10185 2018-04-26 Pedro Alves <palves@redhat.com>
10187 * c-exp.y (variable production): Prefer ifunc minsyms over
10188 regular function symbols.
10189 * symtab.c (find_gnu_ifunc): New function.
10190 * minsyms.h (lookup_msym_prefer): New enum.
10191 (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline'
10192 parameter by a lookup_msym_prefer parameter.
10193 * symtab.h (find_gnu_ifunc): New declaration.
10195 2018-04-26 Pedro Alves <palves@redhat.com>
10197 * blockframe.c (find_gnu_ifunc_target_type): New function.
10198 (find_function_type): New.
10199 * eval.c (evaluate_var_msym_value): For GNU ifunc types, always
10200 return a value with a memory address.
10201 (eval_call): For calls to GNU ifunc functions, try to find the
10202 type of the target function from the type that the resolver
10204 * gdbtypes.c (objfile_type): Don't install a return type for ifunc
10206 * infcall.c (find_function_return_type): Delete.
10207 (find_function_addr): Add 'function_type' parameter. For calls to
10208 GNU ifunc functions, try to find the type of the target function
10209 from the type that the resolver returns, and return it via
10211 (call_function_by_hand_dummy): Adjust to use the function type
10212 returned by find_function_addr.
10213 (find_function_addr): Add 'function_type' parameter and move
10215 * symtab.h (find_function_type, find_gnu_ifunc_target_type): New
10218 2018-04-26 Pedro Alves <palves@redhat.com>
10220 * c-exp.y (variable production): Skip finding an alias for ifunc
10223 2018-04-26 Pedro Alves <palves@redhat.com>
10225 * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too.
10227 2018-04-25 Pedro Alves <palves@redhat.com>
10229 * infcmd.c (kill_command): Print the pid as string, not the whole
10230 thread's ptid. Add comment. s/has been killed/killed/ in output
10232 * remote.c (remote_detach_1): Print the pid as string, not the
10233 whole thread's ptid.
10235 2018-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10236 Sergio Durigan Junior <sergiodj@redhat.com>
10237 Pedro Alves <palves@redhat.com>
10239 * infcmd.c (kill_command): Print message when inferior has
10241 * inferior.c (print_inferior_events): Remove 'static'. Set as
10243 (add_inferior): Improve message printed when
10244 'print_inferior_events' is on.
10245 (exit_inferior): Remove message printed when
10246 'print_inferior_events' is on.
10247 (detach_inferior): Improve message printed when
10248 'print_inferior_events' is on.
10249 (initialize_inferiors): Use 'add_inferior_silent' to set
10250 'current_inferior_'.
10251 * inferior.h (print_inferior_events): Declare here as
10253 * infrun.c (follow_fork_inferior): Print '[Attaching...]' or
10254 '[Detaching...]' messages when 'print_inferior_events' is on.
10255 Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']'
10256 as prefix/suffix for messages. Remove periods. Fix erroneous
10257 'Detaching after fork from child...', replace it by '... from
10259 (handle_vfork_child_exec_or_exit): Add '[' and ']' as
10260 prefix/suffix when printing 'Detaching...' messages. Print
10261 them when 'print_inferior_events' is on.
10262 * remote.c (remote_detach_1): Print message when detaching
10263 from inferior and '!is_fork_parent'.
10265 2018-04-24 Tom Tromey <tom@tromey.com>
10267 * cli-out.h: Reindent.
10269 2018-04-24 Tom Tromey <tom@tromey.com>
10271 * cli-out.c (cli_ui_out::out_field_fmt): Remove.
10272 (cli_ui_out::do_field_string): Use fputs_filtered.
10273 * cli-out.h (class cli_ui_out) <out_field_fmt>: Remove.
10275 2018-04-23 Tom Tromey <tom@tromey.com>
10277 * guile/scm-frame.c (gdbscm_frame_read_var): Use
10278 gdb::unique_xmalloc_ptr.
10280 2018-04-23 Tom Tromey <tom@tromey.com>
10282 * configure: Rebuild.
10284 2018-04-22 Rajendra SY <rajendra.sy@gmail.com>
10287 * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to
10288 prepare_for_testing. Set normal_bp to r_debug_state if target
10291 2018-04-21 Pedro Alves <palves@redhat.com>
10292 Rajendra SY <rajendra.sy@gmail.com>
10294 * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing.
10295 * remote.c (extended_remote_attach): In all-stop mode, mark the
10296 thread as executing.
10298 2018-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10300 * thread.c (thread_apply_all_command): Fix comment.
10301 (thread_command): Fix comment.
10303 2018-04-10 Alan Hayward <alan.hayward@arm.com>
10305 * common/tdesc.h (tdesc_create_feature): Remove xml filename
10307 * features/aarch64-core.c (create_feature_aarch64_core):
10309 * features/aarch64-fpu.c (create_feature_aarch64_fpu):
10311 * features/i386/32bit-avx.c (create_feature_i386_32bit_avx):
10313 * features/i386/32bit-avx512.c
10314 (create_feature_i386_32bit_avx512): Likewise.
10315 * features/i386/32bit-core.c (create_feature_i386_32bit_core):
10317 * features/i386/32bit-linux.c (create_feature_i386_32bit_linux):
10319 * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx):
10321 * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys):
10323 * features/i386/32bit-sse.c (create_feature_i386_32bit_sse):
10325 * features/i386/64bit-avx.c (create_feature_i386_64bit_avx):
10327 * features/i386/64bit-avx512.c
10328 (create_feature_i386_64bit_avx512): Likewise.
10329 * features/i386/64bit-core.c (create_feature_i386_64bit_core):
10331 * features/i386/64bit-linux.c (create_feature_i386_64bit_linux):
10333 * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx):
10335 * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys):
10337 * features/i386/64bit-segments.c
10338 (create_feature_i386_64bit_segments): Likewise.
10339 * features/i386/64bit-sse.c (create_feature_i386_64bit_sse):
10341 * features/i386/x32-core.c
10342 (create_feature_i386_x32_core): Likewise.
10343 * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise.
10344 * features/tic6x-core.c (create_feature_tic6x_core): Likewise.
10345 * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise.
10346 * target-descriptions.c: In generated code, don't pass xml
10349 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10351 * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing.
10352 (print_xml_feature::visit_post): Likewise.
10353 (print_xml_feature::visit): Likewise.
10354 * common/tdesc.h (tdesc_get_features_xml): Use const tdesc.
10355 (print_xml_feature): Add new class.
10356 * regformats/regdat.sh: Null xmltarget on feature targets.
10357 * target-descriptions.c (struct target_desc): Add xmltarget.
10358 (maintenance_check_tdesc_xml_convert): Add unittest function.
10359 (tdesc_get_features_xml): Add function to get xml.
10360 (maintenance_check_xml_descriptions): Test xml generation.
10361 * xml-tdesc.c (string_read_description_xml): Add function.
10362 * xml-tdesc.h (string_read_description_xml): Add declaration.
10364 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10366 * features/Makefile: Add feature marker to targets with new style
10367 target descriptions.
10368 * regformats/aarch64.dat: Regenerate.
10369 * regformats/i386/amd64-avx-avx512-linux.dat: Likewise.
10370 * regformats/i386/amd64-avx-linux.dat: Likewise.
10371 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise.
10372 * regformats/i386/amd64-avx-mpx-linux.dat: Likewise.
10373 * regformats/i386/amd64-linux.dat: Likewise.
10374 * regformats/i386/amd64-mpx-linux.dat: Likewise.
10375 * regformats/i386/amd64.dat: Likewise.
10376 * regformats/i386/i386-avx-avx512-linux.dat: Likewise.
10377 * regformats/i386/i386-avx-linux.dat: Likewise.
10378 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise.
10379 * regformats/i386/i386-avx-mpx-linux.dat: Likewise.
10380 * regformats/i386/i386-linux.dat: Likewise.
10381 * regformats/i386/i386-mmx-linux.dat: Likewise.
10382 * regformats/i386/i386-mpx-linux.dat: Likewise.
10383 * regformats/i386/i386.dat: Likewise.
10384 * regformats/i386/x32-avx-avx512-linux.dat: Likewise.
10385 * regformats/i386/x32-avx-linux.dat: Likewise.
10386 * regformats/i386/x32-linux.dat: Likewise.
10387 * regformats/tic6x-c62x-linux.dat: Likewise.
10388 * regformats/tic6x-c64x-linux.dat: Likewise.
10389 * regformats/tic6x-c64xp-linux.dat: Likewise.
10390 * regformats/regdat.sh: Parse feature marker.
10392 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10394 * common/tdesc.h (tdesc_architecture_name): Add new declaration.
10395 (tdesc_osabi_name): Likewise.
10396 * target-descriptions.c (tdesc_architecture_name): Add new
10398 (tdesc_osabi_name): Likewise.
10400 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10402 * common/tdesc.c (tdesc_predefined_type): Move to here.
10403 (tdesc_named_type): Likewise.
10404 (tdesc_create_vector): Likewise.
10405 (tdesc_create_struct): Likewise.
10406 (tdesc_set_struct_size): Likewise.
10407 (tdesc_create_union): Likewise.
10408 (tdesc_create_flags): Likewise.
10409 (tdesc_create_enum): Likewise.
10410 (tdesc_add_field): Likewise.
10411 (tdesc_add_typed_bitfield): Likewise.
10412 (tdesc_add_bitfield): Likewise.
10413 (tdesc_add_flag): Likewise.
10414 (tdesc_add_enum_value): Likewise.
10415 * common/tdesc.h (struct tdesc_type_builtin): Likewise.
10416 (struct tdesc_type_vector): Likewise.
10417 (struct tdesc_type_field): Likewise.
10418 (struct tdesc_type_with_fields): Likewise.
10419 (tdesc_create_enum): Add declaration.
10420 (tdesc_add_typed_bitfield): Likewise.
10421 (tdesc_add_enum_value): Likewise.
10422 * target-descriptions.c (tdesc_type_field): Move from here.
10423 (tdesc_type_builtin): Likewise.
10424 (tdesc_type_vector): Likewise.
10425 (tdesc_type_with_fields): Likewise.
10426 (tdesc_predefined_types): Likewise.
10427 (tdesc_named_type): Likewise.
10428 (tdesc_create_vector): Likewise.
10429 (tdesc_create_struct): Likewise.
10430 (tdesc_set_struct_size): Likewise.
10431 (tdesc_create_union): Likewise.
10432 (tdesc_create_flags): Likewise.
10433 (tdesc_create_enum): Likewise.
10434 (tdesc_add_field): Likewise.
10435 (tdesc_add_typed_bitfield): Likewise.
10436 (tdesc_add_bitfield): Likewise.
10437 (tdesc_add_flag): Likewise.
10438 (tdesc_add_enum_value): Likewise.
10439 * gdb/target-descriptions.h (tdesc_create_enum): Likewise.
10440 (tdesc_add_typed_bitfield): Likewise.
10441 (tdesc_add_enum_value): Likewise.
10443 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10445 * common/tdesc.c (tdesc_feature::accept): Move to here.
10446 (tdesc_feature::operator==): Likewise.
10447 (tdesc_create_reg): Likewise.
10448 * common/tdesc.h (tdesc_type_kind): Likewise.
10449 (struct tdesc_type): Likewise.
10450 (struct tdesc_feature): Likewise.
10451 * regformats/regdat.sh: Create a feature.
10452 * target-descriptions.c (tdesc_type_kind): Move from here.
10453 (tdesc_type): Likewise.
10454 (tdesc_type_up): Likewise.
10455 (tdesc_feature): Likewise.
10456 (tdesc_create_reg): Likewise.
10458 2018-04-18 Alan Hayward <alan.hayward@arm.com>
10460 * Makefile.in: Add arch/tdesc.c
10461 * common/tdesc.c: New file.
10462 * common/tdesc.h (tdesc_element_visitor): Move to here.
10463 (tdesc_element): Likewise.
10464 (tdesc_reg): Likewise.
10465 (tdesc_reg_up): Likewise.
10466 * regformats/regdef.h (reg): Add offset to constructors.
10467 * target-descriptions.c (tdesc_element_visitor): Move from here.
10468 (tdesc_element): Likewise.
10469 (tdesc_reg): Likewise.
10470 (tdesc_reg_up): Likewise.
10472 2018-04-17 Tom Tromey <tom@tromey.com>
10474 * dwarf2read.c (quirk_rust_enum): Conditionally drop the
10475 discriminant field.
10477 2018-04-17 Tom Tromey <tom@tromey.com>
10479 * dwarf2read.c (quirk_rust_enum): Handle unions correctly.
10481 2018-04-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
10483 * symtab.c (print_symbol_info): Skip printing filename and line
10484 number when `last' is NULL.
10485 (symtab_symbol_info): Use empty string instead of NULL for first
10486 invocation of print_symbol_info.
10487 (rbreak_command): Pass NULL to `last' parameter of
10490 2018-04-16 Simon Marchi <simon.marchi@ericsson.com>
10492 * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data
10493 instead of nullptr.
10495 2018-04-16 Pedro Alves <palves@redhat.com>
10497 * MAINTAINERS (sh): Remove.
10498 * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o.
10499 (HFILES_NO_SRCDIR): Remove sh64-tdep.h.
10500 (ALLDEPFILES): Remove sh64-tdep.c.
10501 * NEWS: Mentions that support for SH-5/SH64 is removed.
10502 * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o.
10503 (sh*-*-openbsd*): Ditto.
10504 (sh64-*-elf*): Remove.
10506 * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case.
10507 * sh-linux-tdep.c: Remove reference to bfd_mach_sh5.
10508 * sh-tdep.c: No longer include "sh64-tdep.h".
10509 (sh_gdbarch_init): Remove reference to bfd_mach_sh5.
10510 * sh64-tdep.c, sh64-tdep.h: Remove files.
10512 2018-04-16 Pedro Alves <palves@redhat.com>
10514 * MAINTAINERS: Remove m88k.
10515 * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o.
10516 (HFILES_NO_SRCDIR): Remove m88k-tdep.h.
10517 (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c.
10518 * NEWS: Mention that support for m88k was removed.
10519 * configure.host (m88*-*-*): Remove support.
10520 * configure.nat (m88k-*-*): Remove support.
10521 * configure.tgt (m88*-*-openbsd*): Remove.
10522 * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete.
10524 2018-04-15 Simon Marchi <simon.marchi@polymtl.ca>
10526 * configure.tgt (x86_tobjs): New variable.
10527 (amd64_tobjs, i386_tobjs): Use it.
10529 2018-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
10531 * symtab.c (print_symbol_info): Precede the symbol definition by
10532 the line number when available.
10533 * NEWS: Advertise this enhancement.
10535 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10537 * NEWS (New options): announce set/show record btrace cpu.
10538 * btrace.c: Include record-btrace.h.
10539 (btrace_compute_ftrace_pt): Skip enabling errata workarounds if
10540 the vendor is unknown.
10541 (btrace_compute_ftrace_1): Add cpu parameter. Update callers.
10542 Maybe overwrite the btrace configuration's cpu.
10543 (btrace_compute_ftrace): Add cpu parameter. Update callers.
10544 (btrace_fetch): Add cpu parameter. Update callers.
10545 (btrace_maint_update_pt_packets): Call record_btrace_get_cpu.
10546 Maybe overwrite the btrace configuration's cpu. Skip enabling
10547 errata workarounds if the vendor is unknown.
10548 * python/py-record-btrace.c: Include record-btrace.h.
10549 (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history)
10550 (recpy_bt_function_call_history): Call record_btrace_get_cpu.
10551 * record-btrace.c (record_btrace_cpu_state_kind): New.
10552 (record_btrace_cpu): New.
10553 (set_record_btrace_cpu_cmdlist): New.
10554 (record_btrace_get_cpu): New.
10555 (require_btrace_thread, record_btrace_info)
10556 (record_btrace_resume_thread): Call record_btrace_get_cpu.
10557 (cmd_set_record_btrace_cpu_none): New.
10558 (cmd_set_record_btrace_cpu_auto): New.
10559 (cmd_set_record_btrace_cpu): New.
10560 (cmd_show_record_btrace_cpu): New.
10561 (_initialize_record_btrace): Initialize set/show record btrace cpu
10563 * record-btrace.h (record_btrace_get_cpu): New.
10565 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10567 * record.c (set_record_command): Fix typo in message.
10569 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10571 * record-btrace.c (cmd_set_record_btrace): Print sub-commands.
10573 2018-04-13 Markus Metzger <markus.t.metzger@intel.com>
10575 * infrun.c (process_event_stop_test): Call
10576 gdbarch_in_indirect_branch_thunk.
10577 * gdbarch.sh (in_indirect_branch_thunk): New.
10578 * gdbarch.c: Regenerated.
10579 * gdbarch.h: Regenerated.
10582 * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o.
10583 (HFILES_NO_SRCDIR): Add x86-tdep.h.
10584 (ALLDEPFILES): Add x86-tdep.c.
10585 * arch-utils.h (default_in_indirect_branch_thunk): New.
10586 * arch-utils.c (default_in_indirect_branch_thunk): New.
10587 * i386-tdep: Include x86-tdep.h.
10588 (i386_in_indirect_branch_thunk): New.
10589 (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch
10591 * amd64-tdep: Include x86-tdep.h.
10592 (amd64_in_indirect_branch_thunk): New.
10593 (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function.
10595 2018-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10598 * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type)
10599 (recursively_write_psymbols) (debug_names::recursively_write_psymbols)
10600 (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG
10603 2018-04-12 Tom Tromey <tom@tromey.com>
10605 * rust-lang.c (rust_print_struct_def): Remove univariant code.
10606 (rust_evaluate_subexp): Likewise.
10608 2018-04-12 Pedro Alves <palves@redhat.com>
10610 * procfs.c (procfs_detach): Make forward declaration's prototype
10611 match definition's protototype.
10612 (proc_get_LDT_entry): Remove stale do_cleanups call.
10614 2018-04-12 Pedro Alves <palves@redhat.com>
10616 * target.h (target_ops::to_has_exited): Delete.
10617 (target_has_exited): Delete.
10618 * target-delegates.c: Regenerate.
10620 2018-04-11 Pedro Alves <palves@redhat.com>
10622 * target.c (fileio_fh_t::t): Add comment.
10623 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10624 (target_fileio_close): Handle a NULL target.
10625 (invalidate_fileio_fh): New.
10626 (target_close): Call it.
10627 * remote.c (remote_hostio_send_command): No longer check whether
10628 remote_desc is open.
10630 2018-04-11 Pedro Alves <palves@redhat.com>
10632 * target.c (fileio_fh_t): Make it a named struct instead of a
10634 (fileio_fh_t::is_closed): New method.
10635 (DEF_VEC_O (fileio_fh_t)): Remove.
10636 (fileio_fhandles): Now a std::vector.
10637 (is_closed_fileio_fh): Delete.
10638 (acquire_fileio_fd): Adjust. Rename parameters.
10639 (release_fileio_fd): Adjust.
10640 (fileio_fd_to_fh): Reimplement as a function instead of a macro.
10641 (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat)
10642 (target_fileio_close): Adjust.
10644 2018-04-10 Simon Marchi <simon.marchi@ericsson.com>
10646 * auto-load.c (auto_load_safe_path_vec_update): Iterate by
10649 2018-04-10 Pedro Alves <palves@redhat.com>
10651 * gdbthread.h (finish_thread_state_cleanup): Delete declaration.
10652 (scoped_finish_thread_state): New class.
10653 * infcmd.c (run_command_1): Use it instead of finish_thread_state
10655 * infrun.c (proceed, prepare_for_detach, wait_for_inferior)
10656 (fetch_inferior_event, normal_stop): Likewise.
10657 * thread.c (finish_thread_state_cleanup): Delete.
10659 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10660 Pedro Alves <palves@redhat.com>
10662 * value.c: Include "selftest.h" and "common/array-view.h".
10663 (struct range) <operator ==>: New.
10664 (test_ranges_contain): New.
10665 (check_ranges_vector): New.
10666 (test_insert_into_bit_range_vector): New.
10667 (_initialize_values): Register selftests.
10668 * common/array-view.h (operator==, operator!=): New.
10670 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10672 * common/gdb_vecs.h (unordered_remove): Add overload that takes
10674 * inline-frame.c: Include <algorithm>.
10675 (struct inline_state): Add constructor.
10676 (inline_state_s): Remove.
10677 (DEF_VEC_O(inline_state_s)): Remove.
10678 (inline_states): Change type to std::vector.
10679 (find_inline_frame_state): Adjust to std::vector.
10680 (allocate_inline_frame_state): Remove.
10681 (clear_inline_frame_state): Adjust to std::vector.
10682 (skip_inline_frames): Adjust to std::vector.
10684 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10686 * tracepoint.h (struct trace_state_variable): Add constructor.
10687 <name>: Change type to std::string.
10688 * tracepoint.c (tsv_s): Remove.
10689 (DEF_VEC_O(tsv_s)): Remove.
10690 (tvariables): Change to std::vector.
10691 (create_trace_state_variable): Adjust to std::vector.
10692 (find_trace_state_variable): Likewise.
10693 (find_trace_state_variable_by_number): Likewise.
10694 (delete_trace_state_variable): Likewise.
10695 (trace_variable_command): Adjust to std::string.
10696 (delete_trace_variable_command): Likewise.
10697 (tvariables_info_1): Adjust to std::vector.
10698 (save_trace_state_variables): Likewise.
10699 (start_tracing): Likewise.
10700 (merge_uploaded_trace_state_variables): Adjust to std::vector
10702 * target.h (struct target_ops)
10703 <to_download_trace_state_variable>: Pass reference to
10704 trace_state_variable.
10705 * target-debug.h (target_debug_print_const_trace_state_variable_r): New.
10706 * target-delegates.c: Re-generate.
10707 * mi/mi-interp.c (mi_tsv_created): Adjust to std::string.
10708 (mi_tsv_deleted): Likewise.
10709 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
10710 * remote.c (remote_download_trace_state_variable): Change
10711 pointer to reference and adjust.
10712 * make-target-delegates (parse_argtypes): Handle references.
10713 (write_function_header): Likewise.
10714 (munge_type): Likewise.
10716 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10718 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
10719 string_view-selftests.c.
10720 * unittests/basic_string_view/capacity/1.cc: Adapt to GDB
10722 * unittests/basic_string_view/cons/char/1.cc: Likewise.
10723 * unittests/basic_string_view/cons/char/2.cc: Likewise.
10724 * unittests/basic_string_view/cons/char/3.cc: Likewise.
10725 * unittests/basic_string_view/element_access/char/1.cc:
10727 * unittests/basic_string_view/element_access/char/empty.cc:
10729 * unittests/basic_string_view/element_access/char/front_back.cc:
10731 * unittests/basic_string_view/inserters/char/2.cc: Likewise.
10732 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc:
10734 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc:
10736 * unittests/basic_string_view/modifiers/swap/char/1.cc:
10738 * unittests/basic_string_view/operations/compare/char/1.cc:
10740 * unittests/basic_string_view/operations/compare/char/13650.cc:
10742 * unittests/basic_string_view/operations/copy/char/1.cc:
10744 * unittests/basic_string_view/operations/data/char/1.cc:
10746 * unittests/basic_string_view/operations/find/char/1.cc:
10748 * unittests/basic_string_view/operations/find/char/2.cc:
10750 * unittests/basic_string_view/operations/find/char/3.cc:
10752 * unittests/basic_string_view/operations/find/char/4.cc:
10754 * unittests/basic_string_view/operations/rfind/char/1.cc:
10756 * unittests/basic_string_view/operations/rfind/char/2.cc:
10758 * unittests/basic_string_view/operations/rfind/char/3.cc:
10760 * unittests/basic_string_view/operations/substr/char/1.cc:
10762 * unittests/basic_string_view/operators/char/2.cc: Likewise.
10763 * unittests/string_view-selftests.c: New file.
10765 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10767 * unittests/basic_string_view/capacity/1.cc: New file.
10768 * unittests/basic_string_view/capacity/empty_neg.cc: New file.
10769 * unittests/basic_string_view/cons/char/1.cc: New file.
10770 * unittests/basic_string_view/cons/char/2.cc: New file.
10771 * unittests/basic_string_view/cons/char/3.cc: New file.
10772 * unittests/basic_string_view/cons/wchar_t/1.cc: New file.
10773 * unittests/basic_string_view/cons/wchar_t/2.cc: New file.
10774 * unittests/basic_string_view/cons/wchar_t/3.cc: New file.
10775 * unittests/basic_string_view/element_access/char/1.cc: New file.
10776 * unittests/basic_string_view/element_access/char/2.cc: New file.
10777 * unittests/basic_string_view/element_access/char/empty.cc: New file.
10778 * unittests/basic_string_view/element_access/char/front_back.cc: New file.
10779 * unittests/basic_string_view/element_access/wchar_t/1.cc: New file.
10780 * unittests/basic_string_view/element_access/wchar_t/2.cc: New file.
10781 * unittests/basic_string_view/element_access/wchar_t/empty.cc: New file.
10782 * unittests/basic_string_view/element_access/wchar_t/front_back.cc: New file.
10783 * unittests/basic_string_view/include.cc: New file.
10784 * unittests/basic_string_view/inserters/char/1.cc: New file.
10785 * unittests/basic_string_view/inserters/char/2.cc: New file.
10786 * unittests/basic_string_view/inserters/char/3.cc: New file.
10787 * unittests/basic_string_view/inserters/pod/10081-out.cc: New file.
10788 * unittests/basic_string_view/inserters/wchar_t/1.cc: New file.
10789 * unittests/basic_string_view/inserters/wchar_t/2.cc: New file.
10790 * unittests/basic_string_view/inserters/wchar_t/3.cc: New file.
10791 * unittests/basic_string_view/literals/types.cc: New file.
10792 * unittests/basic_string_view/literals/values.cc: New file.
10793 * unittests/basic_string_view/modifiers/remove_prefix/char/1.cc: New file.
10794 * unittests/basic_string_view/modifiers/remove_prefix/wchar_t/1.cc: New file.
10795 * unittests/basic_string_view/modifiers/remove_suffix/char/1.cc: New file.
10796 * unittests/basic_string_view/modifiers/remove_suffix/wchar_t/1.cc: New file.
10797 * unittests/basic_string_view/modifiers/swap/char/1.cc: New file.
10798 * unittests/basic_string_view/modifiers/swap/wchar_t/1.cc: New file.
10799 * unittests/basic_string_view/operations/compare/char/1.cc: New file.
10800 * unittests/basic_string_view/operations/compare/char/13650.cc: New file.
10801 * unittests/basic_string_view/operations/compare/char/2.cc: New file.
10802 * unittests/basic_string_view/operations/compare/char/70483.cc: New file.
10803 * unittests/basic_string_view/operations/compare/wchar_t/1.cc: New file.
10804 * unittests/basic_string_view/operations/compare/wchar_t/13650.cc: New file.
10805 * unittests/basic_string_view/operations/compare/wchar_t/2.cc: New file.
10806 * unittests/basic_string_view/operations/copy/char/1.cc: New file.
10807 * unittests/basic_string_view/operations/copy/wchar_t/1.cc: New file.
10808 * unittests/basic_string_view/operations/data/char/1.cc: New file.
10809 * unittests/basic_string_view/operations/data/wchar_t/1.cc: New file.
10810 * unittests/basic_string_view/operations/find/char/1.cc: New file.
10811 * unittests/basic_string_view/operations/find/char/2.cc: New file.
10812 * unittests/basic_string_view/operations/find/char/3.cc: New file.
10813 * unittests/basic_string_view/operations/find/char/4.cc: New file.
10814 * unittests/basic_string_view/operations/find/wchar_t/1.cc: New file.
10815 * unittests/basic_string_view/operations/find/wchar_t/2.cc: New file.
10816 * unittests/basic_string_view/operations/find/wchar_t/3.cc: New file.
10817 * unittests/basic_string_view/operations/find/wchar_t/4.cc: New file.
10818 * unittests/basic_string_view/operations/rfind/char/1.cc: New file.
10819 * unittests/basic_string_view/operations/rfind/char/2.cc: New file.
10820 * unittests/basic_string_view/operations/rfind/char/3.cc: New file.
10821 * unittests/basic_string_view/operations/rfind/wchar_t/1.cc: New file.
10822 * unittests/basic_string_view/operations/rfind/wchar_t/2.cc: New file.
10823 * unittests/basic_string_view/operations/rfind/wchar_t/3.cc: New file.
10824 * unittests/basic_string_view/operations/string_conversion/1.cc: New file.
10825 * unittests/basic_string_view/operations/substr/char/1.cc: New file.
10826 * unittests/basic_string_view/operations/substr/wchar_t/1.cc: New file.
10827 * unittests/basic_string_view/operators/char/2.cc: New file.
10828 * unittests/basic_string_view/operators/wchar_t/2.cc: New file.
10829 * unittests/basic_string_view/range_access/char/1.cc: New file.
10830 * unittests/basic_string_view/range_access/wchar_t/1.cc: New file.
10831 * unittests/basic_string_view/requirements/explicit_instantiation/1.cc: New file.
10832 * unittests/basic_string_view/requirements/explicit_instantiation/char/1.cc: New file.
10833 * unittests/basic_string_view/requirements/explicit_instantiation/char16_t/1.cc: New file.
10834 * unittests/basic_string_view/requirements/explicit_instantiation/char32_t/1.cc: New file.
10835 * unittests/basic_string_view/requirements/explicit_instantiation/wchar_t/1.cc: New file.
10836 * unittests/basic_string_view/requirements/typedefs.cc: New file.
10837 * unittests/basic_string_view/typedefs.cc: New file.
10838 * unittests/basic_string_view/types/1.cc: New file.
10840 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10842 * common/gdb_string_view.h: Remove libstdc++ implementation
10843 details, adjust to gdb reality.
10844 * common/gdb_string_view.tcc: Likewise.
10845 * cli/cli-script.c (struct string_view): Remove.
10846 (user_args) <m_args>: Change element type to gdb::string_view.
10847 (user_args::insert_args): Adjust.
10849 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10851 * common/gdb_string_view.h: New file.
10852 * common/gdb_string_view.tcc: New file.
10854 2018-04-09 Simon Marchi <simon.marchi@polymtl.ca>
10856 * ax_cxx_compile_stdcxx.m4: Sync with upstream.
10857 * configure: Re-generate.
10859 2018-04-09 Pedro Alves <palves@redhat.com>
10861 * gdbarch.sh: Include "observable.h" instead of "observer.h".
10862 (set_target_gdbarch): Call
10863 gdb::observers::architecture_changed.notify instead of
10864 observer_notify_architecture_changed.
10866 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10868 * tracepoint.c (struct current_traceframe_cleanup): Remove.
10869 (do_restore_current_traceframe_cleanup): Remove.
10870 (restore_current_traceframe_cleanup_dtor): Remove.
10871 (make_cleanup_restore_current_traceframe): Remove.
10872 (scoped_restore_current_traceframe::scoped_restore_current_traceframe):
10874 * tracepoint.h (struct scoped_restore_current_traceframe): New.
10875 * infrun.c (fetch_inferior_event): Use
10876 scoped_restore_current_traceframe.
10878 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10880 * dwarf2read.h (struct dwarf2_per_objfile) <n_type_units>:
10882 <n_allocated_type_units>: Remove.
10883 <all_type_units>: Change to std::vector.
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_tu): Likewise.
10888 (create_signatured_type_table_from_index): Likewise.
10889 (create_signatured_type_table_from_debug_names): Likewise.
10890 (dw2_symtab_iter_next): Likewise.
10891 (dw2_print_stats): Likewise.
10892 (dw2_expand_all_symtabs): Likewise.
10893 (dw2_expand_marked_cus): Likewise.
10894 (dw2_debug_names_iterator::next): Likewise.
10895 (dwarf2_initialize_objfile): Likewise.
10896 (add_signatured_type_cu_to_table): Likewise.
10897 (create_all_type_units): Likewise.
10898 (add_type_unit): Likewise.
10899 (struct tu_abbrev_offset): Add constructor.
10900 (build_type_psymtabs_1): Adjust to std::vector change.
10901 (print_tu_stats): Likewise.
10902 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10903 (write_debug_names): Likewise.
10905 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10907 * dwarf2read.h (struct dwarf2_per_objfile) <all_comp_units>: Likewise.
10908 Make an std::vector.
10909 <n_comp_units>: Remove.
10910 * dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile): Adjust
10911 to std::vector change.
10912 (dwarf2_per_objfile::get_cutu): Likewise.
10913 (dwarf2_per_objfile::get_cu): Likewise.
10914 (create_cus_from_index): Likewise.
10915 (create_addrmap_from_index): Likewise.
10916 (create_addrmap_from_aranges): Likewise.
10917 (dwarf2_read_index): Likewise.
10918 (dw2_find_last_source_symtab): Likewise.
10919 (dw2_map_symtabs_matching_filename): Likewise.
10920 (dw2_symtab_iter_next): Likewise.
10921 (dw2_print_stats): Likewise.
10922 (dw2_expand_all_symtabs): Likewise.
10923 (dw2_expand_symtabs_with_fullname): Likewise.
10924 (dw2_expand_marked_cus): Likewise.
10925 (dw2_map_symbol_filenames): Likewise.
10926 (create_cus_from_debug_names): Likewise.
10927 (dwarf2_read_debug_names): Likewise.
10928 (dw2_debug_names_iterator::next): Likewise.
10929 (dwarf2_initialize_objfile): Likewise.
10930 (set_partial_user): Likewise.
10931 (dwarf2_build_psymtabs_hard): Likewise.
10932 (read_comp_units_from_section): Remove arguments, adjust to
10933 std::vector change.
10934 (create_all_comp_units): Adjust to std::vector and
10935 read_comp_units_from_section changes.
10936 (dwarf2_find_containing_comp_unit): Adjust to std::vector
10938 * dwarf-index-write.c (check_dwarf64_offsets): Likewise.
10939 (psyms_seen_size): Likewise.
10940 (write_gdbindex): Likewise.
10941 (write_debug_names): Likewise.
10943 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10945 * dwarf2read.c (create_cus_from_index_list): Replace objfile arg
10946 with dwarf2_per_objfile.
10947 (create_cus_from_index): Likewise.
10948 (create_signatured_type_table_from_index): Likewise.
10949 (dwarf2_read_index): Likewise.
10950 (dwarf2_initialize_objfile): Likewise.
10951 (dwarf2_fetch_die_loc_sect_off): Get dwarf2_per_objfile from
10952 per_cu rather than get_dwarf2_per_objfile.
10954 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10956 * dwarf2read.h (struct signatured_type): Forward declare.
10957 (struct dwarf2_per_objfile) <get_cutu, get_cu, get_tu>:
10959 * dwarf2read.c (dwarf2_per_objfile::get_cutu): Rename from...
10960 (dw2_get_cutu): ...this.
10961 (dwarf2_per_objfile::get_cu): Rename from...
10962 (dw2_get_cu): ...this.
10963 (dwarf2_per_objfile::get_tu): New.
10964 (create_addrmap_from_index): Adjust.
10965 (create_addrmap_from_aranges): Adjust.
10966 (dw2_find_last_source_symtab): Adjust.
10967 (dw2_map_symtabs_matching_filename): Adjust.
10968 (dw2_symtab_iter_next): Adjust.
10969 (dw2_print_stats): Adjust.
10970 (dw2_expand_all_symtabs): Adjust.
10971 (dw2_expand_symtabs_with_fullname): Adjust.
10972 (dw2_expand_marked_cus): Adjust.
10973 (dw_expand_symtabs_matching_file_matcher): Adjust.
10974 (dw2_map_symbol_filenames): Adjust.
10975 (dw2_debug_names_iterator::next): Adjust.
10976 (dwarf2_initialize_objfile): Adjust.
10977 (set_partial_user): Adjust.
10978 (dwarf2_build_psymtabs_hard): Adjust.
10980 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10982 * dwarf2read.c (create_signatured_type_table_from_debug_names):
10983 Remove unused variables.
10984 (dw2_map_symtabs_matching_filename): Likewise.
10985 (dwarf2_record_block_ranges): Likewise.
10986 (dwarf2_read_addr_index): Likewise.
10987 (follow_die_offset): Likewise.
10989 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10991 * progspace.c (clone_program_space): Pass SYMFILE_DEFER_BP_RESET
10992 to symbol_file_add_main.
10994 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10997 * mi/mi-console.c (do_fputc_async_safe): New.
10998 (mi_console_file::write_async_safe): New.
10999 (mi_console_file::flush): Adjust calls to fputstrn_unfiltered.
11000 * mi/mi-console.h (class mi_console_file) <write_async_safe>:
11002 * ui-file.c (ui_file::putstrn): Adjust call to
11003 fputstrn_unfiltered.
11004 * utils.c (printchar): Replace do_fputs and do_fprintf
11005 parameters by do_fputc.
11006 (fputstr_filtered): Adjust call to printchar.
11007 (fputstr_unfiltered): Likewise.
11008 (fputstrn_filtered): Likewise.
11009 (fputstrn_unfiltered): Add do_fputc parameter, pass to
11011 * utils.h (do_fputc_ftype): New typedef.
11012 (fputstrn_unfiltered): Add do_fputc parameter.
11014 2018-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11016 * regformats/i386/i386-avx.dat: Remove.
11018 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11021 * amd64-tdep.c (amd64_none_init_abi): New function.
11022 (amd64_x32_none_init_abi): New function.
11023 (_initialize_amd64_tdep): Register handlers for x86-64 and
11024 x64_32 with GDB_OSABI_NONE.
11025 * osabi.c (gdbarch_init_osabi): Allow running handlers for the
11026 GDB_OSABI_NONE osabi.
11028 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11031 * defs.h (enum gdb_osabi): Remove GDB_OSABI_UNINITIALIZED, add
11033 * arch-utils.c (gdbarch_info_init): Don't set info->osabi.
11034 * osabi.c (gdb_osabi_names): Add "unknown" entry.
11036 2018-04-07 Simon Marchi <simon.marchi@ericsson.com>
11038 * common/byte-vector.h (char_vector): New type.
11039 * target.h (target_read_alloc): Return
11040 gdb::optional<byte_vector>.
11041 (target_read_stralloc): Return gdb::optional<char_vector>.
11042 (target_get_osdata): Return gdb::optional<char_vector>.
11043 * target.c (target_read_alloc_1): Templatize. Replacement
11044 manual memory management with vector.
11045 (target_read_alloc): Change return type, adjust.
11046 (target_read_stralloc): Change return type, adjust.
11047 (target_get_osdata): Change return type, adjust.
11048 * auxv.c (struct auxv_info) <length>: Remove.
11049 <data>: Change type to gdb::optional<byte_vector>.
11050 (auxv_inferior_data_cleanup): Free auxv_info with delete.
11051 (get_auxv_inferior_data): Allocate auxv_info with new, adjust.
11052 (target_auxv_search): Adjust.
11053 (fprint_target_auxv): Adjust.
11054 * avr-tdep.c (avr_io_reg_read_command): Adjust.
11055 * linux-tdep.c (linux_spu_make_corefile_notes): Adjust.
11056 (linux_make_corefile_notes): Adjust.
11057 * osdata.c (get_osdata): Adjust.
11058 * remote.c (remote_get_threads_with_qxfer): Adjust.
11059 (remote_memory_map): Adjust.
11060 (remote_traceframe_info): Adjust.
11061 (btrace_read_config): Adjust.
11062 (remote_read_btrace): Adjust.
11063 (remote_pid_to_exec_file): Adjust.
11064 * solib-aix.c (solib_aix_get_library_list): Adjust.
11065 * solib-dsbt.c (decode_loadmap): Don't free buf.
11066 (dsbt_get_initial_loadmaps): Adjust.
11067 * solib-svr4.c (svr4_current_sos_via_xfer_libraries): Adjust.
11068 * solib-target.c (solib_target_current_sos): Adjust.
11069 * tracepoint.c (sdata_make_value): Adjust.
11070 * xml-support.c (xinclude_start_include): Adjust.
11071 (xml_fetch_content_from_file): Adjust.
11072 * xml-support.h (xml_fetch_another): Change return type.
11073 (xml_fetch_content_from_file): Change return type.
11074 * xml-syscall.c (xml_init_syscalls_info): Adjust.
11075 * xml-tdesc.c (file_read_description_xml): Adjust.
11076 (fetch_available_features_from_target): Change return type.
11077 (target_fetch_description_xml): Adjust.
11078 (target_read_description_xml): Adjust.
11080 2018-04-06 Tom Tromey <tom@tromey.com>
11082 * value.c (~value): Update.
11083 (struct value) <contents>: Now unique_xmalloc_ptr.
11084 (value_contents_bits_eq, allocate_value_contents)
11085 (value_contents_raw, value_contents_all_raw)
11086 (value_contents_for_printing, value_contents_for_printing_const)
11087 (set_value_enclosing_type): Update.
11089 2018-04-06 Tom Tromey <tom@tromey.com>
11091 * value.c (range_s): Remove typedef, VEC.
11092 (struct range): Add operator<.
11093 (range_lessthan): Remove.
11094 (ranges_contain): Change type.
11096 (struct value) <unavailable, optimized_out>: Now std::vector.
11097 (value_entirely_available)
11098 (value_entirely_covered_by_range_vector)
11099 (value_entirely_unavailable, value_entirely_optimized_out):
11101 (insert_into_bit_range_vector): Change argument type.
11102 (find_first_range_overlap): Likewise.
11103 (struct ranges_and_idx, value_contents_bits_eq)
11104 (require_not_optimized_out, require_available): Update.
11105 (ranges_copy_adjusted): Change argument types.
11106 (value_optimized_out, value_copy, value_fetch_lazy): Update.
11108 2018-04-06 Tom Tromey <tom@tromey.com>
11110 * value.c (~value): Update.
11111 (struct value) <parent>: Now a value_ref_ptr.
11112 (value_parent, set_value_parent, value_address, value_copy):
11115 2018-04-06 Tom Tromey <tom@tromey.com>
11117 * value.c (struct value): Add constructor, destructor, and member
11119 (allocate_value_lazy, value_decref): Update.
11121 2018-04-06 Tom Tromey <tom@tromey.com>
11123 * value.c (struct value) <released, next>: Remove.
11124 (all_values): Now a std::vector.
11125 (allocate_value_lazy): Update.
11126 (value_next): Remove.
11127 (value_mark, value_free_to_mark, release_value)
11128 (value_release_to_mark): Update.
11130 2018-04-06 Tom Tromey <tom@tromey.com>
11132 * value.h (fetch_subexp_value, value_release_to_mark): Update.
11133 (free_value_chain): Remove.
11134 * value.c (free_value_chain): Remove.
11135 (value_release_to_mark): Return a std::vector.
11136 * ppc-linux-nat.c (num_memory_accesses): Change "chain" to a
11138 (check_condition): Update.
11139 * eval.c (fetch_subexp_value): Change "val_chain" to a
11141 * breakpoint.c (update_watchpoint): Update.
11142 (can_use_hardware_watchpoint): Change "vals" to a std::vector.
11144 2018-04-06 Tom Tromey <tom@tromey.com>
11146 * value.h (free_all_values): Remove.
11147 * value.c (free_all_values): Remove.
11149 2018-04-06 Tom Tromey <tom@tromey.com>
11151 * value.c (VALUE_HISTORY_CHUNK, struct value_history_chunk)
11152 (value_history_chain, value_history_count): Remove.
11153 (value_history): New global.
11154 (record_latest_value, access_value_history, show_values)
11155 (preserve_values): Update.
11157 2018-04-06 Tom Tromey <tom@tromey.com>
11159 * varobj.h (struct varobj) <value>: Now a value_ref_ptr.
11160 * varobj.c (varobj_set_display_format, varobj_set_value)
11161 (install_default_visualizer, construct_visualizer)
11162 (install_new_value, ~varobj, varobj_get_value_type)
11163 (my_value_of_variable, varobj_editable_p): Update.
11164 * c-varobj.c (c_describe_child, c_value_of_variable)
11165 (cplus_number_of_children, cplus_describe_child): Update.
11166 * ada-varobj.c (ada_number_of_children, ada_name_of_child)
11167 (ada_path_expr_of_child, ada_value_of_child, ada_type_of_child)
11168 (ada_value_of_variable, ada_value_is_changeable_p): Update.
11170 2018-04-06 Tom Tromey <tom@tromey.com>
11172 * printcmd.c (last_examine_address): Change type to
11174 (do_examine, x_command): Update.
11176 2018-04-06 Tom Tromey <tom@tromey.com>
11178 * value.c (release_value): Update.
11179 * breakpoint.h (struct watchpoint) <val>: Now a value_ref_ptr.
11180 (struct bpstats) <val>: Now a value_ref_ptr.
11181 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11182 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11183 (~watchpoint, print_it_watchpoint, watch_command_1)
11184 (invalidate_bp_value_on_memory_change): Update.
11186 2018-04-06 Tom Tromey <tom@tromey.com>
11188 * varobj.c (varobj_clear_saved_item)
11189 (update_dynamic_varobj_children, install_new_value, ~varobj):
11191 * value.h (value_incref): Move declaration earlier.
11192 (value_decref): Rename from value_free.
11193 (struct value_ref_policy): New.
11194 (value_ref_ptr): New typedef.
11195 (struct value_deleter): Remove.
11196 (gdb_value_up): Remove typedef.
11197 (release_value): Change return type.
11198 (release_value_or_incref): Remove.
11199 * value.c (set_value_parent): Update.
11200 (value_incref): Change return type.
11201 (value_decref): Rename from value_free.
11202 (value_free_to_mark, free_all_values, free_value_chain): Update.
11203 (release_value): Return value_ref_ptr.
11204 (release_value_or_incref): Remove.
11205 (record_latest_value, set_internalvar, clear_internalvar):
11207 * stack.c (info_frame_command): Don't call value_free.
11208 * python/py-value.c (valpy_dealloc, valpy_new)
11209 (value_to_value_object): Update.
11210 * printcmd.c (do_examine): Update.
11211 * opencl-lang.c (lval_func_free_closure): Update.
11212 * mi/mi-main.c (register_changed_p): Don't call value_free.
11213 * mep-tdep.c (mep_frame_prev_register): Don't call value_free.
11214 * m88k-tdep.c (m88k_frame_prev_register): Don't call value_free.
11215 * m68hc11-tdep.c (m68hc11_frame_prev_register): Don't call
11217 * guile/scm-value.c (vlscm_free_value_smob)
11218 (vlscm_scm_from_value): Update.
11219 * frame.c (frame_register_unwind, frame_unwind_register_signed)
11220 (frame_unwind_register_unsigned, get_frame_register_bytes)
11221 (put_frame_register_bytes): Don't call value_free.
11222 * findvar.c (address_from_register): Don't call value_free.
11223 * dwarf2read.c (dwarf2_compute_name): Don't call value_free.
11224 * dwarf2loc.c (entry_data_value_free_closure)
11225 (value_of_dwarf_reg_entry, free_pieced_value_closure)
11226 (dwarf2_evaluate_loc_desc_full): Update.
11227 * breakpoint.c (update_watchpoint, breakpoint_init_inferior)
11228 (~bpstats, bpstats, bpstat_clear_actions, watchpoint_check)
11229 (~watchpoint, watch_command_1)
11230 (invalidate_bp_value_on_memory_change): Update.
11231 * alpha-tdep.c (alpha_register_to_value): Don't call value_free.
11233 2018-04-06 Simon Marchi <simon.marchi@polymtl.ca>
11236 * warning.m4: Add -Wno-error=deprecated-register.
11237 * configure: Re-generate.
11239 2018-04-05 Tom Tromey <tom@tromey.com>
11241 * linespec.h: Remove include of "vec.h".
11243 2018-04-05 Tom Tromey <tom@tromey.com>
11245 * linespec.c (typep): Remove typedef.
11246 (find_methods, find_superclass_methods): Take a std::vector.
11247 (find_method): Use std::vector.
11249 2018-04-05 Tom Tromey <tom@tromey.com>
11251 * utils.c (compare_strings): Remove.
11252 * utils.h (compare_strings): Remove.
11253 * objc-lang.h (find_imps): Update.
11254 * objc-lang.c (find_methods): Take a std::vector.
11255 (uniquify_strings, find_imps): Likewise.
11256 * linespec.c (find_methods): Take a std::vector.
11257 (decode_objc): Use std::vector.
11258 (add_all_symbol_names_from_pspace, find_superclass_methods): Take
11260 (find_method, find_function_symbols): Use std::vector.
11262 2018-04-05 Tom Tromey <tom@tromey.com>
11264 * completer.c (completion_tracker::completion_tracker): Remove
11266 (completion_tracker::discard_completions): Likewise.
11267 * breakpoint.c (ambiguous_names_p): Remove cast.
11268 * ada-lang.c (_initialize_ada_language): Remove cast.
11269 * utils.h (streq): Update.
11270 (streq_hash): Add new declaration.
11271 * utils.c (streq): Return bool.
11272 (streq_hash): New function.
11274 2018-04-05 Tom Tromey <tom@tromey.com>
11276 * linespec.c (event_location_to_sals) <case ADDRESS_LOCATION>:
11277 Remove a string copy.
11279 2018-04-05 Tom Tromey <tom@tromey.com>
11281 * linespec.c (filter_results): Use std::vector.
11282 (decode_line_2, decode_line_full): Update.
11284 2018-04-05 Tom Tromey <tom@tromey.com>
11286 * linespec.c (canonical_to_fullform): Return std::string.
11287 (filter_results): Update.
11288 (struct decode_line_2_item): Add constructor.
11289 <fullform, displayform>: Now std::string.
11290 (decode_line_2_compare_items): Now a std::sort comparator.
11291 (decode_line_2): Update.
11293 2018-04-05 Tom Tromey <tom@tromey.com>
11295 * linespec.c (copy_token_string): Return a unique_xmalloc_ptr.
11296 (unexpected_linespec_error): Update.
11297 (linespec_parse_basic, parse_linespec): Update.
11299 2018-04-05 Tom Tromey <tom@tromey.com>
11301 * linespec.c (linespec_parse_basic): Reindent.
11303 2018-04-05 Tom Tromey <tom@tromey.com>
11305 * minsyms.h (iterate_over_minimal_symbols): Update.
11306 * minsyms.c (iterate_over_minimal_symbols): Take a
11307 gdb::function_view.
11308 * linespec.c (struct collect_minsyms): Remove.
11309 (compare_msyms): Now a std::sort comparator.
11310 (add_minsym): Add parameters.
11311 (search_minsyms_for_name): Update. Use std::vector.
11313 2018-04-03 Tom Tromey <tom@tromey.com>
11315 * mipsread.c (read_alphacoff_dynamic_symtab): Use
11318 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11320 * MAINTAINERS (Write After Approval): Add Weimin Pan.
11322 2018-04-02 Weimin Pan <weimin.pan@oracle.com>
11325 * cp-valprint.c: (cp_print_static_field) Fix infinite recursion when
11326 printing static type.
11328 2018-04-01 Tom Tromey <tom@tromey.com>
11330 * rs6000-nat.c (rs6000_ptrace_ldinfo): Return a byte_vector.
11331 (rs6000_xfer_shared_libraries): Update.
11333 2018-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11335 * common/gdb_vecs.h (char_ptr): Remove.
11336 * tracepoint.c (encode_actions_1): Remove usage of char_ptr.
11338 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11340 * guile/scm-utils.c (gdbscm_parse_function_args): Replace VEC
11342 * common/gdb_vecs.h (DEF_VEC_P (char_ptr)): Remove.
11344 2018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
11346 * tracepoint.h (struct uploaded_tp): Initialize fields.
11347 <actions, step_actions, cmd_strings>: Change type to
11348 std::vector<char *>.
11349 * tracepoint.c (get_uploaded_tp): Allocate with new.
11350 (free_uploaded_tps): Free with delete.
11351 (parse_tracepoint_definition): Adjust to std::vector change.
11352 * breakpoint.c (read_uploaded_action): Likewise.
11353 (create_tracepoint_from_upload): Likewise.
11354 * ctf.c (ctf_write_uploaded_tp): Likewise.
11355 (SET_ARRAY_FIELD): Likewise.
11356 * tracefile-tfile.c (tfile_write_uploaded_tp): Likewise.
11358 2018-03-30 Tom Tromey <tom@tromey.com>
11360 * solib-svr4.c (lm_info_read): Use gdb::byte_vector. Return
11362 (svr4_keep_data_in_core): Update.
11363 (svr4_read_so_list): Update.
11365 2018-03-30 Tom Tromey <tom@tromey.com>
11367 * windows-nat.c (handle_output_debug_string, handle_exception):
11369 * target.h (target_read_string): Update.
11370 * target.c (target_read_string): Change "string" to
11371 unique_xmalloc_ptr.
11372 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
11374 * solib-frv.c (frv_current_sos): Update.
11375 * solib-dsbt.c (dsbt_current_sos): Update.
11376 * solib-darwin.c (darwin_current_sos): Update.
11377 * linux-thread-db.c (inferior_has_bug): Update.
11378 * expprint.c (print_subexp_standard) <case OP_OBJC_MSGCALL>:
11379 Update. Remove alloca.
11380 * ada-lang.c (ada_main_name): Update.
11382 2018-03-30 Tom Tromey <tom@tromey.com>
11384 * dwarf2read.c (struct free_dwo_file_cleanup_data): Remove.
11385 (struct dwo_file_deleter): New.
11386 (dwo_file_up): New typedef.
11387 (open_and_init_dwo_file): Use dwo_file_up.
11388 (free_dwo_file_cleanup): Remove.
11390 2018-03-30 Tom Tromey <tom@tromey.com>
11392 * dwarf2read.c (free_dwo_file): Remove "objfile" parameter.
11393 (free_dwo_file_cleanup, free_dwo_file_from_slot): Update.
11395 2018-03-30 Tom Tromey <tom@tromey.com>
11397 * dwarf2read.c (class free_cached_comp_units): New class.
11398 (dw2_instantiate_symtab, dwarf2_build_psymtabs_hard): Use it.
11399 (free_cached_comp_units): Remove function.
11401 2018-03-30 Tom Tromey <tom@tromey.com>
11403 * utils.h (make_cleanup_unpush_target): Remove.
11404 * inf-ptrace.c (struct target_unpusher): New.
11405 (target_unpush_up) New typedef.
11406 (inf_ptrace_create_inferior, inf_ptrace_attach): Use
11408 * utils.c (do_unpush_target, make_cleanup_unpush_target): Remove.
11410 2018-03-27 Tom Tromey <tom@tromey.com>
11412 * utils.c (prompt_for_continue): Use unique_xmalloc_ptr.
11414 2018-03-27 Pedro Alves <palves@redhat.com>
11415 Tom Tromey <tom@tromey.com>
11417 * top.c (class gdb_readline_wrapper_cleanup): Add constructor,
11418 destructor. Now a class.
11419 (gdb_readline_wrapper_cleanup): Remove function.
11420 (gdb_readline_wrapper): Remove cleanups.
11422 2018-03-27 Tom Tromey <tom@tromey.com>
11424 * typeprint.h (struct type_print_options) <local_typedefs,
11425 global_typedefs>: Remove "struct" keyword.
11426 (class typedef_hash_table): New class.
11427 (recursively_update_typedef_hash, add_template_parameters)
11428 (create_typedef_hash, free_typedef_hash, copy_typedef_hash)
11429 (find_typedef_in_hash): Don't declare.
11430 * typeprint.c (struct typedef_hash_table): Move to typeprint.h.
11431 (typedef_hash_table::recursively_update): Rename from
11432 recursively_update_typedef_hash. Now a member.
11433 (typedef_hash_table::add_template_parameters): Rename from
11434 add_template_parameters. Now a member.
11435 (typedef_hash_table::typedef_hash_table): Now a constructor;
11436 rename from create_typedef_hash.
11437 (typedef_hash_table::~typedef_hash_table): Now a destructor;
11438 rename from free_typedef_hash.
11439 (do_free_typedef_hash, make_cleanup_free_typedef_hash)
11440 (do_free_global_table): Remove.
11441 (typedef_hash_table::typedef_hash_table): New constructor; renamed
11442 from copy_type_recursive.
11443 (create_global_typedef_table): Remove.
11444 (typedef_hash_table::find_global_typedef): Now a member of
11445 typedef_hash_table.
11446 (typedef_hash_table::find_typedef): Rename from
11447 find_typedef_in_hash; now a member.
11448 (whatis_exp): Update.
11449 * extension.h (struct ext_lang_type_printers): Add constructor and
11451 (start_ext_lang_type_printers, free_ext_lang_type_printers): Don't
11453 * extension.c (ext_lang_type_printers::ext_lang_type_printers):
11454 Now a constructor; rename from start_ext_lang_type_printers.
11455 (ext_lang_type_printers): Now a destructor; rename from
11456 free_ext_lang_type_printers.
11457 * c-typeprint.c (find_typedef_for_canonicalize, c_print_type_1):
11459 (c_type_print_base_struct_union): Update. Remove cleanups.
11461 2018-03-27 Tom Tromey <tom@tromey.com>
11463 * dwarf-index-write.c: Include <cmath>.
11465 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11467 * NEWS: Add entry describing new "set|show varsize-limit" command.
11468 * ada-lang.c (_initialize_ada_language): Add "set/show varsize-limit"
11470 * printcmd.c (_initialize_printcmd): Add "set var" alias of
11473 2018-03-27 Simon Marchi <simon.marchi@ericsson.com>
11475 * Makefile.in (COMMON_SFILES): Add dwarf-index-common.c and
11476 dwarf-index-write.c
11477 (HFILES_NO_SRCDIR): Add dwarf-index-common.h and dwarf2read.h.
11478 * dwarf-index-common.c: New file.
11479 * dwarf-index-common.h: New file.
11480 * dwarf-index-write.c: New file.
11481 * dwarf2read.c: Include dwarf2read.h and dwarf-index-common.h.
11482 (struct dwarf2_section_info): Move from here.
11483 (dwarf2_section_info_def): Likewise.
11484 (DEF_VEC_O (dwarf2_section_info_def)): Likewise.
11485 (offset_type): Likewise.
11486 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): Likewise.
11487 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): Likewise.
11488 (DW2_GDB_INDEX_CU_SET_VALUE): Likewise.
11489 (byte_swap): Likewise.
11490 (MAYBE_SWAP): Likewise.
11491 (dwarf2_per_cu_ptr): Likewise.
11492 (DEF_VEC_P (dwarf2_per_cu_ptr)): Likewise.
11493 (struct tu_stats): Likewise.
11494 (struct dwarf2_per_objfile): Likewise.
11495 (struct dwarf2_per_cu_data): Likewise.
11496 (struct signatured_type): Likewise.
11497 (sig_type_ptr): Likewise.
11498 (DEF_VEC_P (sig_type_ptr)): Likewise.
11499 (INDEX4_SUFFIX): Likewise.
11500 (INDEX5_SUFFIX): Likewise.
11501 (DEBUG_STR_SUFFIX): Likewise.
11502 (dwarf2_read_section): Make non-static.
11503 (mapped_index_string_hash): Move from here.
11504 (dwarf5_djb_hash): Likewise.
11505 (file_write): Likewise.
11506 (class data_buf): Likewise.
11507 (struct symtab_index_entry): Likewise.
11508 (struct mapped_symtab): Likewise.
11509 (find_slot): Likewise.
11510 (hash_expand): Likewise.
11511 (add_index_entry): Likewise.
11512 (uniquify_cu_indices): Likewise.
11513 (class c_str_view): Likewise.
11514 (class c_str_view_hasher): Likewise.
11515 (class vector_hasher): Likewise.
11516 (write_hash_table): Likewise.
11517 (psym_index_map): Likewise.
11518 (struct addrmap_index_data): Likewise.
11519 (add_address_entry): Likewise.
11520 (add_address_entry_worker): Likewise.
11521 (write_address_map): Likewise.
11522 (symbol_kind): Likewise.
11523 (write_psymbols): Likewise.
11524 (struct signatured_type_index_data): Likewise.
11525 (write_one_signatured_type): Likewise.
11526 (recursively_count_psymbols): Likewise.
11527 (recursively_write_psymbols): Likewise.
11528 (class debug_names): Likewise.
11529 (check_dwarf64_offsets): Likewise.
11530 (psyms_seen_size): Likewise.
11531 (write_gdbindex): Likewise.
11532 (write_debug_names): Likewise.
11533 (assert_file_size): Likewise.
11534 (write_psymtabs_to_index): Likewise.
11535 (save_gdb_index_command): Likewise.
11536 (_initialize_dwarf2_read): Don't register the "save gdb-index"
11538 * dwarf2read.h: New file.
11540 2018-03-27 Joel Brobecker <brobecker@adacore.com>
11543 * dwarf2read.c (dwarf2_physname): Do not return the demangled
11544 symbol name if the CU's language stores symbol names in linkage
11546 * language.h (struct language_defn)
11547 <la_store_sym_names_in_linkage_form_p>: New field. Adjust
11548 all instances of this struct.
11550 2018-03-26 Tom Tromey <tom@tromey.com>
11552 * stack.c (backtrace_command_1): Remove verbose code.
11554 2018-03-26 Tom Tromey <tom@tromey.com>
11556 * python/py-framefilter.c (py_print_type): Don't catch
11557 exceptions. Return void.
11558 (py_print_value): Likewise.
11559 (py_print_single_arg): Likewise.
11560 (enumerate_args): Don't catch exceptions.
11561 (py_print_args): Likewise.
11562 (py_print_frame): Likewise.
11563 (gdbpy_apply_frame_filter): Catch exceptions here.
11565 2018-03-26 Tom Tromey <tom@tromey.com>
11567 * stack.c (_initialize_stack): Remove trailing newlines from help
11568 text. Add "Usage" line to "backtrace" help.
11570 2018-03-26 Tom Tromey <tom@tromey.com>
11573 * python/py-framefilter.c (py_print_args): Call wrap_hint.
11575 2018-03-26 Tom Tromey <tom@tromey.com>
11577 * python/py-framefilter.c (py_print_single_arg): Return
11578 EXT_LANG_BT_ERROR from catch.
11580 2018-03-26 Tom Tromey <tom@tromey.com>
11582 PR backtrace/15584:
11583 * stack.c (backtrace_command_1): Move some code into no-filters
11586 2018-03-26 Tom Tromey <tom@tromey.com>
11588 * python/py-framefilter.c (throw_quit_or_print_exception): New
11590 (gdbpy_apply_frame_filter): Use it.
11592 2018-03-26 Tom Tromey <tom@tromey.com>
11595 * python/py-framefilter.c (py_print_type, py_print_value)
11596 (enumerate_args, py_print_args, gdbpy_apply_frame_filter): Use
11599 2018-03-26 Tom Tromey <tom@tromey.com>
11601 * python/py-framefilter.c (enumerate_args): Use
11602 gdb::unique_xmalloc_ptr.
11604 2018-03-26 Tom Tromey <tom@tromey.com>
11606 * python/py-framefilter.c (py_print_frame): Return
11608 (gdbpy_apply_frame_filter): Update comment.
11609 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
11611 <EXT_LANG_BT_NO_FILTERS>: Change value.
11613 2018-03-26 Tom Tromey <tom@tromey.com>
11615 PR backtrace/15582:
11616 * stack.c (backtrace_command): Parse "hide" argument.
11617 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
11618 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
11621 2018-03-26 Tom Tromey <tom@tromey.com>
11623 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
11625 (backtrace_command): Remove "fulltrace", add "flags".
11627 2018-03-26 Tom Tromey <tom@tromey.com>
11629 * stack.c (backtrace_command): Rewrite command line parsing.
11631 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11633 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
11635 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
11637 * filename-seen-cache.h: Add include guard.
11639 2018-03-26 Keith Seitz <keiths@redhat.com>
11641 * symfile.c (place_section): Remove "struct" from section_addr_info
11643 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
11644 "struct" keyword from section_addr_info.
11646 2018-03-26 Alan Hayward <alan.hayward@arm.com>
11648 * regformats/regdef.h (reg): Add constructors.
11650 2018-03-25 Pedro Alves <palves@redhat.com>
11652 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
11653 if then/else bodies in var_func_name extraction.
11655 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
11657 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
11658 lookup_minimal_symbol() to find symbol entry.
11659 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
11661 2018-03-23 Keith Seitz <keiths@redhat.com>
11664 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
11665 nested type definitions for C++, too.
11667 2018-03-23 Tom Tromey <tom@tromey.com>
11669 * machoread.c (struct oso_el): Add a constructor. Don't define as
11671 (macho_register_oso): Remove.
11672 (macho_symtab_read): Take a std::vector.
11673 (oso_el_compare_name): Now a std::sort comparator.
11674 (macho_symfile_read_all_oso): Take a std::vector.
11675 (macho_symfile_read): Use std::vector. Remove cleanups.
11677 2018-03-22 Tom Tromey <tom@tromey.com>
11679 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
11680 (record_full_goto_bookmark): Use std::string.
11682 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11685 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
11688 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11690 * rs6000-tdep.c (store_insn_p): New function.
11691 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
11692 and cr_reg to their unshifted values. Use store_insn_p to
11693 match LR saves using either R1 or fdata->alloca_reg. Use
11694 store_insn_p to match CR saves. Set alloca_reg_offset
11695 when alloca_reg and framep are set. Remove lr_reg shift
11696 when assigning to fdata->lr_register.
11698 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
11700 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
11701 command line args instead of emitting a warning.
11703 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11705 * tracepoint.h (struct static_tracepoint_marker): Initialize
11706 fields, define default constructor, move constructor and move
11707 assignment, disable the rest.
11708 <str_id, extra>: Make std::string.
11709 (release_static_tracepoint_marker): Remove.
11710 (free_current_marker): Remove.
11711 * tracepoint.c (free_current_marker): Remove.
11712 (parse_static_tracepoint_marker_definition): Adjust to
11713 std::string, use new hex2str overload.
11714 (release_static_tracepoint_marker): Remove.
11715 (print_one_static_tracepoint_marker): Get marker by reference
11716 and adjust to std::string.
11717 (info_static_tracepoint_markers_command): Adjust to std::vector
11719 * target.h (static_tracepoint_marker_p): Remove typedef.
11720 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
11721 (struct target_ops) <to_static_tracepoint_marker_at>: Return
11723 <to_static_tracepoint_markers_by_strid>: Return std::vector.
11725 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
11726 (target_debug_print_std_vector_static_tracepoint_marker): New.
11727 (target_debug_print_struct_static_tracepoint_marker_p): Rename
11729 (target_debug_print_static_tracepoint_marker_p): ... this.
11730 * target-delegates.c: Re-generate.
11731 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
11733 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
11734 (decode_static_tracepoint_spec): Adjust to std::vector.
11735 (tracepoint_print_one_detail): Adjust to std::string.
11736 (strace_marker_decode_location): Adjust to std::string.
11737 (update_static_tracepoint): Adjust to std::string, remove call
11738 to release_static_tracepoint_marker.
11739 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
11740 Adjust to std::vector.
11741 * remote.c (remote_static_tracepoint_marker_at): Return bool.
11742 (remote_static_tracepoint_markers_by_strid): Adjust to
11744 * common/rsp-low.h (hex2str): New overload with explicit count
11746 * common/rsp-low.c (hex2str): New overload with explicit count
11748 * unittests/rsp-low-selftests.c (test_hex2str): New function.
11749 (_initialize_rsp_low_selftests): Add test_hex2str test.
11750 * unittests/tracepoint-selftests.c
11751 (test_parse_static_tracepoint_marker_definition): Adjust to
11754 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
11756 * tracepoint.c (parse_static_tracepoint_marker_definition):
11757 Consider case where the definition is followed by more
11759 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11760 tracepoint-selftests.c.
11761 * unittests/tracepoint-selftests.c: New.
11763 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
11765 * MAINTAINERS (Write After Approval): Add Pedro Franco de
11768 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11770 * symtab.c (find_pc_sect_line): fixed indentation.
11772 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
11774 * symtab.c (find_pc_sect_line): now uses binary search.
11776 2018-03-19 Tom Tromey <tom@tromey.com>
11778 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
11779 "IDENT" production.
11781 2018-03-19 Pedro Alves <palves@redhat.com>
11782 Tom Tromey <tom@tromey.com>
11784 * unittests/observable-selftests.c: New file.
11785 * common/observable.h: New file.
11786 * observable.h: New file.
11787 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
11788 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
11789 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
11790 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
11791 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
11792 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
11793 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
11794 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
11795 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
11796 python/py-breakpoint.c, python/py-finishbreakpoint.c,
11797 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
11798 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
11799 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
11800 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
11801 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
11802 tui/tui-interp.c, valops.c: Update all users.
11803 * tui/tui-hooks.c (tui_bp_created_observer)
11804 (tui_bp_deleted_observer, tui_bp_modified_observer)
11805 (tui_inferior_exit_observer, tui_before_prompt_observer)
11806 (tui_normal_stop_observer, tui_register_changed_observer):
11808 (tui_observers_token): New global.
11809 (attach_or_detach, tui_attach_detach_observers): New functions.
11810 (tui_install_hooks, tui_remove_hooks): Use
11811 tui_attach_detach_observers.
11812 * record-btrace.c (record_btrace_thread_observer): Remove.
11813 (record_btrace_thread_observer_token): New global.
11814 * observer.sh: Remove.
11815 * observer.c: Rename to observable.c.
11816 * observable.c (namespace gdb_observers): Define new objects.
11817 (observer_debug): Move into gdb_observers namespace.
11818 (struct observer, struct observer_list, xalloc_observer_list_node)
11819 (xfree_observer_list_node, generic_observer_attach)
11820 (generic_observer_detach, generic_observer_notify): Remove.
11821 (_initialize_observer): Update.
11822 Don't include observer.inc.
11823 * Makefile.in (generated_files): Remove observer.h, observer.inc.
11824 (clean mostlyclean): Likewise.
11825 (observer.h, observer.inc): Remove targets.
11826 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
11827 (COMMON_SFILES): Use observable.c, not observer.c.
11828 * .gitignore: Remove observer.h.
11830 2018-03-18 Tom Tromey <tom@tromey.com>
11832 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
11834 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
11836 2018-03-17 Tom Tromey <tom@tromey.com>
11838 * auto-load.c (auto_load_objfile_script_1): Use std::string.
11840 2018-03-17 Tom Tromey <tom@tromey.com>
11842 * target.c (class scoped_target_fd): New.
11843 (target_fileio_close_cleanup): Remove.
11844 (target_fileio_read_alloc_1): Use scoped_target_fd.
11846 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
11848 * silent-rules.mk: New.
11849 * Makefile.in: Include silent-rules.mk
11850 (srcdir, VPATH, top_srcdir): Move up.
11851 (COMPILE): Add ECHO_CXX.
11852 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
11853 (init.c): Add ECHO_INIT_C.
11854 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
11855 (version.c): Add ECHO_GEN.
11856 (printcmd.o): Add ECHO_CXX.
11857 (target-float.o): Add ECHO_CXX.
11858 (ada-exp.o): Add ECHO_CXX.
11859 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
11860 (insight$(EXEEXT)): Add ECHO_CXXLD.
11861 * gnulib/configure.ac: Add AM_SILENT_RULES.
11862 * gnulib/aclocal.m4: Re-generate.
11863 * gnulib/configure: Re-generate.
11864 * gnulib/import/Makefile.in: Re-generate.
11866 2018-03-16 Tom Tromey <tom@tromey.com>
11868 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
11869 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
11870 * utils.c (do_free_section_addr_info)
11871 (make_cleanup_free_section_addr_info): Remove.
11872 * symfile.h (struct other_sections): Add constructor.
11873 (struct section_addr_info): Remove.
11874 (section_addr_info): New typedef.
11875 (struct sym_fns) <sym_offsets>: Change type of parameter.
11876 (build_section_addr_info_from_objfile)
11877 (relative_addr_info_to_section_offsets, addr_info_make_relative)
11878 (default_symfile_offsets, symbol_file_add)
11879 (symbol_file_add_from_bfd)
11880 (build_section_addr_info_from_section_table): Update.
11881 (alloc_section_addr_info, free_section_addr_info): Don't declare.
11882 * symfile.c (alloc_section_addr_info): Remove.
11883 (build_section_addr_info_from_section_table): Change return type.
11885 (build_section_addr_info_from_bfd)
11886 (build_section_addr_info_from_objfile): Likewise.
11887 (free_section_addr_info): Remove.
11888 (relative_addr_info_to_section_offsets): Change type of "addrs".
11889 (addrs_section_compar): Now a std::sort comparator.
11890 (addrs_section_sort): Change return type.
11891 (addr_info_make_relative): Change type of "addrs". Update.
11892 (default_symfile_offsets, syms_from_objfile_1)
11893 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
11894 (symbol_file_add_separate): Update.
11895 (symbol_file_add): Change type of "addrs". Update.
11896 (add_symbol_file_command): Update. Remove cleanups.
11897 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
11899 * symfile-debug.c (debug_sym_offsets): Change type of "info".
11900 * solib.c (solib_read_symbols): Update.
11901 * objfiles.c (objfile_relocate): Update. Remove cleanups.
11902 * machoread.c (macho_symfile_offsets): Update.
11903 * jit.c (jit_bfd_try_read_symtab): Update.
11905 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
11907 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
11908 unittests/utils-selftests.c.
11909 * unittests/utils-selftests.c: New file.
11911 2018-03-14 Tom Tromey <tom@tromey.com>
11914 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
11917 2018-03-14 Tom Tromey <tom@tromey.com>
11920 * printcmd.c (printf_pointer): Allow "-" in format.
11922 2018-03-14 Tom Tromey <tom@tromey.com>
11924 * printcmd.c (_initialize_printcmd): Add usage to printf.
11926 2018-03-14 Yao Qi <qiyao@sourceware.org>
11928 * MAINTAINERS: Update my email address.
11930 2018-03-13 Tom Tromey <tom@tromey.com>
11932 * machoread.c (macho_check_dsym): Change filenamep to a
11934 (macho_symfile_read): Update.
11935 * symfile.c (load_command): Use std::string.
11937 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
11939 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
11940 to error message string.
11941 (riscv_register_name): Use xsnprintf instead of sprintf.
11942 (riscv_insn::fetch_instruction): Use gdb_assert instead of
11944 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
11946 (riscv_push_dummy_call): Likewise.
11948 2018-03-12 Tom Tromey <tom@tromey.com>
11950 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
11951 Use gdb::byte_vector.
11952 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
11954 2018-03-12 Yao Qi <yao.qi@linaro.org>
11956 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
11957 parameter type to readable_regcache.
11958 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
11961 2018-03-11 Tom Tromey <tom@tromey.com>
11963 * dwarf2read.c (struct nextfield): Add initializers.
11964 (struct nextfnfield): Remove.
11965 (struct fnfieldlist): Add initializers. Remove "length" and
11966 "head", use std::vector.
11967 (struct decl_field_list): Remove.
11968 (struct field_info): Add initializers.
11969 <fields, baseclasses>: Now std::vector.
11970 <nbaseclasses, nfnfields, typedef_field_list_count,
11971 nested_types_list_count>: Remove.
11972 (dwarf2_add_field, dwarf2_add_type_defn)
11973 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
11974 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
11975 (process_structure_scope): Update.
11977 2018-03-11 Tom Tromey <tom@tromey.com>
11979 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
11980 for use by std::sort.
11981 (build_type_psymtabs_1): Use std::vector.
11983 2018-03-09 Eli Zaretskii <eliz@gnu.org>
11985 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
11986 and LIBMPFR in the printed configuration.
11988 2018-03-08 Tom Tromey <tom@tromey.com>
11990 * source.c (get_filename_and_charpos): Use scoped_fd.
11991 * nto-procfs.c (procfs_open_1): Use scoped_fd.
11992 (procfs_pidlist): Likewise.
11993 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
11994 (iterate_over_mappings): Likewise.
11996 2018-03-08 Tom Tromey <tom@tromey.com>
11998 * infcall.c (struct call_return_meta_info)
11999 <stack_temporaries_enabled>: Remove.
12000 (get_call_return_value, call_function_by_hand_dummy): Update.
12001 * thread.c (disable_thread_stack_temporaries): Remove.
12002 (enable_thread_stack_temporaries): Remove.
12003 (thread_stack_temporaries_enabled_p): Return bool.
12004 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
12005 (get_last_thread_stack_temporary): Update.
12006 * eval.c (evaluate_subexp): Update.
12007 * gdbthread.h (class enable_thread_stack_temporaries): Now a
12008 class, not a function.
12009 (value_ptr, value_vec): Remove typedefs.
12010 (class thread_info) <stack_temporaries_enabled>: Now bool.
12011 <stack_temporaries>: Now a std::vector.
12012 (thread_stack_temporaries_enabled_p)
12013 (value_in_thread_stack_temporaries): Return bool.
12015 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
12017 * remote.c (putpkt_binary): Fix omitted bytes reporting.
12018 (getpkt_or_notif_sane_1): Likewise.
12020 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12022 * build-id.c (build_id_to_debug_bfd): Use std::string.
12024 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12026 * build-id.c (find_separate_debug_file_by_buildid): Return
12028 * build-id.h (find_separate_debug_file_by_buildid): Return
12030 * coffread.c (coff_symfile_read): Adjust to std::string.
12031 * elfread.c (elf_symfile_read): Adjust to std::string.
12032 * symfile.c (separate_debug_file_exists): Change parameter to
12034 (find_separate_debug_file): Return std::string.
12035 (find_separate_debug_file_by_debuglink): Return std::string.
12036 * symfile.h (find_separate_debug_file_by_debuglink): Return
12039 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
12041 * common/xml-utils.c (xml_escape_text): Move code to...
12042 (xml_escape_text_append): ... this new function.
12043 * common/xml-utils.h (xml_escape_text_append): New declaration.
12044 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
12046 (_initialize_xml_utils): register test_xml_escape_text_append as
12049 2018-03-07 Alan Hayward <alan.hayward@arm.com>
12051 * defs.h: Remove MAX_REGISTER_SIZE.
12052 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
12054 * python/py-unwind.c (pyuw_sniffer): Likewise.
12056 2018-03-07 Tom Tromey <tom@tromey.com>
12058 * linux-tdep.c (linux_info_proc): Update.
12059 * target.h (struct target_ops) <to_fileio_readlink>: Return
12061 (target_fileio_readlink): Return optional<string>.
12062 * remote.c (remote_hostio_readlink): Return optional<string>.
12063 * inf-child.c (inf_child_fileio_readlink): Return
12065 * target.c (target_fileio_readlink): Return optional<string>.
12067 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
12069 * regcache.c (cooked_read_test): Add riscv to the list of
12070 architectures that have a save_reggroup.
12072 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
12074 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
12075 value is not a dynamic class object.
12077 2018-03-06 Tom Tromey <tom@tromey.com>
12079 * rust-exp.y: Formatting fixes.
12081 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12083 * riscv-tdep.c (riscv_register_name): Remove target description
12085 (riscv_gdbarch_init): Remove target description check.
12087 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12089 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
12091 * riscv-tdep.h: Likewise.
12093 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12095 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
12096 (riscv_pseudo_register_write): Delete.
12097 (riscv_gdbarch_init): Remove all use of pseudo registers.
12099 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12101 * record-btrace.c (btrace_print_lines): Replace cleanup
12102 parameter with RAII equivalents.
12103 (btrace_insn_history): Replace cleanup with RAII equivalents.
12104 * ui-out.h (make_cleanup_ui_out_list_begin_end,
12105 make_cleanup_ui_out_tuple_begin_end): Remove.
12106 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
12107 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
12108 make_cleanup_ui_out_list_begin_end): Remove.
12110 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12112 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
12113 parameter types to std::vector. Use bool.
12114 (record_btrace_wait): Replace VEC(tp_t) with
12115 std::vector<thread_info *>.
12116 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
12118 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
12120 * record-btrace.c (record_btrace_disable_callback): Remove.
12121 (struct scoped_btrace_disable): New.
12122 (record_btrace_open): Use scoped_btrace_disable.
12124 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12126 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
12127 reading values from registers.
12129 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12131 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
12134 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12136 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
12137 change parameter type. Use GDB's print functions, and use
12138 core_addr_to_string where appropriate.
12139 (riscv_push_dummy_call): Use core_addr_to_string where
12140 appropriate, update call to riscv_print_arg_location, and reindent
12142 (riscv_return_value): Update call to riscv_print_arg_location.
12144 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12145 Tim Newsome <tim@sifive.com>
12146 Albert Ou <a0u@eecs.berkeley.edu>
12147 Darius Rad <darius@bluespec.com>
12149 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
12150 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
12151 (ALLDEPFILES): Add riscv-tdep.c
12152 * configure.tgt: Add riscv support.
12153 * riscv-tdep.c: New file.
12154 * riscv-tdep.h: New file.
12155 * NEWS: Mention new target.
12156 * MAINTAINERS: Add entry for riscv.
12158 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
12160 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
12161 fields within aggregates.
12163 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
12165 * record-btrace.c (btrace_print_lines): Change type of flags to
12166 gdb_disassembly_flags.
12168 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12170 * fbsd-nat.c: Include "inf-ptrace.h".
12171 (USE_SIGTRAP_SIGINFO): Conditionally define.
12172 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
12173 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
12174 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
12176 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
12178 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
12180 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
12181 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
12182 "supports_stopped_by_hw_breakpoint" target methods.
12184 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12186 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
12187 * fbsd-nat.c (debug_fbsd_nat): New variable.
12188 (show_fbsd_nat_debug): New function.
12189 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
12190 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
12192 2018-03-04 John Baldwin <jhb@FreeBSD.org>
12194 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
12195 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
12197 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
12198 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
12201 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12203 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
12204 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
12206 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12208 * charset.c (struct charset_vector): New.
12209 (charsets): Change type to charset_vector.
12210 (find_charset_names): Adjust.
12212 (_initialize_charset): Adjust.
12214 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12216 * progspace.h (struct program_space) <deleted_solibs>: Change
12217 type to std::vector<std::string>.
12218 * progspace.c (clear_program_space_solib_cache): Adjust.
12219 * breakpoint.c (print_solib_event): Adjust.
12220 (check_status_catch_solib): Adjust.
12221 * solib.c (update_solib_list): Adjust.
12222 * ui-out.h (class ui_out) <field_string>: New overload.
12223 * ui-out.c (ui_out::field_string): New overload.
12225 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12227 * progspace.h (struct program_space): Add constructor and
12228 destructor, initialize fields.
12229 (add_program_space): Remove.
12230 * progspace.c (add_program_space): Rename to...
12231 (program_space::program_space): ... this.
12232 (release_program_space): Rename to...
12233 (program_space::~program_space): ... this.
12234 (delete_program_space): Use delete to delete program_space.
12235 (initialize_progspace): Use new to allocate program_space.
12236 * inferior.c (add_inferior_with_spaces): Likewise.
12237 (clone_inferior_command): Likewise.
12238 * infrun.c (follow_fork_inferior): Likewise.
12239 (handle_vfork_child_exec_or_exit): Likewise.
12241 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12243 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
12244 (delim_string_to_char_ptr_vec): Return std::vector of
12245 gdb::unique_xmalloc_ptr.
12246 (dirnames_to_char_ptr_vec_append): Take std::vector of
12247 gdb::unique_xmalloc_ptr.
12248 (dirnames_to_char_ptr_vec): Return std::vector of
12249 gdb::unique_xmalloc_ptr.
12250 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
12251 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
12252 (delim_string_to_char_ptr_vec): Return an std::vector of
12253 gdb::unique_xmalloc_ptr, adjust the code.
12254 (dirnames_to_char_ptr_vec_append): Take an std::vector of
12255 gdb::unique_xmalloc_ptr, adjust the code.
12256 (dirnames_to_char_ptr_vec): Return an std::vector of
12257 gdb::unique_xmalloc_ptr, adjust the code.
12258 * auto-load.c (auto_load_safe_path_vec): Change type to
12259 std::vector of gdb::unique_xmalloc_ptr.
12260 (auto_load_expand_dir_vars): Return an std::vector of
12261 gdb::unique_xmalloc_ptr, adjust the code.
12262 (auto_load_safe_path_vec_update): Adjust.
12263 (filename_is_in_auto_load_safe_path_vec): Adjust.
12264 (auto_load_objfile_script_1): Adjust.
12265 * build-id.c (build_id_to_debug_bfd): Adjust.
12266 * linux-thread-db.c (thread_db_load_search): Adjust.
12267 * source.c (add_path): Adjust.
12269 * symfile.c (find_separate_debug_file): Adjust.
12270 * utils.c (do_free_char_ptr_vec): Remove.
12271 (make_cleanup_free_char_ptr_vec): Remove.
12273 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
12276 * common/pathstuff.c: Conditionally include "<windows.h>".
12278 2018-03-01 Georg Sauthoff <mail@georg.so>
12281 * gcore.in: Quote variables and switch interpreter to bash.
12283 2018-03-01 Tom Tromey <tom@tromey.com>
12285 * dwarf2read.c (alloc_discriminant_info): Fix default_index
12286 assertion. Add assertion for discriminant_index.
12287 (quirk_rust_enum): Use correct base type name in univariant case.
12289 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
12291 * record.c (get_call_history_modifiers): Return a
12292 record_print_flags.
12293 (cmd_record_call_history): Adjust.
12294 * record-btrace.c (record_btrace_call_history): Adjust.
12295 (record_btrace_call_history_range): Adjust.
12296 (record_btrace_call_history_from): Adjust.
12297 * target-debug.h (target_debug_print_record_print_flags): New.
12298 * target-delegates.c: Re-generate.
12299 * target.c (target_call_history): Change flags type.
12300 (target_call_history_from): Likewise.
12301 (target_call_history_range): Likewise.
12302 * target.h (struct target_ops) <target_call_history>: Likewise.
12303 (target_call_history_from): Likewise.
12304 (target_call_history_range): Likewise.
12306 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12307 Simon Marchi <simon.marchi@polymtl.ca>
12309 * common/common-utils.c: Include "sys/stat.h".
12310 (is_regular_file): Move here from "source.c"; change return
12312 * common/common-utils.h (is_regular_file): New prototype.
12313 * common/pathstuff.c (contains_dir_separator): New function.
12314 * common/pathstuff.h (contains_dir_separator): New prototype.
12315 * source.c: Don't include "sys/stat.h".
12316 (is_regular_file): Move to "common/common-utils.c".
12318 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
12320 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
12321 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
12322 * auto-load.c: Include "common/pathstuff.h".
12323 * common/common-def.h (current_directory): Move here.
12324 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
12326 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
12328 * common/pathstuff.c: New file.
12329 * common/pathstuff.h: New file.
12330 * compile/compile.c: Include "common/pathstuff.h".
12331 * defs.h (current_directory): Move to "common/common-defs.h".
12332 * dwarf2read.c: Include "common/pathstuff.h".
12333 * exec.c: Likewise.
12334 * guile/scm-safe-call.c: Likewise.
12335 * linux-thread-db.c: Likewise.
12336 * main.c: Likewise.
12337 * nto-tdep.c: Likewise.
12338 * objfiles.c: Likewise.
12339 * source.c: Likewise.
12340 * symtab.c: Likewise.
12341 * utils.c: Include "common/pathstuff.h".
12342 (gdb_realpath): Move to "common/pathstuff.c".
12343 (gdb_realpath_keepfile): Likewise.
12344 (gdb_abspath): Likewise.
12345 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
12346 (gdb_realpath_keepfile): Likewise.
12347 (gdb_abspath): Likewise.
12349 2018-02-28 John Baldwin <jhb@FreeBSD.org>
12351 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
12352 wildcard process pid for super_resume for kernels with a
12355 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
12357 * compile/compile.c (get_args): Add additional comments
12358 explaining function.
12360 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
12361 Tom Tromey <tom@tromey.com>
12363 * target.h (memory_write_request_s): Remove typedef. Don't define
12365 (target_write_memory_blocks): Change argument to std::vector.
12366 (struct memory_write_request): Add constructor.
12367 * target-memory.c (compare_block_starting_address): Return bool.
12368 Change argument types.
12369 (claim_memory): Change arguments to use std::vector.
12370 (split_regular_and_flash_blocks, blocks_to_erase)
12371 (compute_garbled_blocks): Likewise.
12372 (cleanup_request_data, cleanup_write_requests_vector): Remove.
12373 (target_write_memory_blocks): Change argument to std::vector.
12374 * symfile.c (struct load_section_data): Add constructor and
12375 destructor. Use std::vector for "requests".
12376 (struct load_progress_data): Add initializers.
12377 (load_section_callback): Update. Use "new".
12378 (clear_memory_write_data): Remove.
12379 (generic_load): Update.
12381 2018-02-27 Alan Hayward <alan.hayward@arm.com>
12383 * arch/aarch64.h: Use common/tdesc.h.
12385 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12387 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
12388 architecture with a 64-bit ABI.
12390 2018-02-26 Maciej W. Rozycki <macro@mips.com>
12392 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
12393 ahead of target description loading.
12395 2018-02-26 Tom Tromey <tom@tromey.com>
12397 * stack.c (backtrace_command_1): Update.
12398 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
12400 * python/py-framefilter.c (py_print_frame)
12401 (gdbpy_apply_frame_filter): Change type of "flags".
12402 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
12404 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
12405 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
12406 * extension.h (enum frame_filter_flag): Rename from
12407 frame_filter_flags.
12408 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
12409 (apply_ext_lang_frame_filter): Change type of "flags".
12410 * extension.c (apply_ext_lang_frame_filter): Change type of
12412 * extension-priv.h (struct extension_language_ops)
12413 <apply_frame_filter>: Change type of "flags".
12415 2018-02-26 Tom Tromey <tom@tromey.com>
12418 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
12419 off-by-one in py_end computation.
12420 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
12422 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
12425 2018-02-26 Tom Tromey <tom@tromey.com>
12427 * dwarf2read.c (struct variant_field): New.
12428 (struct nextfield) <variant>: New field.
12429 (dwarf2_add_field): Handle DW_TAG_variant_part.
12430 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
12431 discriminated union.
12432 (read_structure_type): Handle DW_TAG_variant_part.
12433 (handle_struct_member_die): New function, extracted from
12434 process_structure_scope. Handle DW_TAG_variant.
12435 (process_structure_scope): Handle discriminated unions. Call
12436 handle_struct_member_die.
12438 2018-02-26 Tom Tromey <tom@tromey.com>
12440 * rust-lang.h (rust_last_path_segment): Declare.
12441 * rust-lang.c (rust_last_path_segment): Now public. Change
12443 (struct disr_info): Remove.
12444 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
12445 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
12446 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
12447 (rust_enum_p, rust_enum_variant): New function.
12448 (rust_underscore_fields): Remove "offset" parameter.
12449 (rust_print_enum): New function.
12450 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
12451 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
12452 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
12454 (rust_internal_print_type): New function, from rust_print_type.
12456 (rust_print_type): Call rust_internal_print_type.
12457 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
12458 Update enum handling.
12459 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
12460 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
12461 (rust_union_quirks): New functions.
12462 (process_full_comp_unit, process_full_type_unit): Call
12464 (process_structure_scope): Update rust_unions if necessary.
12466 2018-02-26 Tom Tromey <tom@tromey.com>
12468 * value.h (value_union_variant): Declare.
12469 * valops.c (value_union_variant): New function.
12470 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
12471 (struct discriminant_info): New.
12472 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
12474 (struct main_type) <flag_discriminated_union>: New field.
12476 2018-02-26 Tom Tromey <tom@tromey.com>
12478 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12479 unittests/unpack-selftests.c.
12480 * unittests/unpack-selftests.c: New file.
12481 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
12483 2018-02-26 Yao Qi <yao.qi@linaro.org>
12485 * dwarf2read.c (struct partial_die_info) <read>: New method.
12486 (read_partial_die): Remove the declaration.
12487 (load_partial_dies): Update.
12488 (partial_die_info::partial_die_info):
12489 (read_partial_die): Change it to partial_die_info::read.
12491 2018-02-26 Yao Qi <yao.qi@linaro.org>
12493 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
12494 (fixup_partial_die): Remove declaration.
12495 (scan_partial_symbols): Update.
12496 (partial_die_parent_scope): Likewise.
12497 (partial_die_full_name): Likewise.
12498 (fixup_partial_die): Change it to partial_die_info::fixup.
12500 2018-02-26 Yao Qi <yao.qi@linaro.org>
12502 * dwarf2read.c (read_partial_die): Update the declaration.
12503 (load_partial_dies): Caller update.
12504 (read_partial_die): Remove one argument abbrev_len.
12506 2018-02-26 Yao Qi <yao.qi@linaro.org>
12508 * dwarf2read.c (struct partial_die_info): Add ctor, delete
12509 assignment operator.
12510 (load_partial_dies): Use ctor and copy ctor.
12511 (read_partial_die): Update.
12512 (dwarf2_cu::find_partial_die): Use ctor.
12514 2018-02-26 Yao Qi <yao.qi@linaro.org>
12516 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
12517 (find_partial_die_in_comp_unit): Change it to
12518 dwarf2_cu::find_partial_die.
12519 (find_partial_die): Update.
12521 2018-02-26 Yao Qi <yao.qi@linaro.org>
12523 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
12526 2018-02-26 Yao Qi <yao.qi@linaro.org>
12528 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
12530 2018-02-26 Alan Hayward <alan.hayward@arm.com>
12532 * arch/amd64.h: Use common/tdesc.h.
12533 * arch/i386.c: Likewise.
12534 * arch/i386.h: Likewise.
12535 * arch/tic6x.c: Likewise.
12536 * arch/tdesc.h: Move file from here...
12537 * common/tdesc.h: ...to here.
12538 * features/aarch64-core.c: Regenerate.
12539 * features/aarch64-fpu.c: Regenerate.
12540 * features/i386/32bit-avx.c: Regenerate.
12541 * features/i386/32bit-avx512.c: Regenerate.
12542 * features/i386/32bit-core.c: Regenerate.
12543 * features/i386/32bit-linux.c: Regenerate.
12544 * features/i386/32bit-mpx.c: Regenerate.
12545 * features/i386/32bit-pkeys.c: Regenerate.
12546 * features/i386/32bit-sse.c: Regenerate.
12547 * features/i386/64bit-avx.c: Regenerate.
12548 * features/i386/64bit-avx512.c: Regenerate.
12549 * features/i386/64bit-core.c: Regenerate.
12550 * features/i386/64bit-linux.c: Regenerate.
12551 * features/i386/64bit-mpx.c: Regenerate.
12552 * features/i386/64bit-pkeys.c: Regenerate.
12553 * features/i386/64bit-segments.c: Regenerate.
12554 * features/i386/64bit-sse.c: Regenerate.
12555 * features/i386/x32-core.c: Regenerate.
12556 * features/tic6x-c6xp.c: Regenerate.
12557 * features/tic6x-core.c: Regenerate.
12558 * features/tic6x-gp.c: Regenerate.
12559 * target-descriptions.c: Use common/tdesc.h.
12560 * target-descriptions.h: Likewise.
12562 2018-02-24 Tom Tromey <tom@tromey.com>
12564 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
12565 (try_thread_db_load_from_dir, thread_db_load_search): Use
12567 (info_auto_load_libthread_db_compare): Return bool. Change
12569 (info_auto_load_libthread_db): Use std::vector, std::string.
12572 2018-02-24 Tom Tromey <tom@tromey.com>
12574 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
12576 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
12578 * gdbarch.c: Rebuild.
12579 * gdbarch.h: Rebuild.
12580 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
12581 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
12582 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
12585 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
12587 * gdbtypes.h (sect_offset): Change type to uint64_t.
12588 (sect_offset_str): New function.
12589 * dwarf2read.c (create_addrmap_from_aranges): Use
12591 (error_check_comp_unit_head): Likewise.
12592 (create_debug_type_hash_table): Likewise.
12593 (read_cutu_die_from_dwo): Likewise.
12594 (init_cutu_and_read_dies): Likewise.
12595 (init_cutu_and_read_dies_no_follow): Likewise.
12596 (process_psymtab_comp_unit_reader): Likewise.
12597 (partial_die_parent_scope): Likewise.
12598 (peek_die_abbrev): Likewise.
12599 (process_queue): Likewise.
12600 (dwarf2_physname): Likewise.
12601 (read_namespace_alias): Likewise.
12602 (read_import_statement): Likewise.
12603 (create_dwo_cu_reader): Likewise.
12604 (create_cus_hash_table): Likewise.
12605 (lookup_dwo_cutu): Likewise.
12606 (inherit_abstract_dies): Likewise.
12607 (read_func_scope): Likewise.
12608 (read_call_site_scope): Likewise.
12609 (dwarf2_add_member_fn): Likewise.
12610 (read_common_block): Likewise.
12611 (read_module_type): Likewise.
12612 (read_typedef): Likewise.
12613 (read_subrange_type): Likewise.
12614 (load_partial_dies): Likewise.
12615 (read_partial_die): Likewise.
12616 (find_partial_die): Likewise.
12617 (read_str_index): Likewise.
12618 (dwarf2_string_attr): Likewise.
12619 (build_error_marker_type): Likewise.
12620 (lookup_die_type): Likewise.
12621 (dump_die_shallow): Likewise.
12622 (follow_die_ref): Likewise.
12623 (dwarf2_fetch_die_loc_sect_off): Likewise.
12624 (dwarf2_fetch_constant_bytes): Likewise.
12625 (follow_die_sig): Likewise.
12626 (get_signatured_type): Likewise.
12627 (get_DW_AT_signature_type): Likewise.
12628 (dwarf2_find_containing_comp_unit): Likewise.
12629 (set_die_type): Likewise.
12631 2018-02-21 John Baldwin <jhb@FreeBSD.org>
12633 * arch/aarch64.c: Include "common-defs.h".
12634 * arch/amd64.c: Likewise.
12635 * arch/i386.c: Likewise.
12637 2018-02-21 Tom Tromey <tom@tromey.com>
12639 * value.h: (extract_field_op): Update.
12640 * eval.c (extract_field_op): Return a const char *.
12641 * expression.h (parse_expression_for_completion): Update.
12642 * completer.c (complete_expression): Update.
12643 (add_struct_fields): Make fieldname const.
12644 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
12645 (mark_completion_tag, parse_exp_in_context_1): Update.
12646 (parse_expression_for_completion): Change "name" to
12647 unique_xmalloc_ptr*.
12649 2018-02-21 Tom Tromey <tom@tromey.com>
12651 * infcall.c (call_function_by_hand_dummy): Use std::vector.
12653 2018-02-21 Yao Qi <yao.qi@linaro.org>
12655 * avr-tdep.c (avr_read_pc): Change parameter type to
12657 * gdbarch.sh (read_pc): Likewise.
12658 * gdbarch.c: Re-generated.
12659 * gdbarch.h: Re-generated.
12660 * hppa-tdep.c (hppa_read_pc): Change parameter type to
12662 * ia64-tdep.c (ia64_read_pc): Likewise.
12663 * mips-tdep.c (mips_read_pc): Likewise.
12664 * spu-tdep.c (spu_read_pc): Likewise.
12666 2018-02-21 Yao Qi <yao.qi@linaro.org>
12668 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
12669 * regcache-dump.c: New file.
12670 * regcache.c: Move register_dump to regcache-dump.c.
12671 (maintenance_print_registers): Likewise.
12672 (maintenance_print_raw_registers): Likewise.
12673 (maintenance_print_cooked_registers): Likewise.
12674 (maintenance_print_register_groups): Likewise.
12675 (maintenance_print_remote_registers): Likewise.
12676 (_initialize_regcache): Likewise.
12677 * regcache.h (register_dump): Moved from regcache.c.
12679 2018-02-21 Yao Qi <yao.qi@linaro.org>
12681 * regcache.c (regcache::regcache): Update.
12682 (regcache::invalidate): Move it to detached_regcache::invalidate.
12683 (get_thread_arch_aspace_regcache): Update.
12684 (regcache::raw_update): Update.
12685 (regcache::cooked_read): Remove some code.
12686 (regcache::cooked_read_value): Likewise.
12687 (regcache::raw_write): Remove assert on m_readonly_p.
12688 (regcache::raw_supply_integer): Move it to
12689 detached_regcache::raw_supply_integer.
12690 (regcache::raw_supply_zeroed): Likewise.
12691 * regcache.h (detached_regcache) <raw_supply_integer>: New
12693 <raw_supply_zeroed, invalidate>: Likewise.
12694 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
12695 <invalidate>: Likewise.
12696 <m_readonly_p>: Removed.
12698 2018-02-21 Yao Qi <yao.qi@linaro.org>
12700 * infcmd.c (get_return_value): Let stop_regs point to
12701 get_current_regcache.
12702 * regcache.c (regcache::regcache): Remove.
12703 (register_dump_reg_buffer): New class.
12704 (regcache_print): Adjust.
12705 * regcache.h (regcache): Remove constructors.
12707 2018-02-21 Yao Qi <yao.qi@linaro.org>
12709 * regcache.c (class register_dump): New class.
12710 (register_dump_regcache, register_dump_none): New class.
12711 (register_dump_remote, register_dump_groups): New class.
12712 (regcache_print): Update.
12713 * regcache.h (regcache_dump_what): Move it to regcache.c.
12714 (regcache) <dump>: Remove.
12716 2018-02-21 Yao Qi <yao.qi@linaro.org>
12718 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
12720 (jit_unwind_reg_set_impl): Call raw_supply.
12721 (jit_frame_sniffer): Use reg_buffer_rw.
12722 * record-full.c (record_full_core_regbuf): Change its type.
12723 (record_full_core_open_1): Use reg_buffer_rw.
12724 (record_full_close): Likewise.
12725 (record_full_core_fetch_registers): Use regcache->raw_supply.
12726 (record_full_core_store_registers): Likewise.
12727 * regcache.c (regcache::get_register_status): Move it to
12729 (regcache_raw_set_cached_value): Remove.
12730 (regcache::raw_set_cached_value): Remove.
12731 (regcache::raw_write): Call raw_supply.
12732 (regcache::raw_supply): Move it to reg_buffer_rw.
12733 * regcache.h (regcache_raw_set_cached_value): Remove.
12734 (reg_buffer_rw): New class.
12736 2018-02-21 Yao Qi <yao.qi@linaro.org>
12738 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
12739 readonly_detached_regcache.
12740 (dummy_frame_prev_register): Use regcache->cooked_read.
12741 * frame.c (frame_save_as_regcache): Change return type.
12742 (frame_pop): Update.
12743 * frame.h (frame_save_as_regcache): Update declaration.
12744 * inferior.h (get_infcall_suspend_state_regcache): Update
12746 * infrun.c (infcall_suspend_state) <registers>: use
12747 readonly_detached_regcache.
12748 (save_infcall_suspend_state): Don't use regcache_dup.
12749 (get_infcall_suspend_state_regcache): Change return type.
12750 * linux-fork.c (struct fork_info) <savedregs>: Change to
12751 readonly_detached_regcache.
12753 (fork_save_infrun_state): Don't use regcache_dup.
12754 (info_checkpoints_command): Adjust.
12755 * mi/mi-main.c (register_changed_p): Update declaration.
12756 (mi_cmd_data_list_changed_registers): Use
12757 readonly_detached_regcache.
12758 (register_changed_p): Change parameter type to
12759 readonly_detached_regcache.
12760 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
12761 readonly_detached_regcache.
12762 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
12763 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
12765 (regcache::save): Move it to reg_buffer.
12766 (regcache::restore): Change parameter type.
12767 (regcache_dup): Remove.
12768 * regcache.h (reg_buffer) <save>: New method.
12769 (readonly_detached_regcache): New class.
12770 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
12771 readonly_detached_regcache.
12772 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
12774 2018-02-21 Yao Qi <yao.qi@linaro.org>
12776 * frame.c (frame_save_as_regcache): Use regcache method save.
12777 (frame_pop): Use regcache method restore.
12778 * infrun.c (restore_infcall_suspend_state): Likewise.
12779 * linux-fork.c (fork_load_infrun_state): Likewise.
12780 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
12782 * regcache.c (regcache_save): Remove.
12783 (regcache::restore): More asserts.
12784 (regcache_cpy): Remove.
12785 * regcache.h (regcache_save): Remove the declaration.
12786 (regcache::restore): Move from private to public.
12787 Remove the friend declaration of regcache_cpy.
12788 (regcache_cpy): Remove declaration.
12790 2018-02-21 Yao Qi <yao.qi@linaro.org>
12792 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
12793 parameter type to 'readable_regcache *'.
12794 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
12795 * arm-tdep.c (arm_neon_quad_read): Likewise.
12796 (arm_pseudo_read): Likewise.
12797 * avr-tdep.c (avr_pseudo_register_read): Likewise.
12798 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
12799 * frv-tdep.c (frv_pseudo_register_read): Likewise.
12800 * gdbarch.c: Re-generated.
12801 * gdbarch.h: Re-generated.
12802 * gdbarch.sh (pseudo_register_read): Change parameter type to
12803 'readable_regcache *'.
12804 (pseudo_register_read_value): Likewise.
12805 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
12806 (h8300_pseudo_register_read): Likewise.
12807 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
12808 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
12809 (i386_pseudo_register_read_into_value): Likewise.
12810 (i386_pseudo_register_read_value): Likewise.
12811 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
12813 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
12814 * m32c-tdep.c (m32c_raw_read): Likewise.
12815 (m32c_read_flg): Likewise.
12816 (m32c_banked_register): Likewise.
12817 (m32c_banked_read): Likewise.
12818 (m32c_sb_read): Likewise.
12819 (m32c_part_read): Likewise.
12820 (m32c_cat_read): Likewise.
12821 (m32c_r3r2r1r0_read): Likewise.
12822 (m32c_pseudo_register_read): Likewise.
12823 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
12824 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
12825 (mep_pseudo_cr64_read): Likewise.
12826 (mep_pseudo_register_read): Likewise.
12827 * mips-tdep.c (mips_pseudo_register_read): Likewise.
12828 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
12829 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
12830 * regcache.c (regcache::raw_read): Move it to readable_regcache.
12831 (regcache::cooked_read): Likewise.
12832 (regcache::cooked_read_value): Likewise.
12833 (regcache_cooked_read_signed):
12834 (regcache::cooked_read): Likewise.
12835 * regcache.h (readable_regcache): New class.
12836 (regcache): Inherit readable_regcache. Move some methods to
12838 * rl78-tdep.c (rl78_pseudo_register_read): Change
12839 parameter type to 'readable_regcache *'.
12840 * rs6000-tdep.c (do_regcache_raw_read): Remove.
12841 (e500_pseudo_register_read): Change parameter type to
12842 'readable_regcache *'.
12843 (dfp_pseudo_register_read): Likewise.
12844 (vsx_pseudo_register_read): Likewise.
12845 (efpr_pseudo_register_read): Likewise.
12846 * s390-tdep.c (s390_pseudo_register_read): Likewise.
12847 * sh-tdep.c (sh_pseudo_register_read): Likewise.
12848 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
12849 (sh64_pseudo_register_read): Likewise.
12850 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
12851 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
12852 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
12853 (spu_pseudo_register_read): Likewise.
12854 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
12855 (xtensa_pseudo_register_read): Likewise.
12857 2018-02-21 Yao Qi <yao.qi@linaro.org>
12859 * regcache.c (regcache::regcache): Call reg_buffer ctor.
12860 (regcache::arch): Move it to reg_buffer::arch.
12861 (regcache::register_buffer): Likewise.
12862 (regcache::assert_regnum): Likewise.
12863 (regcache::num_raw_registers): Likewise.
12864 * regcache.h (reg_buffer): New class.
12865 (regcache): Inherit reg_buffer.
12867 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
12869 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
12870 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
12872 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
12874 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
12876 2018-02-19 Alan Hayward <alan.hayward@arm.com>
12878 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
12879 (SFILES): Remove common/*.c files.
12880 (COMMON_OBS): Remove some *.o files built from common/*.c files.
12881 * common/common.host: Add common reference.
12882 * configure.ac: Likewise.
12883 * configure: Regenerate.
12885 2018-02-16 Yao Qi <yao.qi@linaro.org>
12887 * block.c (block_namespace_info): Inherit allocate_on_obstack.
12888 (block_initialize_namespace): Use new.
12889 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
12890 (dwarf2_free_objfile): Use delete.
12891 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
12892 (copy_type_recursive): Use new.
12893 * gdb_obstack.h (allocate_on_obstack): New.
12895 2018-02-15 Yao Qi <yao.qi@linaro.org>
12898 * inferior.c (exit_inferior_1): Reset inf->control.
12900 2018-02-15 Joel Brobecker <brobecker@adacore.com>
12902 * ada-lang.c (ada_to_fixed_value_create): Delete advance
12905 2018-02-14 Pedro Alves <palves@redhat.com>
12907 * frame-unwind.c (frame_unwind_try_unwinder): Always call
12908 frame_cleanup_after_sniffer on exception.
12910 2018-02-14 Tom Tromey <tom@tromey.com>
12912 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
12914 (solib_bfd_open): Make pathname const.
12915 * solib.c (solib_bfd_open): Make pathname const.
12916 * solib-spu.c (spu_bfd_fopen): Make name const.
12917 (spu_bfd_open): Make pathname const.
12918 * solib-darwin.c (darwin_bfd_open): Make pathname const.
12919 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
12921 2018-02-14 Tom Tromey <tom@tromey.com>
12923 * symfile.c (symfile_bfd_open): Update.
12924 * source.h (openp, source_full_path_of, find_and_open_source):
12925 Change argument type to unique_xmalloc_ptr.
12926 * source.c (openp): Take a unique_xmalloc_ptr.
12927 (source_full_path_of, find_and_open_source): Likewise.
12928 (open_source_file, symtab_to_fullname): Update.
12929 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
12930 unique_xmalloc_ptr.
12931 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
12932 (exec_file_find): Update.
12933 * psymtab.c (psymtab_to_fullname): Update.
12934 * nto-tdep.h (nto_find_and_open_solib): Update.
12935 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
12936 unique_xmalloc_ptr.
12937 * exec.c (exec_file_attach): Update.
12938 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
12939 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
12941 2018-02-14 Tom Tromey <tom@tromey.com>
12943 * solib.c: Include source.h.
12944 * nto-tdep.c: Include source.h.
12945 * mi/mi-cmd-env.c: Include source.h.
12946 * infcmd.c: Include source.h.
12947 * exec.c: Include source.h.
12948 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
12949 (add_path, directory_switch, source_path, init_source_path): Move
12951 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
12952 (add_path, directory_switch, source_path, init_source_path):
12955 2018-02-14 Tom Tromey <tom@tromey.com>
12957 * solist.h (exec_file_find, solib_find): Return
12958 unique_xmalloc_ptr.
12959 (solib_bfd_fopen): Take a const char *.
12960 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
12961 (exec_file_find, solib_find): Likewise.
12962 (solib_bfd_fopen): Do not take ownership of "pathname".
12963 (solib_bfd_open): Use unique_xmalloc_ptr.
12964 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
12965 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
12966 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
12967 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
12969 2018-02-14 Joel Brobecker <brobecker@adacore.com>
12971 * ada-lang.c (name_match_type_from_name): Remove reference to
12972 ada_name_for_lookup in function's documentation.
12973 * ada-lang.h (ada_name_for_lookup): Delete declaration.
12975 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12977 * defs.h (enum openp_flags): New enum.
12978 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
12979 Move to enum openp_flags.
12980 (openp_flags): New enum flags.
12981 (openp): Change parameter type to openp_flags.
12982 * source.c (openp): Change parameter type to openp_flags.
12983 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
12984 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
12986 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
12988 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
12991 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
12993 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
12995 (class dwarf2_queue_guard): ...the destructor of this new class.
12996 (dw2_do_instantiate_symtab): Create instance of the new class
12997 dwarf2_queue_guard, remove cleanup.
12999 2018-02-09 Tom Tromey <tom@tromey.com>
13001 * source.c (find_source_lines): Don't reference past the end of
13004 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13006 * remote.c (remote_btrace_maybe_reopen): Change error message.
13007 * btrace.c (btrace_enable): Likewise.
13008 (parse_xml_btrace): Likewise.
13009 (parse_xml_btrace_conf): Likewise.
13011 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13013 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
13014 (linux_enable_pt, linux_enable_bts): Call
13015 diagnose_perf_event_open_fail.
13017 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13019 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
13020 Remove parameter and change return type. Update callers. Move it.
13021 (linux_enable_bts, linux_enable_pt): Improve error message.
13022 (linux_enable_pt): Remove zero buffer size check.
13023 (linux_enable_btrace): Improve error messages. Remove NULL return
13026 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13028 * btrace.c (btrace_enable): Remove target_supports_btrace call.
13029 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
13030 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
13031 (linux_supports_pt, linux_supports_btrace): Remove.
13032 (linux_enable_bts): Call cpu_supports_bts.
13033 * nat/linux-btrace.h (linux_supports_btrace): Remove.
13034 * remote.c (remote_supports_btrace): Remove.
13035 (init_remote_ops): Remove remote_supports_btrace.
13036 * target-delegates.c: Regenerated.
13037 * target.c (target_supports_btrace): Remove.
13038 * target.h (target_ops) <to_supports_btrace>: Remove
13039 (target_supports_btrace): Remove.
13040 * x86-linux-nat.c (x86_linux_create_target): Remove
13041 linux_supports_btrace.
13043 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13045 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
13047 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
13048 exception and use message in own exception.
13050 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13052 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
13053 (perf_event_pt_event_type): Use gdb_file_up.
13054 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
13055 scoped_fd, and scoped_mmap.
13057 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13059 * common/scoped_mmap.h: New.
13060 * unittests/scoped_mmap-selftest.c: New.
13061 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13062 unittests/scoped_mmap-selftest.c.
13064 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
13066 * common/scoped_fd.h: New.
13067 * unittests/scoped_fd-selftest.c: New.
13068 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
13069 unittests/scoped_fd-selftest.c.
13071 2018-02-09 Tom Tromey <tom@tromey.com>
13073 * auto-load.c (auto_load_section_scripts): Use
13074 gdb::unique_xmalloc_ptr.
13076 2018-02-09 Tom Tromey <tom@tromey.com>
13078 * auto-load.c (execute_script_contents): Use std::string.
13080 2018-02-09 Joel Brobecker <brobecker@adacore.com>
13082 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
13083 Python function, rather than a new command.
13085 2018-02-08 Tom Tromey <tom@tromey.com>
13087 * solib.c (solib_find_1): Use std::string.
13088 (solib_bfd_fopen): Use unique_xmalloc_ptr.
13090 2018-02-08 Tom Tromey <tom@tromey.com>
13092 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
13094 2018-02-08 Tom Tromey <tom@tromey.com>
13096 * source.c (find_source_lines): Use gdb::def_vector.
13098 2018-02-08 Tom Tromey <tom@tromey.com>
13100 * macrocmd.c (struct temporary_macro_definition): New.
13101 (macro_define_command): Use temporary_macro_definition. Remove
13103 (free_macro_definition_ptr): Remove.
13105 2018-02-08 Tom Tromey <tom@tromey.com>
13107 * macroexp.c (maybe_expand): Use std::string.
13109 2018-02-08 Tom Tromey <tom@tromey.com>
13111 * macroexp.c (struct macro_buffer): Add initializers for some
13113 (init_buffer, init_shared_buffer, free_buffer)
13114 (free_buffer_return_text): Remove.
13115 (macro_buffer): New constructors.
13116 (~macro_buffer): New destructor.
13117 (macro_buffer::set_shared): New method.
13118 (macro_buffer::resize_buffer, macro_buffer::appendc)
13119 (macro_buffer::appendmem): Now methods, not free functions.
13120 (set_token, append_tokens_without_splicing, stringify)
13121 (macro_stringify): Update.
13122 (gather_arguments): Change return type. Remove argc_p argument,
13123 add args_ptr argument. Use std::vector.
13124 (substitute_args): Remove argc argument. Accept std::vector.
13125 (expand): Update. Use std::vector.
13126 (scan, macro_expand, macro_expand_next): Update.
13128 2018-02-08 Tom Tromey <tom@tromey.com>
13130 * symtab.c (default_collect_symbol_completion_matches_break_on):
13131 Use unique_xmalloc_ptr.
13132 * macroscope.h: (sal_macro_scope, user_macro_scope)
13133 (default_macro_scope): Return unique_xmalloc_ptr.
13134 * macroscope.c (sal_macro_scope, user_macro_scope)
13135 (default_macro_scope): Return unique_xmalloc_ptr.
13136 * macroexp.h (macro_expand, macro_expand_once): Return
13137 unique_xmalloc_ptr.
13138 * macroexp.c (macro_expand, macro_expand_once): Return
13139 unique_xmalloc_ptr.
13140 * macrocmd.c (macro_expand_command, macro_expand_once_command)
13141 (info_macro_command, info_macros_command): Use
13142 unique_xmalloc_ptr.
13143 * compile/compile-c-support.c (write_macro_definitions): Use
13144 unique_xmalloc_ptr.
13145 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
13147 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
13149 * value.c (value_static_field): Assign field type instead of
13150 containing type when returning an optimized out value.
13152 2018-02-06 Yao Qi <yao.qi@linaro.org>
13154 * ft32-tdep.c (ft32_read_pc): Remove.
13155 (ft32_write_pc): Remove.
13156 (ft32_gdbarch_init): Update.
13157 * m32r-tdep.c (m32r_read_pc): Remove.
13158 (m32r_gdbarch_init): Update.
13159 * mep-tdep.c (mep_read_pc): Remove.
13160 (mep_gdbarch_init): Update.
13161 * microblaze-tdep.c (microblaze_write_pc): Remove.
13162 (microblaze_gdbarch_init): Update.
13163 * mn10300-tdep.c (mn10300_read_pc): Remove.
13164 (mn10300_write_pc): Remove.
13165 (mn10300_gdbarch_init): Update.
13166 * moxie-tdep.c (moxie_read_pc): Remove.
13167 (moxie_write_pc): Remove.
13168 (moxie_gdbarch_init): Update.
13170 2018-02-06 Yao Qi <yao.qi@linaro.org>
13172 * expprint.c (print_subexp_standard): Handle
13173 OP_F77_UNDETERMINED_ARGLIST.
13174 (dump_subexp_body_standard): Likewise.
13176 2018-02-05 Alan Hayward <alan.hayward@arm.com>
13178 * target-descriptions.c (tdesc_element_visitor) Add empty
13180 (tdesc_type): Move make_gdb_type from here.
13181 (tdesc_type_builtin): Likewise.
13182 (tdesc_type_vector): Likewise.
13183 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
13184 (make_gdb_type_struct): Move from tdesc_type_with_fields.
13185 (make_gdb_type_union): Likewise.
13186 (make_gdb_type_flags): Likewise.
13187 (make_gdb_type_enum): Likewise.
13188 (make_gdb_type): New function.
13189 (tdesc_register_type): Use static make_gdb_type.
13191 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
13193 * infcmd.c (default_print_one_register_info): Align natural-format
13194 column values consistently one under another.
13195 (pad_to_column): New function.
13197 2018-02-05 Joel Brobecker <brobecker@adacore.com>
13199 * dwarf2read.c (dwarf2_physname): Move commment.
13201 2018-02-01 Leszek Swirski <leszeks@google.com>
13203 * varobj.c (varobj_formatted_print_options): Allow recursive
13204 pretty printing if pretty printing is enabled.
13206 2018-02-01 Leszek Swirski <leszeks@google.com>
13208 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
13209 names after a structop as a filename.
13211 2018-02-01 Yao Qi <yao.qi@linaro.org>
13213 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
13214 (arm_record_coproc_data_proc): Likewise.
13216 2018-02-01 Yao Qi <yao.qi@linaro.org>
13218 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
13220 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
13222 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
13223 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
13225 2018-01-31 Pedro Alves <palves@redhat.com>
13227 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
13228 * inflow.c (child_terminal_save_inferior): Wrap reference to
13229 tcgetpgrp in HAVE_TERMIOS_H.
13230 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
13232 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
13233 always iterate over all inferiors.
13234 (gdbsim_cntrl_c): Adjust.
13235 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
13237 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13239 * gdbtypes.c (lookup_array_range_type): Make sure the array's
13240 index type is objfile-owned if the element type is as well.
13242 2018-01-31 Joel Brobecker <brobecker@adacore.com>
13246 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
13248 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
13249 "features/s390x-linux64.c".
13250 (_initialize_s390_linux_tdep): Remove initialization of tdescs
13251 s390_linux32 and s390x_linux64.
13252 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
13254 * s390-tdep.c: Include "features/s390-linux32.c" and
13255 "features/s390x-linux64.c".
13256 (s390_tdesc_valid): Add check for tdesc_has_registers.
13257 (s390_gdbarch_init): Make sure there is always a valid tdesc.
13258 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
13259 tdesc_s390x_linux64.
13260 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
13261 tdesc_s390x_linux64 to...
13262 * s390-tdep.h: ...here.
13264 2018-01-30 Pedro Alves <palves@redhat.com>
13267 * config.in, configure: Regenerate.
13268 * configure.ac: Check for getpgid.
13269 * go32-nat.c (go32_pass_ctrlc): New.
13270 (go32_target): Install it.
13271 * inf-child.c (inf_child_target): Install
13272 child_terminal_save_inferior, child_pass_ctrlc and
13274 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
13275 (inf_ptrace_target): No longer install it.
13276 * infcmd.c (interrupt_target_1): Adjust.
13277 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
13278 (child_interrupt): Declare.
13279 (inferior::terminal_state): New.
13280 * inflow.c (struct terminal_info): Update comments.
13281 (inferior_process_group): Delete.
13282 (terminal_is_ours): Delete.
13283 (gdb_tty_state): New.
13284 (child_terminal_init): Adjust.
13285 (is_gdb_terminal, sharing_input_terminal_1)
13286 (sharing_input_terminal): New functions.
13287 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
13288 Set the process's actual process group in the foreground if
13289 possible. Handle is_ours_for_output/is_ours distinction. Don't
13290 mark terminal as the inferior's if not sharing GDB's terminal.
13291 Don't check attach_flag.
13292 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
13293 pass down a target_terminal_state.
13294 (child_terminal_save_inferior): New, factored out from ...
13295 (child_terminal_ours_1): ... this. Handle
13296 target_terminal_state::is_ours_for_output.
13297 (child_interrupt, child_pass_ctrlc): New.
13298 (inflow_inferior_exit): Clear the inferior's terminal_state.
13299 (copy_terminal_info): Copy the inferior's terminal state.
13300 (_initialize_inflow): Remove reference to terminal_is_ours.
13301 * inflow.h (inferior_process_group): Delete.
13302 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
13303 * procfs.c (procfs_target): Don't install procfs_interrupt.
13304 (procfs_interrupt): Delete.
13305 * remote.c (remote_serial_quit_handler): Adjust.
13306 (remote_interrupt): Remove ptid parameter. Adjust.
13307 * target-delegates.c: Regenerate.
13308 * target.c: Include "terminal.h".
13309 (target_terminal::terminal_state): Rename to ...
13310 (target_terminal::m_terminal_state): ... this.
13311 (target_terminal::init): Adjust.
13312 (target_terminal::inferior): Adjust to per-inferior
13314 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
13315 (target_terminal::ours, target_terminal::ours_for_output): Use
13316 target_terminal_is_ours_kind.
13317 (target_interrupt): Remove ptid parameter. Adjust.
13318 (default_target_pass_ctrlc): Adjust.
13319 * target.h (target_ops::to_terminal_save_inferior): New field.
13320 (target_ops::to_interrupt): Remove ptid_t parameter.
13321 (target_interrupt): Remove ptid_t parameter. Update comment.
13322 (target_pass_ctrlc): Update comment.
13323 * target/target.h (target_terminal_state): New scoped enum,
13324 factored out of ...
13325 (target_terminal::terminal_state): ... here.
13326 (target_terminal::inferior): Update comments.
13327 (target_terminal::restore_inferior): New.
13328 (target_terminal::is_inferior, target_terminal::is_ours)
13329 (target_terminal::is_ours_for_output): Adjust.
13330 (target_terminal::scoped_restore_terminal_state): Adjust to
13331 rename, and call restore_inferior() instead of inferior().
13332 (target_terminal::scoped_restore_terminal_state::m_state): Change
13334 (target_terminal::terminal_state): Rename to ...
13335 (target_terminal::m_terminal_state): ... this and change type.
13337 2018-01-30 Pedro Alves <palves@redhat.com>
13339 * linux-nat.c (wait_for_signal): New function.
13340 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
13342 (async_terminal_is_ours)
13343 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
13344 (linux_nat_add_target): Don't override
13345 to_terminal_inferior/to_terminal_ours.
13347 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
13349 * remote.c (remote_follow_fork): Don't call "detach_inferior".
13351 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
13353 * dwarf2read.c (free_dwo_files): Add forward-declaration.
13354 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
13355 dwarf2_per_objfile_free here.
13356 (dwarf2_per_objfile_free): Remove.
13357 (_initialize_dwarf2_read): Don't register
13358 dwarf2_per_objfile_free as a registry cleanup.
13360 2018-01-27 Eli Zaretskii <eliz@gnu.org>
13362 Avoid compilation errors in MinGW native builds
13364 The error is triggered by including python-internal.h, and the
13367 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
13368 from build-gnulib/import/math.h:27,
13369 from d:/usr/Python26/include/pyport.h:235,
13370 from d:/usr/Python26/include/Python.h:58,
13371 from python/python-internal.h:94,
13372 from python/py-arch.c:24:
13373 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
13377 This happens because Python headers define 'hypot' to expand t
13378 '_hypot' in the Windows builds.
13379 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
13380 'hypoth'. This avoids a compilation error.
13382 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13384 * MAINTAINERS (Write After Approval): Fix ordering.
13386 2018-01-26 Alan Hayward <alan.hayward@arm.com>
13388 * MAINTAINERS (Write After Approval): Add Alan Hayward.
13390 2018-01-26 Alan Modra <amodra@gmail.com>
13392 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
13393 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
13394 Remove nop. Make const. Comment.
13395 (powerpc32_plt_stub_so_2): New.
13396 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
13397 Correct count. Update uses.
13398 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
13399 Move common code reading PLT entry word. Correct
13400 powerpc32_plt_stub PLT address calculation.
13401 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
13402 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
13403 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
13404 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
13405 (ppc64_standard_linkage8): Likewise.
13406 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
13407 Correct insns description.
13408 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
13410 2018-01-24 Pedro Alves <palves@redhat.com>
13412 GCC PR libstdc++/83906
13413 * gdbtypes.c (operator==(const dynamic_prop &,
13414 const dynamic_prop &)): New.
13415 (operator==(const range_bounds &, const range_bounds &)): New.
13416 (check_types_equal): Use them instead of memcmp.
13417 * gdbtypes.h (operator==(const dynamic_prop &,
13418 const dynamic_prop &)): Declare.
13419 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
13420 (operator==(const range_bounds &, const range_bounds &)): Declare.
13421 (operator!=(const range_bounds &, const range_bounds &)): Declare.
13423 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13425 * s390-linux-tdep.c (s390_record_address_mask)
13426 (s390_record_calc_disp_common, s390_record_calc_disp)
13427 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13428 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13429 (s390_process_record): Move to s390-tdep.c.
13430 (s390_linux_init_abi_any): Adjust.
13431 * s390-tdep.c (s390_record_address_mask)
13432 (s390_record_calc_disp_common, s390_record_calc_disp)
13433 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
13434 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
13435 (s390_process_record): Moved from s390-linux-tdep.c
13436 (s390_gdbarch_init): Adjust.
13438 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13440 * s390-linux-nat.c (s390-tdep.h): New include.
13441 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
13442 (HFILES_NO_SRCDIR): Add s390-tdep.h.
13443 (ALLDEPFILES): Add s390-tdep.c.
13444 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
13445 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
13446 * s390-tdep.h: ...this. New file.
13447 * s390-linux-tdep.c (s390-tdep.h): New include.
13448 (_initialize_s390_tdep): Rename to...
13449 (_initialize_s390_linux_tdep): ...this and adjust.
13450 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
13451 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
13453 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
13454 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
13455 (s390_is_partial_instruction, s390_software_single_step)
13456 (is_non_branch_ril, s390_displaced_step_copy_insn)
13457 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
13458 (s390_prologue_data, s390_addr, s390_store, s390_load)
13459 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
13460 (s390_register_call_saved, s390_guess_tracepoint_registers)
13461 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
13462 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
13463 (s390_pseudo_register_name, s390_pseudo_register_type)
13464 (s390_pseudo_register_read, s390_pseudo_register_write)
13465 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
13466 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
13467 (s390_addr_bits_remove, s390_address_class_type_flags)
13468 (s390_address_class_type_flags_to_name)
13469 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
13470 (s390_function_arg_float, s390_function_arg_vector)
13471 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
13472 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
13473 (s390_frame_align, s390_register_return_value, s390_return_value)
13474 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
13475 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
13476 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
13477 (s390_trad_frame_prev_register, s390_unwind_cache)
13478 (s390_prologue_frame_unwind_cache)
13479 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
13480 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
13481 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
13482 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
13483 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
13484 (s390_frame_base_address, s390_local_base_address)
13485 (s390_frame_base, s390_gcc_target_options)
13486 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
13487 (s390_validate_reg_range, s390_tdesc_valid)
13488 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
13489 * s390-tdep.c: ...this. New file.
13491 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13493 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
13494 (s390_process_record, s390_gdbarch_tdep_alloc)
13495 (s390_linux_init_abi_any): Use/set new hook.
13497 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13499 * s390-linux-tdep.c (osabi.h): New include.
13500 (s390_linux_init_abi_31, s390_linux_init_abi_64)
13501 (s390_linux_init_abi_any): New functions.
13502 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
13504 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13506 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
13507 tdesc_has_registers check
13509 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13511 * s390-linux-tdep.c (s390_tdesc_valid): New function.
13512 (s390_validate_reg_range): New macro.
13513 (s390_gdbarch_init): Adjust.
13515 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13517 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
13518 (s390_gdbarch_tdep_alloc): Adjust.
13519 (s390_gdbarch_init): Adjust.
13521 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13523 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
13524 <have_tdb>: Change type to bool.
13525 (s390_gdbarch_tdep_alloc): Adjust.
13526 (s390_gdbarch_init): Adjust.
13528 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13530 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
13531 (gdbarch_tdep) <have_upper, have_vx>: New fields.
13532 (s390_gdbarch_tdep_alloc): New function.
13533 (s390_gdbarch_init): Allocate tdep at start and use its fields
13534 instead of separate variables.
13536 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
13538 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
13539 when looking for cached gdbarch and add comment for remaining.
13541 2018-01-22 Pedro Alves <palves@redhat.com>
13542 Sergio Durigan Junior <sergiodj@redhat.com>
13544 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
13547 2018-01-22 Maciej W. Rozycki <macro@mips.com>
13549 * MAINTAINERS: Update my company e-mail address.
13551 2018-01-22 Yao Qi <yao.qi@linaro.org>
13553 * regcache.c (cooked_write_test): New function.
13554 (_initialize_regcache): Register the test.
13556 2018-01-22 Yao Qi <yao.qi@linaro.org>
13558 * ia64-tdep.c (ia64_pseudo_register_read): Call
13559 regcache->cooked_read instead of regcache_cooked_read_unsigned.
13560 * m32c-tdep.c (m32c_cat_read): Likewise.
13561 (m32c_r3r2r1r0_read): Likewise.
13562 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
13563 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
13565 2018-01-22 Yao Qi <yao.qi@linaro.org>
13567 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
13568 method raw_read instead of regcache_raw_read.
13569 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
13570 * arm-tdep.c (arm_neon_quad_read): Likewise.
13571 * avr-tdep.c (avr_pseudo_register_read): Likewise.
13572 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
13573 * frv-tdep.c (frv_pseudo_register_read): Likewise.
13574 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
13575 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
13576 (i386_pseudo_register_read_into_value): Likewise.
13577 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
13578 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
13579 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
13580 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
13581 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
13582 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
13583 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
13584 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
13585 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
13587 2018-01-22 Yao Qi <yao.qi@linaro.org>
13589 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
13590 * configure.tgt: Remove target mt.
13591 * mt-tdep.c: Remove.
13592 * regcache.c (cooked_read_test): Remove the check for mt.
13594 2018-01-22 Yao Qi <yao.qi@linaro.org>
13596 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
13597 instead of gdbarch_pseudo_register_read_value.
13599 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13601 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
13604 2018-01-22 Joel Brobecker <brobecker@adacore.com>
13606 * linespec.c (create_sals_line_offset): Remove code that preserved
13607 the symtab_and_line's line number.
13609 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13611 * varobj.c (varobj_create): Don't set valid_block when creating a
13614 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13616 * varobj.c (varobj_create): Remove out of date comment.
13618 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13621 * ada-exp.y (write_var_from_sym): Pass extra parameter when
13622 updating innermost block.
13623 * parse.c (innermost_block_tracker::update): Take extra type
13624 parameter, and check types match before updating innermost block.
13625 (write_dollar_variable): Update innermost block for registers.
13626 * parser-defs.h (enum innermost_block_tracker_type): New enum.
13627 (innermost_block_tracker::innermost_block_tracker): Initialise
13629 (innermost_block_tracker::reset): Take type parameter.
13630 (innermost_block_tracker::update): Take type parameter, and pass
13631 type through as needed.
13632 (innermost_block_tracker::m_types): New member.
13633 * varobj.c (varobj_create): Pass type when reseting innermost
13636 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13638 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
13639 * ada-lang.c (resolve_subexp): Likewise.
13640 * breakpoint.c (set_breakpoint_condition) Likewise.
13641 (watch_command_1) Likewise.
13642 * c-exp.y (variable): Likewise.
13643 * d-exp.y (PrimaryExpression): Likewise.
13644 * f-exp.y (variable): Likewise.
13645 * go-exp.y (variable): Likewise.
13646 * m2-exp.y (variable): Likewise.
13647 * objfiles.c (objfile::~objfile): Likewise.
13648 * p-exp.y (variable): Likewise.
13649 * parse.c (innermost_block): Change type.
13650 * parser-defs.h (class innermost_block_tracker): New.
13651 (innermost_block): Change to innermost_block_tracker.
13652 * printcmd.c (display_command): Switch to innermost_block API.
13653 (do_one_display): Likewise.
13654 * rust-exp.y (do_one_display): Likewise.
13655 * symfile.c (clear_symtab_users): Likewise.
13656 * varobj.c (varobj_create): Switch to innermost_block API, replace
13657 use of innermost_block with block stored on varobj object.
13659 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
13661 * expression.h (innermost_block): Remove declaration.
13662 * varobj.c: Add 'parser-defs.h' include.
13664 2018-01-19 Tom Tromey <tom@tromey.com>
13666 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
13667 symbols in the static and global blocks.
13669 2018-01-19 James Clarke <jrtc27@jrtc27.com>
13671 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
13672 gdb_ptrace.h, and move including gdb_wait.h ...
13673 * nat/linux-ptrace.h: ... to here.
13675 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13677 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
13678 inf_ptrace_detach_success.
13679 (inf_ptrace_detach_success): Add inferior parameter, use it
13680 instead of inferior_ptid, pass it to detach_inferior.
13681 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
13683 * inferior.c (detach_inferior): Add overload that takes an
13685 * inferior.h (detach_inferior): Likewise.
13686 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
13687 use inferior_ptid, adjust call to inf_ptrace_detach_success.
13688 * linux-thread-db.c (thread_db_detach): Use inf parameter.
13690 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13692 * target.h (struct target_ops) <to_detach>: Add inferior
13694 (target_detach): Likewise.
13695 * target.c (dispose_inferior): Pass inferior down.
13696 (target_detach): Pass inferior down. Assert that it is equal to
13697 the current inferior.
13698 * aix-thread.c (aix_thread_detach): Pass inferior down.
13699 * corefile.c (core_file_command): Pass current_inferior() down.
13700 * corelow.c (core_detach): Add inferior parameter.
13701 * darwin-nat.c (darwin_detach): Likewise.
13702 * gnu-nat.c (gnu_detach): Likewise.
13703 * inf-ptrace.c (inf_ptrace_detach): Likewise.
13704 * infcmd.c (detach_command): Pass current_inferior() down to
13706 * infrun.c (follow_fork_inferior): Pass parent_inf to
13708 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
13710 * linux-nat.c (linux_nat_detach): Add inferior parameter.
13711 * linux-thread-db.c (thread_db_detach): Likewise.
13712 * nto-procfs.c (procfs_detach): Likewise.
13713 * procfs.c (procfs_detach): Likewise.
13714 * record.c (record_detach): Likewise.
13715 * record.h (struct inferior): Forward-declare.
13716 (record_detach): Add inferior parameter.
13717 * remote-sim.c (gdbsim_detach): Likewise.
13718 * remote.c (remote_detach_1): Likewise.
13719 (remote_detach): Likewise.
13720 (extended_remote_detach): Likewise.
13721 * sol-thread.c (sol_thread_detach): Likewise.
13722 * target-debug.h (target_debug_print_inferior_p): New macro.
13723 * target-delegates.c: Re-generate.
13724 * top.c (kill_or_detach): Pass inferior down to target_detach.
13725 * windows-nat.c (windows_detach): Add inferior parameter.
13727 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
13729 * target.h (struct target_ops) <to_detach>: Remove args
13731 (target_detach): Likewise.
13732 * target.c (dispose_inferior): Adjust.
13733 (target_detach): Remove args parameter, adjust.
13734 * aix-thread.c (aix_thread_detach): Adjust.
13735 * corefile.c (core_file_command): Adjust.
13736 * corelow.c (core_detach): Adjust.
13737 * darwin-nat.c (darwin_detach): Adjust.
13738 * gnu-nat.c (gnu_detach): Adjust.
13739 * inf-ptrace.c (inf_ptrace_detach): Adjust.
13740 * infcmd.c (detach_command): Adjust
13741 * infrun.c (follow_fork_inferior): Adjust.
13742 (handle_vfork_child_exec_or_exit): Adjust.
13743 * linux-fork.c (linux_fork_detach): Remove args parameter.
13744 * linux-fork.h (linux_fork_detach): Likewise.
13745 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
13746 * linux-thread-db.c (thread_db_detach): Likewise.
13747 * nto-procfs.c (procfs_detach): Likewise.
13748 * procfs.c (procfs_detach): Likewise.
13749 (do_detach): Remove signo parameter.
13750 * record.c (record_detach): Remove args parameter.
13751 * record.h (record_detach): Likewise.
13752 * remote-sim.c (gdbsim_detach): Likewise.
13753 * remote.c (remote_detach_1): Likewise.
13754 (remote_detach): Likewise.
13755 (extended_remote_detach): Likewise.
13756 * sol-thread.c (sol_thread_detach): Likewise.
13757 * target-delegates.c: Re-generate.
13758 * top.c (struct qt_args) <args>: Remove field.
13759 (kill_or_detach): Don't pass args.
13760 (quit_force): Don't set args.
13761 * windows-nat.c (windows_detach): Remove args parameter.
13763 2018-01-19 Yao Qi <yao.qi@linaro.org>
13765 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
13766 (arm_linux_init_abi): Install it.
13768 2018-01-19 Yao Qi <yao.qi@linaro.org>
13770 * osabi.c (gdb_osabi_names): Extend the regexp for
13771 arm-linux-gnueabihf.
13773 2018-01-18 Yao Qi <yao.qi@linaro.org>
13775 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
13777 (abbrev_table::add_abbrev): Update.
13778 (abbrev_table::lookup_abbrev): Update.
13780 2018-01-18 Yao Qi <yao.qi@linaro.org>
13782 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
13784 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
13786 * compile/compile.c (compile_to_object): Convert "triplet_rx"
13789 2018-01-17 Tom Tromey <tom@tromey.com>
13791 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
13793 2018-01-17 Tom Tromey <tom@tromey.com>
13795 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
13796 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
13797 (create_array_type_with_stride): Update.
13798 * dwarf2read.c (set_die_type): Update.
13800 2018-01-17 Tom Tromey <tom@tromey.com>
13802 * dwarf2read.c (delayed_method_info): Remove typedef.
13803 (dwarf2_cu::method_info): Now a std::vector.
13804 (add_to_method_list): Update.
13805 (free_delayed_list): Remove.
13806 (compute_delayed_physnames): Update.
13807 (process_full_comp_unit, process_full_type_unit): Clear the method
13808 list. Remove cleanups.
13809 (psymtab_include_file_name): Add name_holder parameter. Use
13810 unique_xmalloc_ptr.
13811 (dwarf_decode_lines): Update.
13813 2018-01-17 Tom Tromey <tom@tromey.com>
13814 Simon Marchi <simon.marchi@ericsson.com>
13816 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
13817 (dwarf2_per_objfile::free_cached_comp_units)
13818 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13819 (init_cutu_and_read_dies_no_follow): Update.
13820 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
13821 (dwarf2_cu::~dwarf2_cu): New.
13822 (free_heap_comp_unit, free_stack_comp_unit): Remove.
13823 (age_cached_comp_units, free_one_cached_comp_unit): Update.
13825 2018-01-17 Tom Tromey <tom@tromey.com>
13826 Simon Marchi <simon.marchi@ericsson.com>
13828 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
13829 (struct die_reader_specs) <abbrev_table>: New member.
13830 (struct abbrev_table): Add constructor.
13831 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
13832 <abbrev_obstack>: Now an auto_obstack.
13833 (abbrev_table_up): New typedef.
13834 (init_cu_die_reader): Add abbrev_table parameter.
13835 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
13836 Add result_dwo_abbrev_table.
13837 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
13838 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
13840 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
13842 (skip_children): Update.
13843 (abbrev_table::alloc_abbrev): Rename from
13844 abbrev_table_alloc_abbrev.
13845 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
13846 (abbrev_table::lookup_abbrev): Rename from
13847 abbrev_table_lookup_abbrev.
13848 (abbrev_table_read_table): Return abbrev_table_up.
13849 (abbrev_table_free, abbrev_table_free_cleanup)
13850 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
13851 (load_partial_dies): Update.
13853 2018-01-17 Tom Tromey <tom@tromey.com>
13855 * dwarf2read.c (dwarf2_compute_name): Update comment.
13856 (read_func_scope, read_variable): Update.
13857 (new_symbol): Remove.
13858 (new_symbol_full): Rename to new_symbol.
13860 2018-01-17 Mike Gulick <mgulick@mathworks.com>
13863 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
13864 a warning instead of throwing an error, set section size to 0 and return
13866 * gdb_bfd.h (gdb_bfd_map_section): Update description.
13868 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13870 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
13872 (linux_ptrace_attach_fail_reason_string): Likewise.
13873 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
13875 (linux_ptrace_attach_fail_reason_string): Likewise.
13876 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
13878 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
13880 * linux-nat.c (linux_nat_attach): Remove xstrdup.
13882 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
13885 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
13886 checking for fs_base/gs_base fields in struct user_regs_struct.
13887 * configure: Regenerate.
13889 2018-01-17 Yao Qi <yao.qi@linaro.org>
13891 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
13893 (aarch64_linux_init_abi): Install it to gdbarch hook
13894 gcc_target_options.
13896 2018-01-15 Pedro Alves <palves@redhat.com>
13898 * common/signals-state-save-restore.c
13899 (save_original_signals_state): Fix typos.
13901 2017-01-12 Tom Tromey <tom@tromey.com>
13902 Sergio Durigan Junior <sergiodj@redhat.com>
13904 * Makefile.in (install-only): Install gdb-add-index.
13906 2018-01-12 John Baldwin <jhb@FreeBSD.org>
13908 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
13910 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
13912 * infrun.c (keep_going_pass_signal): Clear step-over info when
13913 insert_breakpoints fails.
13915 2018-01-11 Pedro Alves <palves@redhat.com>
13918 * infrun.c (resume): Rename to ...
13919 (resume_1): ... this.
13920 (resume): Reimplement as wrapper around resume_1.
13922 2018-01-11 Pedro Alves <palves@redhat.com>
13925 * remote.c (remote_parse_stop_reply): Default to the last-set
13926 general thread instead of to 'magic_null_ptid'.
13928 2018-01-10 Pedro Alves <palves@redhat.com>
13930 * language.h (language_get_symbol_name_matcher): Rename ...
13931 (get_symbol_name_matcher): ... this.
13932 * language.c (language_get_symbol_name_matcher): Ditto.
13933 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
13936 2018-01-10 Pedro Alves <palves@redhat.com>
13940 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
13941 Adjust to use language_get_symbol_name_matcher instead of
13942 language_defn::la_get_symbol_name_matcher.
13943 * language.c (language_get_symbol_name_matcher): If in Ada mode
13944 and the lookup name is a verbatim match, return Ada's matcher.
13945 * language.h (language_get_symbol_name_matcher): Adjust comment.
13946 (ada_lookup_name_info::verbatim_p):: New method.
13948 2018-01-10 Pedro Alves <palves@redhat.com>
13951 * ada-lang.c (ada_collect_symbol_completion_matches): If the
13952 minsym's language is language_auto or language_cplus, pass down
13953 language_ada instead.
13954 * symtab.c (compare_symbol_name): Don't frob symbol language here.
13956 2018-01-10 Pedro Alves <palves@redhat.com>
13959 * minsyms.c (linkage_name_str): New function.
13960 (iterate_over_minimal_symbols): Use it.
13962 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13964 * NEWS: Document that 'info proc' now works on FreeBSD.
13966 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13968 * configure.ac: Check for kinfo_getfile in libutil.
13969 * configure: Regenerate.
13970 * config.in: Regenerate.
13971 * fbsd-nat.c: Include "fbsd-tdep.h".
13972 (fbsd_fetch_cmdline): New.
13973 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
13974 rather than calling error.
13975 (fbsd_info_proc): New.
13976 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
13977 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
13978 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
13980 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13982 * fbsd-nat.c (struct free_deleter): Remove.
13983 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
13985 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13987 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
13988 NULL for an empty pathname.
13990 2018-01-09 John Baldwin <jhb@FreeBSD.org>
13992 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
13993 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
13994 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
13995 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
13996 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
13997 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
13998 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
13999 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
14000 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
14001 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
14002 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
14003 (fbsd_core_fetch_timeval, fbsd_print_sigset)
14004 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
14005 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
14006 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
14008 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
14010 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
14011 (gnu_xfer_auxv): New function.
14012 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
14013 TARGET_OBJECT_AUXV.
14015 2018-01-08 Yao Qi <yao.qi@linaro.org>
14016 Simon Marchi <simon.marchi@ericsson.com>
14018 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
14020 (COMMON_OBS): Remove selftest.o.
14021 * configure.ac: Append selftest-arch.c and common/selftest.c to
14022 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
14023 * configure: Re-generated.
14024 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
14026 (maintenance_info_selftests): Likewise.
14028 2018-01-08 Xavier Roirand <roirand@adacore.com>
14030 * ada-valprint.c (val_print_packed_array_elements): Use
14031 proper number of elements when printing an array indexed
14032 by an enumeration type.
14034 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14036 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
14037 (dw2_get_file_names_reader): Adjust.
14038 (lookup_dwo_signatured_type): Adjust.
14039 (lookup_dwp_signatured_type): Adjust.
14040 (lookup_signatured_type): Adjust.
14041 (create_type_unit_group): Adjust.
14042 (get_type_unit_group): Adjust.
14043 (process_psymtab_comp_unit_reader): Adjust.
14044 (build_type_psymtabs_reader): Adjust.
14045 (scan_partial_symbols): Adjust.
14046 (add_partial_symbol): Adjust.
14047 (add_partial_subprogram): Adjust.
14048 (peek_die_abbrev): Adjust.
14049 (fixup_go_packaging): Adjust.
14050 (process_imported_unit_die): Adjust.
14051 (dwarf2_compute_name): Adjust.
14052 (dwarf2_physname): Adjust.
14053 (read_import_statement): Adjust.
14054 (handle_DW_AT_stmt_list): Adjust.
14055 (read_file_scope): Adjust.
14056 (read_func_scope): Adjust.
14057 (read_lexical_block_scope): Adjust.
14058 (read_call_site_scope): Adjust.
14059 (read_variable): Adjust.
14060 (dwarf2_rnglists_process): Adjust.
14061 (dwarf2_ranges_process): Adjust.
14062 (dwarf2_ranges_read): Adjust.
14063 (dwarf2_get_pc_bounds): Adjust.
14064 (dwarf2_record_block_ranges): Adjust.
14065 (dwarf2_add_field): Adjust.
14066 (dwarf2_add_member_fn): Adjust.
14067 (read_structure_type): Adjust.
14068 (process_structure_scope): Adjust.
14069 (read_enumeration_type): Adjust.
14070 (read_array_type): Adjust.
14071 (mark_common_block_symbol_computed): Adjust.
14072 (read_common_block): Adjust.
14073 (read_namespace_type): Adjust.
14074 (read_namespace): Adjust.
14075 (read_module_type): Adjust.
14076 (read_tag_pointer_type): Adjust.
14077 (read_tag_ptr_to_member_type): Adjust.
14078 (read_tag_string_type): Adjust.
14079 (read_subroutine_type): Adjust.
14080 (read_typedef): Adjust.
14081 (read_base_type): Adjust.
14082 (attr_to_dynamic_prop): Adjust.
14083 (read_subrange_type): Adjust.
14084 (read_unspecified_type): Adjust.
14085 (dwarf2_read_abbrevs): Adjust.
14086 (load_partial_dies): Adjust.
14087 (read_partial_die): Adjust.
14088 (find_partial_die): Adjust.
14089 (guess_partial_die_structure_name): Adjust.
14090 (fixup_partial_die): Adjust.
14091 (read_attribute_value): Adjust.
14092 (read_addr_index): Adjust.
14093 (read_addr_index_from_leb128): Adjust.
14094 (read_str_index): Adjust.
14095 (dwarf2_string_attr): Adjust.
14096 (get_debug_line_section): Adjust.
14097 (dwarf_decode_line_header): Adjust.
14098 (lnp_state_machine::check_line_address): Adjust.
14099 (dwarf_decode_lines_1): Adjust.
14100 (dwarf_decode_lines): Adjust.
14101 (dwarf2_start_symtab): Adjust.
14102 (var_decode_location): Adjust.
14103 (new_symbol_full): Adjust.
14104 (dwarf2_const_value_data): Adjust.
14105 (dwarf2_const_value_attr): Adjust.
14106 (dwarf2_const_value): Adjust.
14107 (die_type): Adjust.
14108 (die_containing_type): Adjust.
14109 (build_error_marker_type): Adjust.
14110 (lookup_die_type): Adjust.
14111 (guess_full_die_structure_name): Adjust.
14112 (anonymous_struct_prefix): Adjust.
14113 (determine_prefix): Adjust.
14114 (dwarf2_name): Adjust.
14115 (follow_die_ref_or_sig): Adjust.
14116 (follow_die_offset): Adjust.
14117 (follow_die_ref): Adjust.
14118 (follow_die_sig_1): Adjust.
14119 (follow_die_sig): Adjust.
14120 (get_signatured_type): Adjust.
14121 (get_DW_AT_signature_type): Adjust.
14122 (decode_locdesc): Adjust.
14123 (dwarf_decode_macros): Adjust.
14124 (cu_debug_loc_section): Adjust.
14125 (fill_in_loclist_baton): Adjust.
14126 (dwarf2_symbol_mark_computed): Adjust.
14127 (init_one_comp_unit): Don't assign
14128 dwarf2_cu::dwarf2_per_objfile.
14129 (set_die_type): Adjust.
14131 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14133 * dwarf2read.c (struct mapped_debug_names): Add constructor.
14134 <dwarf2_per_objfile>: New field.
14135 (dwarf2_per_objfile): Remove global.
14136 (get_dwarf2_per_objfile): New function.
14137 (set_dwarf2_per_objfile): New function.
14138 (dwarf2_build_psymtabs_hard): Change objfile parameter to
14139 dwarf2_per_objfile.
14140 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14141 (read_abbrev_offset): Likewise.
14142 (read_indirect_string): Likewise.
14143 (read_indirect_line_string): Likewise.
14144 (read_indirect_string_at_offset): Likewise.
14145 (read_indirect_string_from_dwz): Likewise.
14146 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14147 dwarf2_per_objfile.
14148 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14149 (create_all_comp_units): Change objfile parameter to
14150 dwarf2_per_objfile.
14151 (create_all_type_units): Likewise.
14152 (process_queue): Add dwarf2_per_objfile parameter.
14153 (read_and_check_comp_unit_head): Likewise.
14154 (lookup_dwo_unit_in_dwp): Likewise.
14155 (get_dwp_file): Likewise.
14156 (process_cu_includes): Likewise.
14157 (struct free_dwo_file_cleanup_data): New struct.
14158 (dwarf2_has_info): Use get_dwarf2_per_objfile and
14159 set_dwarf2_per_objfile.
14160 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
14161 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
14162 context, adjust calls.
14163 (dw2_instantiate_symtab): Likewise.
14164 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
14165 (dw2_get_cu): Likewise.
14166 (create_cu_from_index_list): Change objfile parameter to
14167 dwarf2_per_objfile.
14168 (create_cus_from_index_list): Get dwarf2_per_objfile from
14169 context, adjust calls.
14170 (create_cus_from_index): Likewise.
14171 (create_signatured_type_table_from_index): Change objfile
14172 parameter to dwarf2_per_objfile.
14173 (create_signatured_type_table_from_debug_names): Change objfile
14174 parameter to dwarf2_per_objfile.
14175 (create_addrmap_from_index): Likewise.
14176 (create_addrmap_from_aranges): Likewise.
14177 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
14178 (dw2_setup): Remove.
14179 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
14181 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
14182 get_dwarf2_per_objfile.
14183 (dw2_forget_cached_source_info): Likewise.
14184 (dw2_map_symtabs_matching_filename): Likewise.
14185 (struct dw2_symtab_iterator) <index>: Remove.
14186 <dwarf2_per_objfile>: New field.
14187 (dw2_symtab_iter_init): Replace index parameter with
14188 dwarf2_per_objfile.
14189 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
14190 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
14191 (dw2_print_stats): Likewise.
14192 (dw2_dump): Likewise.
14193 (dw2_expand_symtabs_for_function): Likewise.
14194 (dw2_expand_all_symtabs): Likewise.
14195 (dw2_expand_symtabs_with_fullname): Likewise.
14196 (dw2_expand_marked_cus): Replace index and objfile parameters
14197 with dwarf2_per_objfile.
14198 (dw_expand_symtabs_matching_file_matcher): Add
14199 dwarf2_per_objfile parameter and adjust calls.
14200 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
14202 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
14203 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
14205 (create_cus_from_debug_names_list): Replace objfile parameter
14206 with dwarf2_per_objfile and adjust calls.
14207 (create_cus_from_debug_names): Likewise.
14208 (dwarf2_read_debug_names): Likewise.
14209 (mapped_debug_names::namei_to_name): Adjust call.
14210 (dw2_debug_names_iterator::next): Likewise.
14211 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
14212 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
14213 (dw2_debug_names_dump): Likewise.
14214 (dw2_debug_names_expand_symtabs_for_function): Likewise.
14215 (dw2_debug_names_expand_symtabs_matching): Likewise.
14216 (dwarf2_initialize_objfile): Likewise.
14217 (dwarf2_build_psymtabs): Likewise.
14218 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
14220 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
14221 (read_and_check_comp_unit_head): Likewise.
14222 (read_abbrev_offset): Likewise.
14223 (create_debug_type_hash_table): Likewise.
14224 (create_debug_types_hash_table): Likewise.
14225 (create_all_type_units): Replace objfile parameter with
14226 dwarf2_per_objfile.
14227 (add_type_unit): Add dwarf2_per_objfile parameter.
14228 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
14229 with dwarf2_per_objfile.
14230 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
14231 (lookup_dwp_signatured_type): Likewise.
14232 (lookup_signatured_type): Likewise.
14233 (read_cutu_die_from_dwo): Likewise.
14234 (init_tu_and_read_dwo_dies): Likewise.
14235 (init_cutu_and_read_dies): Likewise.
14236 (init_cutu_and_read_dies_no_follow): Likewise.
14237 (allocate_type_unit_groups_table): Add objfile parameter.
14238 (create_type_unit_group): Use dwarf2_per_objfile from cu.
14239 (get_type_unit_group): Likewise.
14240 (process_psymtab_comp_unit): Update call.
14241 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
14242 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
14243 (print_tu_stats): Likewise.
14244 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
14245 in void* parameter.
14246 (build_type_psymtabs): Change objfile parameter to
14247 dwarf2_per_objfile.
14248 (process_skeletonless_type_unit): Use dwarf2_per_objfile
14249 passed in void* parameter.
14250 (process_skeletonless_type_units): Change objfile parameter to
14251 dwarf2_per_objfile.
14252 (set_partial_user): Likewise.
14253 (dwarf2_build_psymtabs_hard): Likewise.
14254 (read_comp_units_from_section): Likewise.
14255 (create_all_comp_units): Likewise.
14256 (scan_partial_symbols): Update calls.
14257 (add_partial_symbol): Likewise.
14258 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
14259 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
14260 (process_queue): Add dwarf2_per_objfile parameter.
14261 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
14262 (compute_compunit_symtab_includes): Likewise.
14263 (process_cu_includes): Add dwarf2_per_objfile parameter.
14264 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
14265 (process_full_type_unit): Likewise.
14266 (process_imported_unit_die): Update call.
14267 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
14268 (read_file_scope): Likewise.
14269 (allocate_dwo_file_hash_table): Add objfile parameter.
14270 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
14271 (create_cus_hash_table): Likewise.
14272 (create_dwp_hash_table): Likewise.
14273 (create_dwo_unit_in_dwp_v1): Likewise.
14274 (create_dwp_v2_section): Likewise.
14275 (create_dwo_unit_in_dwp_v2): Likewise.
14276 (lookup_dwo_unit_in_dwp): Likewise.
14277 (try_open_dwop_file): Likewise.
14278 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
14279 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
14280 cleanup to include a reference to dwarf2_per_objfile.
14281 (open_dwp_file): Add dwarf2_per_objfile parameter.
14282 (open_and_init_dwp_file): Likewise.
14283 (get_dwp_file): Likewise.
14284 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
14285 (queue_and_load_all_dwo_tus): Update call.
14286 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
14288 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
14289 (dwarf2_ranges_process): Likewise.
14290 (dwarf2_get_pc_bounds): Likewise.
14291 (mark_common_block_symbol_computed): Likewise.
14292 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
14293 (dwarf2_read_abbrevs): Update call.
14294 (read_partial_die): Use dwarf2_per_objfile from cu.
14295 (find_partial_die): Likewise.
14296 (fixup_partial_die): Likewise.
14297 (read_attribute_value): Likewise.
14298 (read_indirect_string_at_offset_from): Add objfile parameter.
14299 (read_indirect_string_at_offset): Add dwarf2_per_objfile
14301 (read_indirect_string_from_dwz): Add objfile parameter.
14302 (read_indirect_string): Add objfile parameter.
14303 (read_addr_index_1): Add dwarf2_per_objfile parameter.
14304 (read_addr_index): Use dwarf2_per_objfile from cu.
14305 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
14307 (read_str_index): Use dwarf2_per_objfile from cu.
14308 (get_debug_line_section): Likewise.
14309 (read_formatted_entries): Add dwarf2_per_objfile parameter.
14310 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
14311 (new_symbol_full): Use dwarf2_per_objfile from cu.
14312 (build_error_marker_type): Likewise.
14313 (lookup_die_type): Likewise.
14314 (determine_prefix): Likewise.
14315 (follow_die_offset): Likewise.
14316 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
14317 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
14318 (dwarf2_fetch_die_type_sect_off): Likewise.
14319 (dwarf2_get_die_type): Likewise.
14320 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
14321 (get_signatured_type): Likewise.
14322 (get_DW_AT_signature_type): Likewise.
14323 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
14324 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
14325 (cu_debug_loc_section): Likewise.
14326 (fill_in_loclist_baton): Likewise.
14327 (dwarf2_symbol_mark_computed): Likewise.
14328 (dwarf2_find_containing_comp_unit): Change objfile parameter to
14329 dwarf2_per_objfile.
14330 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
14332 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
14333 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
14334 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
14335 (set_die_type): Use dwarf2_free_objfile from cu.
14336 (get_die_type_at_offset): Likewise.
14337 (dwarf2_per_objfile_free): Don't assign global variable.
14338 (debug_names) <constructor>: Add dwarf2_per_objfile
14339 parameter, update m_debugstrlookup construction.
14340 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
14342 <m_dwarf2_per_objfile>: New field.
14343 <lookup>: Use m_dwarf2_per_objfile.
14344 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
14345 (psyms_seen_size): Likewise.
14346 (write_gdbindex): Replace objfile parameter with
14347 dwarf2_per_objfile.
14348 (write_debug_names): Likewise.
14349 (write_psymtabs_to_index): Likewise.
14350 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
14353 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14355 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
14356 <dwarf2_per_objfile>: New field.
14357 (struct dwarf2_per_cu_data) <objfile>: Remove.
14358 <dwarf2_per_objfile>: New field.
14359 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
14361 (create_signatured_type_table_from_index): Likewise.
14362 (create_debug_type_hash_table): Likewise.
14363 (fill_in_sig_entry_from_dwo_entry): Likewise.
14364 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
14365 (create_type_unit_group): Assign dwarf2_per_objfile instead of
14367 (create_partial_symtab): Access objfile through
14368 dwarf2_per_objfile.
14369 (process_psymtab_comp_unit_reader): Likewise.
14370 (read_comp_units_from_section): Likewise.
14371 (scan_partial_symbols): Likewise.
14372 (add_partial_symbol): Likewise.
14373 (add_partial_subprogram): Likewise.
14374 (peek_die_abbrev): Likewise.
14375 (fixup_go_packaging): Likewise.
14376 (process_full_comp_unit): Likewise.
14377 (process_full_type_unit): Likewise.
14378 (process_imported_unit_die): Likewise.
14379 (dwarf2_compute_name): Likewise.
14380 (dwarf2_physname): Likewise.
14381 (read_import_statement): Likewise.
14382 (create_cus_hash_table): Assign dwarf2_physname instead of
14384 (read_func_scope): Access objfile through dwarf2_per_objfile.
14385 (read_lexical_block_scope): Likewise.
14386 (read_call_site_scope): Likewise.
14387 (read_variable): Likewise.
14388 (dwarf2_rnglists_process): Likewise.
14389 (dwarf2_ranges_process): Likewise.
14390 (dwarf2_ranges_read): Likewise.
14391 (dwarf2_record_block_ranges): Likewise.
14392 (dwarf2_add_field): Likewise.
14393 (dwarf2_add_member_fn): Likewise.
14394 (read_structure_type): Likewise.
14395 (process_structure_scope): Likewise.
14396 (read_enumeration_type): Likewise.
14397 (read_array_type): Likewise.
14398 (read_common_block): Likewise.
14399 (read_namespace_type): Likewise.
14400 (read_namespace): Likewise.
14401 (read_module_type): Likewise.
14402 (read_tag_pointer_type): Likewise.
14403 (read_tag_ptr_to_member_type): Likewise.
14404 (read_tag_string_type): Likewise.
14405 (read_subroutine_type): Likewise.
14406 (read_typedef): Likewise.
14407 (read_base_type): Likewise.
14408 (attr_to_dynamic_prop): Likewise.
14409 (read_subrange_type): Likewise.
14410 (read_unspecified_type): Likewise.
14411 (load_partial_dies): Likewise.
14412 (read_partial_die): Likewise.
14413 (find_partial_die): Likewise.
14414 (guess_partial_die_structure_name): Likewise.
14415 (fixup_partial_die): Likewise.
14416 (read_attribute_value): Likewise.
14417 (read_addr_index_from_leb128): Likewise.
14418 (dwarf2_read_addr_index): Likewise.
14419 (dwarf2_string_attr): Likewise.
14420 (lnp_state_machine::check_line_address): Likewise.
14421 (dwarf_decode_lines_1): Likewise.
14422 (dwarf_decode_lines): Likewise.
14423 (dwarf2_start_symtab): Likewise.
14424 (var_decode_location): Likewise.
14425 (new_symbol_full): Likewise.
14426 (dwarf2_const_value_data): Likewise.
14427 (dwarf2_const_value_attr): Likewise.
14428 (dwarf2_const_value): Likewise.
14429 (die_type): Likewise.
14430 (die_containing_type): Likewise.
14431 (lookup_die_type): Likewise.
14432 (guess_full_die_structure_name): Likewise.
14433 (anonymous_struct_prefix): Likewise.
14434 (dwarf2_name): Likewise.
14435 (follow_die_ref_or_sig): Likewise.
14436 (follow_die_offset): Likewise.
14437 (follow_die_ref): Likewise.
14438 (dwarf2_fetch_die_loc_sect_off): Likewise.
14439 (dwarf2_fetch_constant_bytes): Likewise.
14440 (dwarf2_fetch_die_type_sect_off): Likewise.
14441 (dwarf2_get_die_type): Likewise.
14442 (follow_die_sig): Likewise.
14443 (decode_locdesc): Likewise.
14444 (dwarf2_per_cu_objfile): Likewise.
14445 (dwarf2_per_cu_text_offset): Likewise.
14446 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
14448 (set_die_type): Access objfile through
14449 dwarf2_per_objfile.
14451 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
14453 * valprint.c (converted_character_d): Remove typedef.
14454 (DEF_VEC_O (converted_character_d)): Remove.
14455 (count_next_character): Use std::vector.
14456 (print_converted_chars_to_obstack): Likewise.
14457 (generic_printstr): Likewise.
14459 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14461 * xml-support.h (struct gdb_xml_value): Add constructor.
14462 <value>: Change type to unique_xmalloc_ptr.
14463 (gdb_xml_value_s): Remove typedef.
14464 (DEF_VEC_O (gdb_xml_value_s)): Remove.
14465 (gdb_xml_element_start_handler): Change parameter type to
14467 (xml_find_attribute): Likewise.
14468 * xml-support.c (xml_find_attribute): Change parameter type to
14469 std::vector and adjust.
14470 (gdb_xml_values_cleanup): Remove.
14471 (gdb_xml_parser::start_element): Adjust to std::vector.
14472 (xinclude_start_include): Change paraeter type to std::vector
14474 * btrace.c (check_xml_btrace_version): Likewise.
14475 (parse_xml_btrace_block): Likewise.
14476 (parse_xml_btrace_pt_config_cpu): Likewise.
14477 (parse_xml_btrace_pt): Likewise.
14478 (parse_xml_btrace_conf_bts): Likewise.
14479 (parse_xml_btrace_conf_pt): Likewise.
14480 * memory-map.c (memory_map_start_memory): Likewise.
14481 (memory_map_start_property): Likewise.
14482 * osdata.c (osdata_start_osdata): Likewise.
14483 (osdata_start_item): Likewise.
14484 (osdata_start_column): Likewise.
14485 * remote.c (start_thread): Likewise.
14486 * solib-aix.c (library_list_start_library): Likewise.
14487 (library_list_start_list): Likewise.
14488 * solib-svr4.c (library_list_start_library): Likewise.
14489 (svr4_library_list_start_list): Likewise.
14490 * solib-target.c (library_list_start_segment): Likewise.
14491 (library_list_start_section): Likewise.
14492 (library_list_start_library): Likewise.
14493 (library_list_start_list): Likewise.
14494 * tracepoint.c (traceframe_info_start_memory): Likewise.
14495 (traceframe_info_start_tvar): Likewise.
14496 * xml-syscall.c (syscall_start_syscall): Likewise.
14497 * xml-tdesc.c (tdesc_start_target): Likewise.
14498 (tdesc_start_feature): Likewise.
14499 (tdesc_start_reg): Likewise.
14500 (tdesc_start_union): Likewise.
14501 (tdesc_start_struct): Likewise.
14502 (tdesc_start_flags): Likewise.
14503 (tdesc_start_enum): Likewise.
14504 (tdesc_start_field): Likewise.
14505 (tdesc_start_enum_value): Likewise.
14506 (tdesc_start_vector): Likewise.
14508 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14510 * extension.h (struct xmethod_worker) <clone>: Remove.
14511 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
14513 (python_xmethod_worker::clone): Remove.
14514 * valops.c (find_overload_match): Use std::move instead of
14517 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
14519 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
14520 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
14521 <free_xmethod_worker_data>: Remove.
14522 <get_matching_xmethod_workers>: Chance VEC to std::vector.
14523 <get_xmethod_arg_types>: Remove.
14524 <get_xmethod_result_type>: Remove.
14525 <invoke_xmethod>: Remove.
14526 * extension.c (new_xmethod_worker): Remove.
14527 (clone_xmethod_worker): Remove.
14528 (get_matching_xmethod_workers): Return void, pass std::vector by
14530 (get_xmethod_arg_types): Rename to...
14531 (xmethod_worker::get_arg_types): ... this, and adjust.
14532 (get_xmethod_result_type): Rename to...
14533 (xmethod_worker::get_result_type): ... this, and adjust.
14534 (invoke_xmethod): Remove.
14535 (free_xmethod_worker): Remove.
14536 (free_xmethod_worker_vec): Remove.
14537 * extension.h (enum ext_lang_rc): Move here from
14539 (struct xmethod_worker): Add constructor and destructor.
14542 <invoke, clone, do_get_result_type, do_get_arg_types>: New
14543 virtual pure methods.
14544 <get_arg_types, get_result_type>: New methods.
14545 (xmethod_worker_ptr): Remove typedef.
14546 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
14547 (xmethod_worker_vec): Remove typedef.
14548 (xmethod_worker_up): New typedef.
14549 (invoke_xmethod): Remove.
14550 (clone_xmethod_worker): Remove.
14551 (free_xmethod_worker): Remove.
14552 (free_xmethod_worker_vec): Remove.
14553 (get_xmethod_arg_types): Remove.
14554 (get_xmethod_result_type): Remove.
14555 * valops.c (find_method_list): Use std::vector, don't use
14556 intermediate vector.
14557 (value_find_oload_method_list): Use std::vector.
14558 (find_overload_match): Use std::vector.
14559 (find_oload_champ): Use std::vector.
14560 * value.c (value_free): Use operator delete.
14561 (value_of_xmethod): Rename to...
14562 (value_from_xmethod): ... this. Don't assign
14563 xmethod_worker::value, take rvalue-reference.
14564 (result_type_of_xmethod): Adjust.
14565 (call_xmethod): Adjust.
14566 * value.h: Include extension.h.
14567 (struct xmethod_worker): Don't forward-declare.
14568 (value_of_xmethod): Rename to...
14569 (value_from_xmethod): ... this, take rvalue-reference.
14570 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
14571 (struct python_xmethod_worker): ... this, add constructor and
14573 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
14574 (gdbpy_free_xmethod_worker_data): Rename to...
14575 (python_xmethod_worker::~python_xmethod_worker): ... this and
14577 (gdbpy_clone_xmethod_worker_data): Rename to...
14578 (python_xmethod_worker::clone): ... this and adjust.
14579 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
14581 (gdbpy_get_xmethod_arg_types): Rename to...
14582 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
14583 (gdbpy_get_xmethod_result_type): Rename to...
14584 (python_xmethod_worker::do_get_result_type): ... this and
14586 (gdbpy_invoke_xmethod): Rename to...
14587 (python_xmethod_worker::invoke): ... this and adjust.
14588 (new_python_xmethod_worker): Rename to...
14589 (python_xmethod_worker::python_xmethod_worker): ... this and
14591 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
14593 (gdbpy_free_xmethod_worker_data): Remove.
14594 (gdbpy_get_matching_xmethod_workers): Use std::vector.
14595 (gdbpy_get_xmethod_arg_types): Remove.
14596 (gdbpy_get_xmethod_result_type): Remove.
14597 (gdbpy_invoke_xmethod): Remove.
14598 * python/python.c (python_extension_ops): Remove obsolete
14601 2018-01-05 Pedro Alves <palves@redhat.com>
14604 * common/signals-state-save-restore.c
14605 (save_original_signals_state): New parameter 'quiet'. Warn if we
14606 find a custom handler preinstalled, instead of internal erroring.
14607 But only warn if !quiet.
14608 * common/signals-state-save-restore.h
14609 (save_original_signals_state): New parameter 'quiet'.
14610 * main.c (captured_main_1): Move save_original_signals_state call
14611 after option handling, and pass QUIET.
14613 2018-01-05 Pedro Alves <palves@redhat.com>
14615 * spu-tdep.c (spu_catch_start): Pass
14616 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
14618 2018-01-05 Pedro Alves <palves@redhat.com>
14621 * ada-lang.c (literal_symbol_name_matcher): New function.
14622 (ada_get_symbol_name_matcher): Use it for
14623 symbol_name_match_type::SEARCH_NAME.
14624 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
14625 it down instead of assuming symbol_name_match_type::FULL.
14626 * block.h (block_lookup_symbol): New parameter 'match_type'.
14627 * c-valprint.c (print_unpacked_pointer): Use
14628 lookup_symbol_search_name instead of lookup_symbol.
14629 * compile/compile-object-load.c (get_out_value_type): Pass down
14630 symbol_name_match_type::SEARCH_NAME.
14631 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
14632 symbol_name_match_type::FULL.
14633 * cp-support.c (cp_get_symbol_name_matcher): Handle
14634 symbol_name_match_type::SEARCH_NAME.
14635 * infrun.c (insert_exception_resume_breakpoint): Use
14636 lookup_symbol_search_name.
14637 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
14638 * psymtab.c (maintenance_check_psymtabs): Use
14639 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
14640 * stack.c (print_frame_args): Use lookup_symbol_search_name and
14641 SYMBOL_SEARCH_NAME.
14642 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
14643 if symbol_name_match_type::SEARCH_NAME.
14644 (lookup_symbol_in_language): Pass down
14645 symbol_name_match_type::FULL.
14646 (lookup_symbol_search_name): New.
14647 (lookup_language_this): Pass down
14648 symbol_name_match_type::SEARCH_NAME.
14649 (lookup_symbol_aux, lookup_local_symbol): New parameter
14650 'match_type'. Pass it down.
14651 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
14652 (lookup_symbol_search_name): New declaration.
14653 (lookup_symbol_in_block): New 'match_type' parameter.
14655 2018-01-05 Pedro Alves <palves@redhat.com>
14658 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
14660 (ada_lookup_symbol): Reimplement in terms of
14661 ada_lookup_symbol_list, bits factored out from
14662 ada_lookup_encoded_symbol.
14664 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14666 * ada-exp.y (write_object_renaming): When subscripting an array
14667 using a symbol as the index, pass the block in call to
14668 ada_lookup_encoded_symbol when looking that symbol up.
14670 2018-01-05 Jerome Guitton <guitton@adacore.com>
14672 * ada-lang.c (ada_array_length): Use ada_index_type instead of
14675 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14677 * ada-lang.c (ada_to_fixed_value_create): Add handling of
14678 the case where VALUE_LVAL (val0) is not lval_memory.
14680 2018-01-05 Xavier Roirand <roirand@adacore.com>
14682 * ada-valprint.c (print_optional_low_bound): Handle
14683 character-indexed array printing like boolean-indexed array
14686 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14688 * NEWS: Create a new section for the next release branch.
14689 Rename the section of the current branch, now that it has
14692 2018-01-05 Joel Brobecker <brobecker@adacore.com>
14694 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
14695 * version.in: Bump version to 8.1.50.DATE-git.
14697 2018-01-03 Xavier Roirand <roirand@adacore.com>
14699 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
14701 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
14703 (default_exception_support_info) <catch_handlers_sym>: Add field.
14704 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
14705 (ada_exception_name_addr_1): Add "catch handlers" handling.
14706 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
14707 Update all callers.
14708 (create_excep_cond_exprs) <ex>: Add parameter.
14709 (re_set_exception): Update create_excep_cond_exprs call.
14710 (print_it_exception, print_one_exception, print_mention_exception)
14711 (print_recreate_exception): Add "catch handler" handling.
14712 (allocate_location_catch_handlers, re_set_catch_handlers)
14713 (check_status_catch_handlers, print_it_catch_handlers)
14714 (print_one_catch_handlers, print_mention_catch_handlers)
14715 (print_recreate_catch_handlers): New function.
14716 (catch_handlers_breakpoint_ops): New variable.
14717 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
14718 Add parameter. Add "catch handler" handling.
14719 (ada_exception_sym_name, ada_exception_breakpoint_ops):
14720 Add "catch handler" handling.
14721 (ada_exception_catchpoint_cond_string): Add "catch handler"
14723 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
14725 (catch_ada_handlers_command): New function.
14726 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
14727 operations structure.
14728 (_initialize_ada_language): Add "catch handlers" command entry.
14729 * NEWS: Document "catch handlers" feature.
14731 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14733 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
14734 account when creating the array type of the slice.
14735 (ada_value_slice): Likewise.
14737 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14739 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
14741 (create_array_type_with_stride): Add byte_stride_prop parameter.
14742 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
14743 New parameter. Update all callers in this file.
14744 (array_type_has_dynamic_stride): New function.
14745 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
14746 of arrays with dynamic byte strides.
14747 * dwarf2read.c (read_array_type): Add support for dynamic
14748 DW_AT_byte_stride attributes.
14750 2018-01-02 Joel Brobecker <brobecker@adacore.com>
14752 * dwarf2read.c (read_unspecified_type): Treat
14753 DW_TAG_enumeration_type DIEs from Ada units as stubs.
14755 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14757 Update copyright year range in all GDB files.
14759 2018-01-01, 18 Joel Brobecker <brobecker@adacore.com>
14761 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
14762 and gdb/testsuite/gdb.base/step-line.c.
14764 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14766 * copyright.py (main): Dump the contents of
14767 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
14768 even if BY_HAND is empty.
14770 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14772 * top.c (print_gdb_version): Update Copyright year in version
14775 2018-01-01 Joel Brobecker <brobecker@adacore.com>
14777 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
14779 For older changes see ChangeLog-2017.
14785 version-control: never