Remove EXT_LANG_BT_COMPLETED
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2018-03-26 Tom Tromey <tom@tromey.com>
2
3 * python/py-framefilter.c (py_print_frame): Return
4 EXT_LANG_BT_OK.
5 (gdbpy_apply_frame_filter): Update comment.
6 * extension.h (enum ext_lang_bt_status) <EXT_LANG_BT_COMPLETED>:
7 Remove.
8 <EXT_LANG_BT_NO_FILTERS>: Change value.
9
10 2018-03-26 Tom Tromey <tom@tromey.com>
11
12 PR backtrace/15582:
13 * stack.c (backtrace_command): Parse "hide" argument.
14 * python/py-framefilter.c (py_print_frame): Handle PRINT_HIDE.
15 * extension.h (enum frame_filter_flags) <PRINT_HIDE>: New
16 constant.
17
18 2018-03-26 Tom Tromey <tom@tromey.com>
19
20 * stack.c (backtrace_command_1): Remove "show_locals" parameter,
21 add "flags".
22 (backtrace_command): Remove "fulltrace", add "flags".
23
24 2018-03-26 Tom Tromey <tom@tromey.com>
25
26 * stack.c (backtrace_command): Rewrite command line parsing.
27
28 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
29
30 * dwarf2read.c (DEF_VEC_I(offset_type)): Remove.
31
32 2018-03-26 Simon Marchi <simon.marchi@ericsson.com>
33
34 * filename-seen-cache.h: Add include guard.
35
36 2018-03-26 Keith Seitz <keiths@redhat.com>
37
38 * symfile.c (place_section): Remove "struct" from section_addr_info
39 in comment.
40 * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
41 "struct" keyword from section_addr_info.
42
43 2018-03-26 Alan Hayward <alan.hayward@arm.com>
44
45 * regformats/regdef.h (reg): Add constructors.
46
47 2018-03-25 Pedro Alves <palves@redhat.com>
48
49 * eval.c (evaluate_funcall): Swap OP_VAR_MSYM_VALUE/OP_VAR_VALUE
50 if then/else bodies in var_func_name extraction.
51
52 2018-03-23 Weimin Pan <weimin.pan@oracle.com>
53
54 * minsyms.c (lookup_minimal_symbol_and_objfile): Use
55 lookup_minimal_symbol() to find symbol entry.
56 * minsyms.h (lookup_minimal_symbol_and_objfile): Update comment.
57
58 2018-03-23 Keith Seitz <keiths@redhat.com>
59
60 PR c++/22968
61 * dwarf2read.c (scan_partial_symbols): Scan structs/classes for
62 nested type definitions for C++, too.
63
64 2018-03-23 Tom Tromey <tom@tromey.com>
65
66 * machoread.c (struct oso_el): Add a constructor. Don't define as
67 a typedef.
68 (macho_register_oso): Remove.
69 (macho_symtab_read): Take a std::vector.
70 (oso_el_compare_name): Now a std::sort comparator.
71 (macho_symfile_read_all_oso): Take a std::vector.
72 (macho_symfile_read): Use std::vector. Remove cleanups.
73
74 2018-03-22 Tom Tromey <tom@tromey.com>
75
76 * record-full.c (record_full_exec_insn): Use gdb::byte_vector.
77 (record_full_goto_bookmark): Use std::string.
78
79 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
80
81 PR tdep/18295
82 * rs6000-tdep.c (skip_prologue): Match both stwux and stdux
83 a single mask.
84
85 2018-03-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
86
87 * rs6000-tdep.c (store_insn_p): New function.
88 (skip_prologue): New variable alloca_reg_offset. Set lr_reg
89 and cr_reg to their unshifted values. Use store_insn_p to
90 match LR saves using either R1 or fdata->alloca_reg. Use
91 store_insn_p to match CR saves. Set alloca_reg_offset
92 when alloca_reg and framep are set. Remove lr_reg shift
93 when assigning to fdata->lr_register.
94
95 2018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
96
97 * linux-tdep.c (linux_info_proc): For "info proc cmdline", print
98 command line args instead of emitting a warning.
99
100 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
101
102 * tracepoint.h (struct static_tracepoint_marker): Initialize
103 fields, define default constructor, move constructor and move
104 assignment, disable the rest.
105 <str_id, extra>: Make std::string.
106 (release_static_tracepoint_marker): Remove.
107 (free_current_marker): Remove.
108 * tracepoint.c (free_current_marker): Remove.
109 (parse_static_tracepoint_marker_definition): Adjust to
110 std::string, use new hex2str overload.
111 (release_static_tracepoint_marker): Remove.
112 (print_one_static_tracepoint_marker): Get marker by reference
113 and adjust to std::string.
114 (info_static_tracepoint_markers_command): Adjust to std::vector
115 changes
116 * target.h (static_tracepoint_marker_p): Remove typedef.
117 (DEF_VEC_P(static_tracepoint_marker_p)): Remove.
118 (struct target_ops) <to_static_tracepoint_marker_at>: Return
119 bool.
120 <to_static_tracepoint_markers_by_strid>: Return std::vector.
121 * target-debug.h
122 (target_debug_print_VEC_static_tracepoint_marker_p_p): Remove.
123 (target_debug_print_std_vector_static_tracepoint_marker): New.
124 (target_debug_print_struct_static_tracepoint_marker_p): Rename
125 to...
126 (target_debug_print_static_tracepoint_marker_p): ... this.
127 * target-delegates.c: Re-generate.
128 * breakpoint.h (struct tracepoint) <static_trace_marker_id>:
129 Make std::string.
130 * breakpoint.c (init_breakpoint_sal): Adjust to std::string.
131 (decode_static_tracepoint_spec): Adjust to std::vector.
132 (tracepoint_print_one_detail): Adjust to std::string.
133 (strace_marker_decode_location): Adjust to std::string.
134 (update_static_tracepoint): Adjust to std::string, remove call
135 to release_static_tracepoint_marker.
136 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
137 Adjust to std::vector.
138 * remote.c (remote_static_tracepoint_marker_at): Return bool.
139 (remote_static_tracepoint_markers_by_strid): Adjust to
140 std::vector.
141 * common/rsp-low.h (hex2str): New overload with explicit count
142 of bytes.
143 * common/rsp-low.c (hex2str): New overload with explicit count
144 of bytes.
145 * unittests/rsp-low-selftests.c (test_hex2str): New function.
146 (_initialize_rsp_low_selftests): Add test_hex2str test.
147 * unittests/tracepoint-selftests.c
148 (test_parse_static_tracepoint_marker_definition): Adjust to
149 std::string.
150
151 2018-03-22 Simon Marchi <simon.marchi@polymtl.ca>
152
153 * tracepoint.c (parse_static_tracepoint_marker_definition):
154 Consider case where the definition is followed by more
155 definitions.
156 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
157 tracepoint-selftests.c.
158 * unittests/tracepoint-selftests.c: New.
159
160 2018-03-21 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
161
162 * MAINTAINERS (Write After Approval): Add Pedro Franco de
163 Carvalho.
164
165 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
166
167 * gdb/symtab.c (find_pc_sect_line): fixed indentation.
168
169 2018-03-20 Stephen Roberts <stephen.roberts@arm.com>
170
171 * gdb/symtab.c (find_pc_sect_line): now uses binary search.
172
173 2018-03-19 Tom Tromey <tom@tromey.com>
174
175 * rust-exp.y (struct_expr_tail, struct_expr_list): Add plain
176 "IDENT" production.
177
178 2018-03-19 Pedro Alves <palves@redhat.com>
179 Tom Tromey <tom@tromey.com>
180
181 * unittests/observable-selftests.c: New file.
182 * common/observable.h: New file.
183 * observable.h: New file.
184 * ada-lang.c, ada-tasks.c, agent.c, aix-thread.c, annotate.c,
185 arm-tdep.c, auto-load.c, auxv.c, break-catch-syscall.c,
186 breakpoint.c, bsd-uthread.c, cli/cli-interp.c, cli/cli-setshow.c,
187 corefile.c, dummy-frame.c, event-loop.c, event-top.c, exec.c,
188 extension.c, frame.c, gdbarch.c, guile/scm-breakpoint.c,
189 infcall.c, infcmd.c, inferior.c, inflow.c, infrun.c, jit.c,
190 linux-tdep.c, linux-thread-db.c, m68klinux-tdep.c,
191 mi/mi-cmd-break.c, mi/mi-interp.c, mi/mi-main.c, objfiles.c,
192 ppc-linux-nat.c, ppc-linux-tdep.c, printcmd.c, procfs.c,
193 python/py-breakpoint.c, python/py-finishbreakpoint.c,
194 python/py-inferior.c, python/py-unwind.c, ravenscar-thread.c,
195 record-btrace.c, record-full.c, record.c, regcache.c, remote.c,
196 riscv-tdep.c, sol-thread.c, solib-aix.c, solib-spu.c, solib.c,
197 spu-multiarch.c, spu-tdep.c, stack.c, symfile-mem.c, symfile.c,
198 symtab.c, thread.c, top.c, tracepoint.c, tui/tui-hooks.c,
199 tui/tui-interp.c, valops.c: Update all users.
200 * tui/tui-hooks.c (tui_bp_created_observer)
201 (tui_bp_deleted_observer, tui_bp_modified_observer)
202 (tui_inferior_exit_observer, tui_before_prompt_observer)
203 (tui_normal_stop_observer, tui_register_changed_observer):
204 Remove.
205 (tui_observers_token): New global.
206 (attach_or_detach, tui_attach_detach_observers): New functions.
207 (tui_install_hooks, tui_remove_hooks): Use
208 tui_attach_detach_observers.
209 * record-btrace.c (record_btrace_thread_observer): Remove.
210 (record_btrace_thread_observer_token): New global.
211 * observer.sh: Remove.
212 * observer.c: Rename to observable.c.
213 * observable.c (namespace gdb_observers): Define new objects.
214 (observer_debug): Move into gdb_observers namespace.
215 (struct observer, struct observer_list, xalloc_observer_list_node)
216 (xfree_observer_list_node, generic_observer_attach)
217 (generic_observer_detach, generic_observer_notify): Remove.
218 (_initialize_observer): Update.
219 Don't include observer.inc.
220 * Makefile.in (generated_files): Remove observer.h, observer.inc.
221 (clean mostlyclean): Likewise.
222 (observer.h, observer.inc): Remove targets.
223 (SUBDIR_UNITTESTS_SRCS): Add observable-selftests.c.
224 (COMMON_SFILES): Use observable.c, not observer.c.
225 * .gitignore: Remove observer.h.
226
227 2018-03-18 Tom Tromey <tom@tromey.com>
228
229 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Use
230 gdb::def_vector.
231 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
232
233 2018-03-17 Tom Tromey <tom@tromey.com>
234
235 * auto-load.c (auto_load_objfile_script_1): Use std::string.
236
237 2018-03-17 Tom Tromey <tom@tromey.com>
238
239 * target.c (class scoped_target_fd): New.
240 (target_fileio_close_cleanup): Remove.
241 (target_fileio_read_alloc_1): Use scoped_target_fd.
242
243 2018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
244
245 * silent-rules.mk: New.
246 * Makefile.in: Include silent-rules.mk
247 (srcdir, VPATH, top_srcdir): Move up.
248 (COMPILE): Add ECHO_CXX.
249 (test-cp-name-parser$(EXEEXT)): Add ECHO_CXXLD.
250 (init.c): Add ECHO_INIT_C.
251 (gdb$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
252 (version.c): Add ECHO_GEN.
253 (printcmd.o): Add ECHO_CXX.
254 (target-float.o): Add ECHO_CXX.
255 (ada-exp.o): Add ECHO_CXX.
256 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN.
257 (insight$(EXEEXT)): Add ECHO_CXXLD.
258 * gnulib/configure.ac: Add AM_SILENT_RULES.
259 * gnulib/aclocal.m4: Re-generate.
260 * gnulib/configure: Re-generate.
261 * gnulib/import/Makefile.in: Re-generate.
262
263 2018-03-16 Tom Tromey <tom@tromey.com>
264
265 * xcoffread.c (xcoff_symfile_offsets): Change type of "addrs".
266 * utils.h (make_cleanup_free_section_addr_info): Don't declare.
267 * utils.c (do_free_section_addr_info)
268 (make_cleanup_free_section_addr_info): Remove.
269 * symfile.h (struct other_sections): Add constructor.
270 (struct section_addr_info): Remove.
271 (section_addr_info): New typedef.
272 (struct sym_fns) <sym_offsets>: Change type of parameter.
273 (build_section_addr_info_from_objfile)
274 (relative_addr_info_to_section_offsets, addr_info_make_relative)
275 (default_symfile_offsets, symbol_file_add)
276 (symbol_file_add_from_bfd)
277 (build_section_addr_info_from_section_table): Update.
278 (alloc_section_addr_info, free_section_addr_info): Don't declare.
279 * symfile.c (alloc_section_addr_info): Remove.
280 (build_section_addr_info_from_section_table): Change return type.
281 Update.
282 (build_section_addr_info_from_bfd)
283 (build_section_addr_info_from_objfile): Likewise.
284 (free_section_addr_info): Remove.
285 (relative_addr_info_to_section_offsets): Change type of "addrs".
286 (addrs_section_compar): Now a std::sort comparator.
287 (addrs_section_sort): Change return type.
288 (addr_info_make_relative): Change type of "addrs". Update.
289 (default_symfile_offsets, syms_from_objfile_1)
290 (syms_from_objfile, symbol_file_add_with_addrs): Likewise.
291 (symbol_file_add_separate): Update.
292 (symbol_file_add): Change type of "addrs". Update.
293 (add_symbol_file_command): Update. Remove cleanups.
294 * symfile-mem.c (symbol_file_add_from_memory): Update. Remove
295 cleanups.
296 * symfile-debug.c (debug_sym_offsets): Change type of "info".
297 * solib.c (solib_read_symbols): Update.
298 * objfiles.c (objfile_relocate): Update. Remove cleanups.
299 * machoread.c (macho_symfile_offsets): Update.
300 * jit.c (jit_bfd_try_read_symtab): Update.
301
302 2018-03-15 Simon Marchi <simon.marchi@polymtl.ca>
303
304 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
305 unittests/utils-selftests.c.
306 * unittests/utils-selftests.c: New file.
307
308 2018-03-14 Tom Tromey <tom@tromey.com>
309
310 PR cli/14977:
311 * printcmd.c (printf_c_string, printf_wide_c_string): Special case
312 for NULL.
313
314 2018-03-14 Tom Tromey <tom@tromey.com>
315
316 PR cli/19918:
317 * printcmd.c (printf_pointer): Allow "-" in format.
318
319 2018-03-14 Tom Tromey <tom@tromey.com>
320
321 * printcmd.c (_initialize_printcmd): Add usage to printf.
322
323 2018-03-14 Yao Qi <qiyao@sourceware.org>
324
325 * MAINTAINERS: Update my email address.
326
327 2018-03-13 Tom Tromey <tom@tromey.com>
328
329 * machoread.c (macho_check_dsym): Change filenamep to a
330 std::string*.
331 (macho_symfile_read): Update.
332 * symfile.c (load_command): Use std::string.
333
334 2018-03-12 Andrew Burgess <andrew.burgess@embecosm.com>
335
336 * riscv-tdep.c (riscv_sw_breakpoint_from_kind): Add localization
337 to error message string.
338 (riscv_register_name): Use xsnprintf instead of sprintf.
339 (riscv_insn::fetch_instruction): Use gdb_assert instead of
340 internal_error.
341 (riscv_print_arg_location): Use gdb_assert_not_reached instead of
342 error.
343 (riscv_push_dummy_call): Likewise.
344
345 2018-03-12 Tom Tromey <tom@tromey.com>
346
347 * rs6000-aix-tdep.c (rs6000_aix_core_xfer_shared_libraries_aix):
348 Use gdb::byte_vector.
349 * arm-tdep.c (arm_exidx_new_objfile): Use gdb::byte_vector.
350
351 2018-03-12 Yao Qi <yao.qi@linaro.org>
352
353 * ia64-libunwind-tdep.c (libunwind_get_reg_special): Change
354 parameter type to readable_regcache.
355 * ia64-libunwind-tdep.h (libunwind_get_reg_special): Update
356 the declaration.
357
358 2018-03-11 Tom Tromey <tom@tromey.com>
359
360 * dwarf2read.c (struct nextfield): Add initializers.
361 (struct nextfnfield): Remove.
362 (struct fnfieldlist): Add initializers. Remove "length" and
363 "head", use std::vector.
364 (struct decl_field_list): Remove.
365 (struct field_info): Add initializers.
366 <fields, baseclasses>: Now std::vector.
367 <nbaseclasses, nfnfields, typedef_field_list_count,
368 nested_types_list_count>: Remove.
369 (dwarf2_add_field, dwarf2_add_type_defn)
370 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
371 (dwarf2_attach_fn_fields_to_type, handle_struct_member_die)
372 (process_structure_scope): Update.
373
374 2018-03-11 Tom Tromey <tom@tromey.com>
375
376 * dwarf2read.c (sort_tu_by_abbrev_offset): Change to be suitable
377 for use by std::sort.
378 (build_type_psymtabs_1): Use std::vector.
379
380 2018-03-09 Eli Zaretskii <eliz@gnu.org>
381
382 * top.c (print_gdb_configuration): Reflect LIBIPT, LIBMEMCHECK,
383 and LIBMPFR in the printed configuration.
384
385 2018-03-08 Tom Tromey <tom@tromey.com>
386
387 * source.c (get_filename_and_charpos): Use scoped_fd.
388 * nto-procfs.c (procfs_open_1): Use scoped_fd.
389 (procfs_pidlist): Likewise.
390 * procfs.c (proc_get_LDT_entry): Use scoped_fd.
391 (iterate_over_mappings): Likewise.
392
393 2018-03-08 Tom Tromey <tom@tromey.com>
394
395 * infcall.c (struct call_return_meta_info)
396 <stack_temporaries_enabled>: Remove.
397 (get_call_return_value, call_function_by_hand_dummy): Update.
398 * thread.c (disable_thread_stack_temporaries): Remove.
399 (enable_thread_stack_temporaries): Remove.
400 (thread_stack_temporaries_enabled_p): Return bool.
401 (push_thread_stack_temporary, value_in_thread_stack_temporaries)
402 (get_last_thread_stack_temporary): Update.
403 * eval.c (evaluate_subexp): Update.
404 * gdbthread.h (class enable_thread_stack_temporaries): Now a
405 class, not a function.
406 (value_ptr, value_vec): Remove typedefs.
407 (class thread_info) <stack_temporaries_enabled>: Now bool.
408 <stack_temporaries>: Now a std::vector.
409 (thread_stack_temporaries_enabled_p)
410 (value_in_thread_stack_temporaries): Return bool.
411
412 2018-03-08 Simon Marchi <simon.marchi@ericsson.com>
413
414 * remote.c (putpkt_binary): Fix omitted bytes reporting.
415 (getpkt_or_notif_sane_1): Likewise.
416
417 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
418
419 * build-id.c (build_id_to_debug_bfd): Use std::string.
420
421 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
422
423 * build-id.c (find_separate_debug_file_by_buildid): Return
424 std::string.
425 * build-id.h (find_separate_debug_file_by_buildid): Return
426 std::string.
427 * coffread.c (coff_symfile_read): Adjust to std::string.
428 * elfread.c (elf_symfile_read): Adjust to std::string.
429 * symfile.c (separate_debug_file_exists): Change parameter to
430 std::string.
431 (find_separate_debug_file): Return std::string.
432 (find_separate_debug_file_by_debuglink): Return std::string.
433 * symfile.h (find_separate_debug_file_by_debuglink): Return
434 std::string.
435
436 2018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
437
438 * common/xml-utils.c (xml_escape_text): Move code to...
439 (xml_escape_text_append): ... this new function.
440 * common/xml-utils.h (xml_escape_text_append): New declaration.
441 * unittests/xml-utils-selftests.c (test_xml_escape_text_append):
442 New function.
443 (_initialize_xml_utils): register test_xml_escape_text_append as
444 a selftest.
445
446 2018-03-07 Alan Hayward <alan.hayward@arm.com>
447
448 * defs.h: Remove MAX_REGISTER_SIZE.
449 * regcache.c (init_regcache_descr): Remove MAX_REGISTER_SIZE
450 asserts.
451 * python/py-unwind.c (pyuw_sniffer): Likewise.
452
453 2018-03-07 Tom Tromey <tom@tromey.com>
454
455 * linux-tdep.c (linux_info_proc): Update.
456 * target.h (struct target_ops) <to_fileio_readlink>: Return
457 optional<string>.
458 (target_fileio_readlink): Return optional<string>.
459 * remote.c (remote_hostio_readlink): Return optional<string>.
460 * inf-child.c (inf_child_fileio_readlink): Return
461 optional<string>.
462 * target.c (target_fileio_readlink): Return optional<string>.
463
464 2018-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
465
466 * regcache.c (cooked_read_test): Add riscv to the list of
467 architectures that have a save_reggroup.
468
469 2018-03-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
470
471 * gnu-v3-abi.c (gnuv3_rtti_type): Add early exit if the given
472 value is not a dynamic class object.
473
474 2018-03-06 Tom Tromey <tom@tromey.com>
475
476 * rust-exp.y: Formatting fixes.
477
478 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
479
480 * riscv-tdep.c (riscv_register_name): Remove target description
481 support.
482 (riscv_gdbarch_init): Remove target description check.
483
484 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
485
486 * riscv-tdep.c: Remove 'Contributed by ...' lines from header
487 comment.
488 * riscv-tdep.h: Likewise.
489
490 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
491
492 * riscv-tdep.c (riscv_pseudo_register_read): Delete.
493 (riscv_pseudo_register_write): Delete.
494 (riscv_gdbarch_init): Remove all use of pseudo registers.
495
496 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
497
498 * record-btrace.c (btrace_print_lines): Replace cleanup
499 parameter with RAII equivalents.
500 (btrace_insn_history): Replace cleanup with RAII equivalents.
501 * ui-out.h (make_cleanup_ui_out_list_begin_end,
502 make_cleanup_ui_out_tuple_begin_end): Remove.
503 * ui-out.c (struct ui_out_end_cleanup_data, do_cleanup_end,
504 make_cleanup_ui_out_end, make_cleanup_ui_out_tuple_begin_end,
505 make_cleanup_ui_out_list_begin_end): Remove.
506
507 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
508
509 * record-btrace.c (record_btrace_maybe_mark_async_event): Change
510 parameter types to std::vector. Use bool.
511 (record_btrace_wait): Replace VEC(tp_t) with
512 std::vector<thread_info *>.
513 * common/gdb_vecs.h (unordered_remove, ordered_remove): New.
514
515 2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
516
517 * record-btrace.c (record_btrace_disable_callback): Remove.
518 (struct scoped_btrace_disable): New.
519 (record_btrace_open): Use scoped_btrace_disable.
520
521 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
522
523 * riscv-tdep.c (riscv_return_value): Change type to ULONGEST for
524 reading values from registers.
525
526 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
527
528 * riscv-tdep.c (riscv_push_dummy_call): Use core_addr_to_string_nz
529 where appropriate.
530
531 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
532
533 * riscv-tdep.c (riscv_print_arg_location): Add header comment,
534 change parameter type. Use GDB's print functions, and use
535 core_addr_to_string where appropriate.
536 (riscv_push_dummy_call): Use core_addr_to_string where
537 appropriate, update call to riscv_print_arg_location, and reindent
538 a few lines.
539 (riscv_return_value): Update call to riscv_print_arg_location.
540
541 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
542 Tim Newsome <tim@sifive.com>
543 Albert Ou <a0u@eecs.berkeley.edu>
544 Darius Rad <darius@bluespec.com>
545
546 * Makefile.in (ALL_TARGET_OBS): Add riscv-tdep.o
547 (HFILES_NO_SRCDIR): Add riscv-tdep.h.
548 (ALLDEPFILES): Add riscv-tdep.c
549 * configure.tgt: Add riscv support.
550 * riscv-tdep.c: New file.
551 * riscv-tdep.h: New file.
552 * NEWS: Mention new target.
553 * MAINTAINERS: Add entry for riscv.
554
555 2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
556
557 * amd64-tdep.c (amd64_classify_aggregate): Ignore zero sized
558 fields within aggregates.
559
560 2018-03-04 Simon Marchi <simon.marchi@polymtl.ca>
561
562 * record-btrace.c (btrace_print_lines): Change type of flags to
563 gdb_disassembly_flags.
564
565 2018-03-04 John Baldwin <jhb@FreeBSD.org>
566
567 * fbsd-nat.c: Include "inf-ptrace.h".
568 (USE_SIGTRAP_SIGINFO): Conditionally define.
569 [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
570 (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
571 [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
572 function.
573 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
574 Likewise.
575 [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
576 Likewise.
577 (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
578 "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
579 "supports_stopped_by_hw_breakpoint" target methods.
580
581 2018-03-04 John Baldwin <jhb@FreeBSD.org>
582
583 * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".
584 * fbsd-nat.c (debug_fbsd_nat): New variable.
585 (show_fbsd_nat_debug): New function.
586 (fbsd_wait): Log LWP info if "debug_fbsd_nat" is enabled.
587 (_initialize_fbsd_nat): Add "fbsd-nat" debug boolean command.
588
589 2018-03-04 John Baldwin <jhb@FreeBSD.org>
590
591 * nat/x86-dregs.c (x86_dr_stopped_by_hw_breakpoint): New function.
592 * nat/x86-dregs.h (x86_dr_stopped_by_hw_breakpoint): New
593 prototype.
594 * x86-nat.c (x86_stopped_by_hw_breakpoint): New function.
595 (x86_use_watchpoints): Set "stopped_by_hw_breakpoint" target
596 method.
597
598 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
599
600 * common/gdb_vecs.c (free_char_ptr_vec): Remove.
601 * common/gdb_vecs.h (free_char_ptr_vec): Remove.
602
603 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
604
605 * charset.c (struct charset_vector): New.
606 (charsets): Change type to charset_vector.
607 (find_charset_names): Adjust.
608 (add_one): Adjust.
609 (_initialize_charset): Adjust.
610
611 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
612
613 * progspace.h (struct program_space) <deleted_solibs>: Change
614 type to std::vector<std::string>.
615 * progspace.c (clear_program_space_solib_cache): Adjust.
616 * breakpoint.c (print_solib_event): Adjust.
617 (check_status_catch_solib): Adjust.
618 * solib.c (update_solib_list): Adjust.
619 * ui-out.h (class ui_out) <field_string>: New overload.
620 * ui-out.c (ui_out::field_string): New overload.
621
622 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
623
624 * progspace.h (struct program_space): Add constructor and
625 destructor, initialize fields.
626 (add_program_space): Remove.
627 * progspace.c (add_program_space): Rename to...
628 (program_space::program_space): ... this.
629 (release_program_space): Rename to...
630 (program_space::~program_space): ... this.
631 (delete_program_space): Use delete to delete program_space.
632 (initialize_progspace): Use new to allocate program_space.
633 * inferior.c (add_inferior_with_spaces): Likewise.
634 (clone_inferior_command): Likewise.
635 * infrun.c (follow_fork_inferior): Likewise.
636 (handle_vfork_child_exec_or_exit): Likewise.
637
638 2018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
639
640 * common/gdb_vecs.h (make_cleanup_free_char_ptr_vec): Remove.
641 (delim_string_to_char_ptr_vec): Return std::vector of
642 gdb::unique_xmalloc_ptr.
643 (dirnames_to_char_ptr_vec_append): Take std::vector of
644 gdb::unique_xmalloc_ptr.
645 (dirnames_to_char_ptr_vec): Return std::vector of
646 gdb::unique_xmalloc_ptr.
647 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append):
648 Take std::vector of gdb::unique_xmalloc_ptr, adjust the code.
649 (delim_string_to_char_ptr_vec): Return an std::vector of
650 gdb::unique_xmalloc_ptr, adjust the code.
651 (dirnames_to_char_ptr_vec_append): Take an std::vector of
652 gdb::unique_xmalloc_ptr, adjust the code.
653 (dirnames_to_char_ptr_vec): Return an std::vector of
654 gdb::unique_xmalloc_ptr, adjust the code.
655 * auto-load.c (auto_load_safe_path_vec): Change type to
656 std::vector of gdb::unique_xmalloc_ptr.
657 (auto_load_expand_dir_vars): Return an std::vector of
658 gdb::unique_xmalloc_ptr, adjust the code.
659 (auto_load_safe_path_vec_update): Adjust.
660 (filename_is_in_auto_load_safe_path_vec): Adjust.
661 (auto_load_objfile_script_1): Adjust.
662 * build-id.c (build_id_to_debug_bfd): Adjust.
663 * linux-thread-db.c (thread_db_load_search): Adjust.
664 * source.c (add_path): Adjust.
665 (openp): Adjust.
666 * symfile.c (find_separate_debug_file): Adjust.
667 * utils.c (do_free_char_ptr_vec): Remove.
668 (make_cleanup_free_char_ptr_vec): Remove.
669
670 2018-03-01 Sergio Durigan Junior <sergiodj@redhat.com>
671
672 PR gdb/22907
673 * common/pathstuff.c: Conditionally include "<windows.h>".
674
675 2018-03-01 Georg Sauthoff <mail@georg.so>
676
677 PR gdb/22888
678 * gcore.in: Quote variables and switch interpreter to bash.
679
680 2018-03-01 Tom Tromey <tom@tromey.com>
681
682 * dwarf2read.c (alloc_discriminant_info): Fix default_index
683 assertion. Add assertion for discriminant_index.
684 (quirk_rust_enum): Use correct base type name in univariant case.
685
686 2018-03-01 Simon Marchi <simon.marchi@ericsson.com>
687
688 * record.c (get_call_history_modifiers): Return a
689 record_print_flags.
690 (cmd_record_call_history): Adjust.
691 * record-btrace.c (record_btrace_call_history): Adjust.
692 (record_btrace_call_history_range): Adjust.
693 (record_btrace_call_history_from): Adjust.
694 * target-debug.h (target_debug_print_record_print_flags): New.
695 * target-delegates.c: Re-generate.
696 * target.c (target_call_history): Change flags type.
697 (target_call_history_from): Likewise.
698 (target_call_history_range): Likewise.
699 * target.h (struct target_ops) <target_call_history>: Likewise.
700 (target_call_history_from): Likewise.
701 (target_call_history_range): Likewise.
702
703 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
704 Simon Marchi <simon.marchi@polymtl.ca>
705
706 * common/common-utils.c: Include "sys/stat.h".
707 (is_regular_file): Move here from "source.c"; change return
708 type to "bool".
709 * common/common-utils.h (is_regular_file): New prototype.
710 * common/pathstuff.c (contains_dir_separator): New function.
711 * common/pathstuff.h (contains_dir_separator): New prototype.
712 * source.c: Don't include "sys/stat.h".
713 (is_regular_file): Move to "common/common-utils.c".
714
715 2018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
716
717 * Makefile.in (COMMON_SFILES): Add "common/pathstuff.c".
718 (HFILES_NO_SRCDIR): Add "common/pathstuff.h".
719 * auto-load.c: Include "common/pathstuff.h".
720 * common/common-def.h (current_directory): Move here.
721 * common/gdb_tilde_expand.c (gdb_tilde_expand_up): New
722 function.
723 * common/gdb_tilde_expand.h (gdb_tilde_expand_up): New
724 prototype.
725 * common/pathstuff.c: New file.
726 * common/pathstuff.h: New file.
727 * compile/compile.c: Include "common/pathstuff.h".
728 * defs.h (current_directory): Move to "common/common-defs.h".
729 * dwarf2read.c: Include "common/pathstuff.h".
730 * exec.c: Likewise.
731 * guile/scm-safe-call.c: Likewise.
732 * linux-thread-db.c: Likewise.
733 * main.c: Likewise.
734 * nto-tdep.c: Likewise.
735 * objfiles.c: Likewise.
736 * source.c: Likewise.
737 * symtab.c: Likewise.
738 * utils.c: Include "common/pathstuff.h".
739 (gdb_realpath): Move to "common/pathstuff.c".
740 (gdb_realpath_keepfile): Likewise.
741 (gdb_abspath): Likewise.
742 * utils.h (gdb_realpath): Move to "common/pathstuff.h".
743 (gdb_realpath_keepfile): Likewise.
744 (gdb_abspath): Likewise.
745
746 2018-02-28 John Baldwin <jhb@FreeBSD.org>
747
748 * fbsd-nat.c (fbsd_resume): Use PT_SETSTEP for stepping and a
749 wildcard process pid for super_resume for kernels with a
750 specific bug.
751
752 2018-02-27 Phil Muldoon <pmuldoon@redhat.com>
753
754 * compile/compile.c (get_args): Add additional comments
755 explaining function.
756
757 2018-02-27 Simon Marchi <simon.marchi@polymtl.ca>
758 Tom Tromey <tom@tromey.com>
759
760 * target.h (memory_write_request_s): Remove typedef. Don't define
761 VEC.
762 (target_write_memory_blocks): Change argument to std::vector.
763 (struct memory_write_request): Add constructor.
764 * target-memory.c (compare_block_starting_address): Return bool.
765 Change argument types.
766 (claim_memory): Change arguments to use std::vector.
767 (split_regular_and_flash_blocks, blocks_to_erase)
768 (compute_garbled_blocks): Likewise.
769 (cleanup_request_data, cleanup_write_requests_vector): Remove.
770 (target_write_memory_blocks): Change argument to std::vector.
771 * symfile.c (struct load_section_data): Add constructor and
772 destructor. Use std::vector for "requests".
773 (struct load_progress_data): Add initializers.
774 (load_section_callback): Update. Use "new".
775 (clear_memory_write_data): Remove.
776 (generic_load): Update.
777
778 2018-02-27 Alan Hayward <alan.hayward@arm.com>
779
780 * arch/aarch64.h: Use common/tdesc.h.
781
782 2018-02-26 Maciej W. Rozycki <macro@mips.com>
783
784 * mips-tdep.c (mips_gdbarch_init): Don't use a 32-bit BFD
785 architecture with a 64-bit ABI.
786
787 2018-02-26 Maciej W. Rozycki <macro@mips.com>
788
789 * gdb/mips-tdep.c (mips_gdbarch_init): Reorder ABI determination
790 ahead of target description loading.
791
792 2018-02-26 Tom Tromey <tom@tromey.com>
793
794 * stack.c (backtrace_command_1): Update.
795 * python/python-internal.h (gdbpy_apply_frame_filter): Change type
796 of "flags".
797 * python/py-framefilter.c (py_print_frame)
798 (gdbpy_apply_frame_filter): Change type of "flags".
799 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): Change type
800 of "flags".
801 (mi_cmd_stack_list_frames, mi_cmd_stack_list_locals)
802 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Update.
803 * extension.h (enum frame_filter_flag): Rename from
804 frame_filter_flags.
805 (frame_filter_flags): Define using DEF_ENUM_FLAGS_TYPE.
806 (apply_ext_lang_frame_filter): Change type of "flags".
807 * extension.c (apply_ext_lang_frame_filter): Change type of
808 "flags".
809 * extension-priv.h (struct extension_language_ops)
810 <apply_frame_filter>: Change type of "flags".
811
812 2018-02-26 Tom Tromey <tom@tromey.com>
813
814 PR python/16497:
815 * stack.c (backtrace_command_1): Set PRINT_MORE_FRAMES flag. Fix
816 off-by-one in py_end computation.
817 * python/py-framefilter.c (gdbpy_apply_frame_filter): Handle
818 PRINT_MORE_FRAMES.
819 * extension.h (enum frame_filter_flags) <PRINT_MORE_FRAMES>: New
820 constant.
821
822 2018-02-26 Tom Tromey <tom@tromey.com>
823
824 * dwarf2read.c (struct variant_field): New.
825 (struct nextfield) <variant>: New field.
826 (dwarf2_add_field): Handle DW_TAG_variant_part.
827 (dwarf2_attach_fields_to_type): Attach a discriminant_info to a
828 discriminated union.
829 (read_structure_type): Handle DW_TAG_variant_part.
830 (handle_struct_member_die): New function, extracted from
831 process_structure_scope. Handle DW_TAG_variant.
832 (process_structure_scope): Handle discriminated unions. Call
833 handle_struct_member_die.
834
835 2018-02-26 Tom Tromey <tom@tromey.com>
836
837 * rust-lang.h (rust_last_path_segment): Declare.
838 * rust-lang.c (rust_last_path_segment): Now public. Change
839 contract.
840 (struct disr_info): Remove.
841 (RUST_ENUM_PREFIX, RUST_ENCODED_ENUM_REAL)
842 (RUST_ENCODED_ENUM_HIDDEN, rust_union_is_untagged)
843 (rust_get_disr_info, rust_tuple_variant_type_p): Remove.
844 (rust_enum_p, rust_enum_variant): New function.
845 (rust_underscore_fields): Remove "offset" parameter.
846 (rust_print_enum): New function.
847 (rust_val_print) <TYPE_CODE_UNION>: Remove enum code.
848 <TYPE_CODE_STRUCT>: Call rust_print_enum when appropriate.
849 (rust_print_struct_def): Add "for_rust_enum" parameter. Handle
850 enums.
851 (rust_internal_print_type): New function, from rust_print_type.
852 Remove enum code.
853 (rust_print_type): Call rust_internal_print_type.
854 (rust_evaluate_subexp) <STRUCTOP_ANONYMOUS, STRUCTOP_STRUCT>:
855 Update enum handling.
856 * dwarf2read.c (struct dwarf2_cu) <rust_unions>: New field.
857 (rust_fully_qualify, alloc_discriminant_info, quirk_rust_enum)
858 (rust_union_quirks): New functions.
859 (process_full_comp_unit, process_full_type_unit): Call
860 rust_union_quirks.
861 (process_structure_scope): Update rust_unions if necessary.
862
863 2018-02-26 Tom Tromey <tom@tromey.com>
864
865 * value.h (value_union_variant): Declare.
866 * valops.c (value_union_variant): New function.
867 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): New macro.
868 (struct discriminant_info): New.
869 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: New
870 enumerator.
871 (struct main_type) <flag_discriminated_union>: New field.
872
873 2018-02-26 Tom Tromey <tom@tromey.com>
874
875 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
876 unittests/unpack-selftests.c.
877 * unittests/unpack-selftests.c: New file.
878 * value.c (unpack_bits_as_long): Fix bugs in non-bitfield cases.
879
880 2018-02-26 Yao Qi <yao.qi@linaro.org>
881
882 * dwarf2read.c (struct partial_die_info) <read>: New method.
883 (read_partial_die): Remove the declaration.
884 (load_partial_dies): Update.
885 (partial_die_info::partial_die_info):
886 (read_partial_die): Change it to partial_die_info::read.
887
888 2018-02-26 Yao Qi <yao.qi@linaro.org>
889
890 * dwarf2read.c (struct partial_die_info) <fixup>: New method.
891 (fixup_partial_die): Remove declaration.
892 (scan_partial_symbols): Update.
893 (partial_die_parent_scope): Likewise.
894 (partial_die_full_name): Likewise.
895 (fixup_partial_die): Change it to partial_die_info::fixup.
896
897 2018-02-26 Yao Qi <yao.qi@linaro.org>
898
899 * dwarf2read.c (read_partial_die): Update the declaration.
900 (load_partial_dies): Caller update.
901 (read_partial_die): Remove one argument abbrev_len.
902
903 2018-02-26 Yao Qi <yao.qi@linaro.org>
904
905 * dwarf2read.c (struct partial_die_info): Add ctor, delete
906 assignment operator.
907 (load_partial_dies): Use ctor and copy ctor.
908 (read_partial_die): Update.
909 (dwarf2_cu::find_partial_die): Use ctor.
910
911 2018-02-26 Yao Qi <yao.qi@linaro.org>
912
913 * dwarf2read.c (struct dwarf2_cu) <find_partial_die>: New method.
914 (find_partial_die_in_comp_unit): Change it to
915 dwarf2_cu::find_partial_die.
916 (find_partial_die): Update.
917
918 2018-02-26 Yao Qi <yao.qi@linaro.org>
919
920 * dwarf2read.c (read_partial_die): Remove the code checking abbrev
921 is NULL.
922
923 2018-02-26 Yao Qi <yao.qi@linaro.org>
924
925 * dwarf2read.c (load_partial_dies): Move the location of XOBNEW.
926
927 2018-02-26 Alan Hayward <alan.hayward@arm.com>
928
929 * arch/amd64.h: Use common/tdesc.h.
930 * arch/i386.c: Likewise.
931 * arch/i386.h: Likewise.
932 * arch/tic6x.c: Likewise.
933 * arch/tdesc.h: Move file from here...
934 * common/tdesc.h: ...to here.
935 * features/aarch64-core.c: Regenerate.
936 * features/aarch64-fpu.c: Regenerate.
937 * features/i386/32bit-avx.c: Regenerate.
938 * features/i386/32bit-avx512.c: Regenerate.
939 * features/i386/32bit-core.c: Regenerate.
940 * features/i386/32bit-linux.c: Regenerate.
941 * features/i386/32bit-mpx.c: Regenerate.
942 * features/i386/32bit-pkeys.c: Regenerate.
943 * features/i386/32bit-sse.c: Regenerate.
944 * features/i386/64bit-avx.c: Regenerate.
945 * features/i386/64bit-avx512.c: Regenerate.
946 * features/i386/64bit-core.c: Regenerate.
947 * features/i386/64bit-linux.c: Regenerate.
948 * features/i386/64bit-mpx.c: Regenerate.
949 * features/i386/64bit-pkeys.c: Regenerate.
950 * features/i386/64bit-segments.c: Regenerate.
951 * features/i386/64bit-sse.c: Regenerate.
952 * features/i386/x32-core.c: Regenerate.
953 * features/tic6x-c6xp.c: Regenerate.
954 * features/tic6x-core.c: Regenerate.
955 * features/tic6x-gp.c: Regenerate.
956 * target-descriptions.c: Use common/tdesc.h.
957 * target-descriptions.h: Likewise.
958
959 2018-02-24 Tom Tromey <tom@tromey.com>
960
961 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
962 (try_thread_db_load_from_dir, thread_db_load_search): Use
963 std::string.
964 (info_auto_load_libthread_db_compare): Return bool. Change
965 argument types.
966 (info_auto_load_libthread_db): Use std::vector, std::string.
967 Remove cleanups.
968
969 2018-02-24 Tom Tromey <tom@tromey.com>
970
971 * i386-tdep.c (i386_fast_tracepoint_valid_at): "msg" now a
972 std::string.
973 * gdbarch.sh (fast_tracepoint_valid_at): Change "msg" to a
974 std::string*.
975 * gdbarch.c: Rebuild.
976 * gdbarch.h: Rebuild.
977 * breakpoint.c (check_fast_tracepoint_sals): Use std::string.
978 * arch-utils.h (default_fast_tracepoint_valid_at): Update.
979 * arch-utils.c (default_fast_tracepoint_valid_at): "msg" now a
980 std::string*.
981
982 2018-02-23 Simon Marchi <simon.marchi@polymtl.ca>
983
984 * gdbtypes.h (sect_offset): Change type to uint64_t.
985 (sect_offset_str): New function.
986 * dwarf2read.c (create_addrmap_from_aranges): Use
987 sect_offset_str.
988 (error_check_comp_unit_head): Likewise.
989 (create_debug_type_hash_table): Likewise.
990 (read_cutu_die_from_dwo): Likewise.
991 (init_cutu_and_read_dies): Likewise.
992 (init_cutu_and_read_dies_no_follow): Likewise.
993 (process_psymtab_comp_unit_reader): Likewise.
994 (partial_die_parent_scope): Likewise.
995 (peek_die_abbrev): Likewise.
996 (process_queue): Likewise.
997 (dwarf2_physname): Likewise.
998 (read_namespace_alias): Likewise.
999 (read_import_statement): Likewise.
1000 (create_dwo_cu_reader): Likewise.
1001 (create_cus_hash_table): Likewise.
1002 (lookup_dwo_cutu): Likewise.
1003 (inherit_abstract_dies): Likewise.
1004 (read_func_scope): Likewise.
1005 (read_call_site_scope): Likewise.
1006 (dwarf2_add_member_fn): Likewise.
1007 (read_common_block): Likewise.
1008 (read_module_type): Likewise.
1009 (read_typedef): Likewise.
1010 (read_subrange_type): Likewise.
1011 (load_partial_dies): Likewise.
1012 (read_partial_die): Likewise.
1013 (find_partial_die): Likewise.
1014 (read_str_index): Likewise.
1015 (dwarf2_string_attr): Likewise.
1016 (build_error_marker_type): Likewise.
1017 (lookup_die_type): Likewise.
1018 (dump_die_shallow): Likewise.
1019 (follow_die_ref): Likewise.
1020 (dwarf2_fetch_die_loc_sect_off): Likewise.
1021 (dwarf2_fetch_constant_bytes): Likewise.
1022 (follow_die_sig): Likewise.
1023 (get_signatured_type): Likewise.
1024 (get_DW_AT_signature_type): Likewise.
1025 (dwarf2_find_containing_comp_unit): Likewise.
1026 (set_die_type): Likewise.
1027
1028 2018-02-21 John Baldwin <jhb@FreeBSD.org>
1029
1030 * arch/aarch64.c: Include "common-defs.h".
1031 * arch/amd64.c: Likewise.
1032 * arch/i386.c: Likewise.
1033
1034 2018-02-21 Tom Tromey <tom@tromey.com>
1035
1036 * value.h: (extract_field_op): Update.
1037 * eval.c (extract_field_op): Return a const char *.
1038 * expression.h (parse_expression_for_completion): Update.
1039 * completer.c (complete_expression): Update.
1040 (add_struct_fields): Make fieldname const.
1041 * parse.c (expout_completion_name): Now a unique_xmalloc_ptr.
1042 (mark_completion_tag, parse_exp_in_context_1): Update.
1043 (parse_expression_for_completion): Change "name" to
1044 unique_xmalloc_ptr*.
1045
1046 2018-02-21 Tom Tromey <tom@tromey.com>
1047
1048 * infcall.c (call_function_by_hand_dummy): Use std::vector.
1049
1050 2018-02-21 Yao Qi <yao.qi@linaro.org>
1051
1052 * avr-tdep.c (avr_read_pc): Change parameter type to
1053 readable_regcache.
1054 * gdbarch.sh (read_pc): Likewise.
1055 * gdbarch.c: Re-generated.
1056 * gdbarch.h: Re-generated.
1057 * hppa-tdep.c (hppa_read_pc): Change parameter type to
1058 readable_regcache.
1059 * ia64-tdep.c (ia64_read_pc): Likewise.
1060 * mips-tdep.c (mips_read_pc): Likewise.
1061 * spu-tdep.c (spu_read_pc): Likewise.
1062
1063 2018-02-21 Yao Qi <yao.qi@linaro.org>
1064
1065 * Makefile.in (COMMON_SFILES): Add regcache-dump.c
1066 * regcache-dump.c: New file.
1067 * regcache.c: Move register_dump to regcache-dump.c.
1068 (maintenance_print_registers): Likewise.
1069 (maintenance_print_raw_registers): Likewise.
1070 (maintenance_print_cooked_registers): Likewise.
1071 (maintenance_print_register_groups): Likewise.
1072 (maintenance_print_remote_registers): Likewise.
1073 (_initialize_regcache): Likewise.
1074 * regcache.h (register_dump): Moved from regcache.c.
1075
1076 2018-02-21 Yao Qi <yao.qi@linaro.org>
1077
1078 * regcache.c (regcache::regcache): Update.
1079 (regcache::invalidate): Move it to detached_regcache::invalidate.
1080 (get_thread_arch_aspace_regcache): Update.
1081 (regcache::raw_update): Update.
1082 (regcache::cooked_read): Remove some code.
1083 (regcache::cooked_read_value): Likewise.
1084 (regcache::raw_write): Remove assert on m_readonly_p.
1085 (regcache::raw_supply_integer): Move it to
1086 detached_regcache::raw_supply_integer.
1087 (regcache::raw_supply_zeroed): Likewise.
1088 * regcache.h (detached_regcache) <raw_supply_integer>: New
1089 declaration.
1090 <raw_supply_zeroed, invalidate>: Likewise.
1091 (regcache) <raw_supply_integer, raw_supply_zeroed>: Removed.
1092 <invalidate>: Likewise.
1093 <m_readonly_p>: Removed.
1094
1095 2018-02-21 Yao Qi <yao.qi@linaro.org>
1096
1097 * infcmd.c (get_return_value): Let stop_regs point to
1098 get_current_regcache.
1099 * regcache.c (regcache::regcache): Remove.
1100 (register_dump_reg_buffer): New class.
1101 (regcache_print): Adjust.
1102 * regcache.h (regcache): Remove constructors.
1103
1104 2018-02-21 Yao Qi <yao.qi@linaro.org>
1105
1106 * regcache.c (class register_dump): New class.
1107 (register_dump_regcache, register_dump_none): New class.
1108 (register_dump_remote, register_dump_groups): New class.
1109 (regcache_print): Update.
1110 * regcache.h (regcache_dump_what): Move it to regcache.c.
1111 (regcache) <dump>: Remove.
1112
1113 2018-02-21 Yao Qi <yao.qi@linaro.org>
1114
1115 * jit.c (struct jit_unwind_private) <regcache>: Change its type to
1116 reg_buffer_rw *.
1117 (jit_unwind_reg_set_impl): Call raw_supply.
1118 (jit_frame_sniffer): Use reg_buffer_rw.
1119 * record-full.c (record_full_core_regbuf): Change its type.
1120 (record_full_core_open_1): Use reg_buffer_rw.
1121 (record_full_close): Likewise.
1122 (record_full_core_fetch_registers): Use regcache->raw_supply.
1123 (record_full_core_store_registers): Likewise.
1124 * regcache.c (regcache::get_register_status): Move it to
1125 reg_buffer.
1126 (regcache_raw_set_cached_value): Remove.
1127 (regcache::raw_set_cached_value): Remove.
1128 (regcache::raw_write): Call raw_supply.
1129 (regcache::raw_supply): Move it to reg_buffer_rw.
1130 * regcache.h (regcache_raw_set_cached_value): Remove.
1131 (reg_buffer_rw): New class.
1132
1133 2018-02-21 Yao Qi <yao.qi@linaro.org>
1134
1135 * dummy-frame.c (dummy_frame_cache) <prev_regcache>: Use
1136 readonly_detached_regcache.
1137 (dummy_frame_prev_register): Use regcache->cooked_read.
1138 * frame.c (frame_save_as_regcache): Change return type.
1139 (frame_pop): Update.
1140 * frame.h (frame_save_as_regcache): Update declaration.
1141 * inferior.h (get_infcall_suspend_state_regcache): Update
1142 declaration.
1143 * infrun.c (infcall_suspend_state) <registers>: use
1144 readonly_detached_regcache.
1145 (save_infcall_suspend_state): Don't use regcache_dup.
1146 (get_infcall_suspend_state_regcache): Change return type.
1147 * linux-fork.c (struct fork_info) <savedregs>: Change to
1148 readonly_detached_regcache.
1149 <pc>: New field.
1150 (fork_save_infrun_state): Don't use regcache_dup.
1151 (info_checkpoints_command): Adjust.
1152 * mi/mi-main.c (register_changed_p): Update declaration.
1153 (mi_cmd_data_list_changed_registers): Use
1154 readonly_detached_regcache.
1155 (register_changed_p): Change parameter type to
1156 readonly_detached_regcache.
1157 * ppc-linux-tdep.c (ppu2spu_cache) <regcache>: Use
1158 readonly_detached_regcache.
1159 (ppu2spu_sniffer): Construct a new readonly_detached_regcache.
1160 * regcache.c (readonly_detached_regcache::readonly_detached_regcache):
1161 New.
1162 (regcache::save): Move it to reg_buffer.
1163 (regcache::restore): Change parameter type.
1164 (regcache_dup): Remove.
1165 * regcache.h (reg_buffer) <save>: New method.
1166 (readonly_detached_regcache): New class.
1167 * spu-tdep.c (spu2ppu_cache) <regcache>: Use
1168 readonly_detached_regcache.
1169 (spu2ppu_sniffer): Construct a new readonly_detached_regcache.
1170
1171 2018-02-21 Yao Qi <yao.qi@linaro.org>
1172
1173 * frame.c (frame_save_as_regcache): Use regcache method save.
1174 (frame_pop): Use regcache method restore.
1175 * infrun.c (restore_infcall_suspend_state): Likewise.
1176 * linux-fork.c (fork_load_infrun_state): Likewise.
1177 * ppc-linux-tdep.c (ppu2spu_sniffer): User regcache method
1178 save.
1179 * regcache.c (regcache_save): Remove.
1180 (regcache::restore): More asserts.
1181 (regcache_cpy): Remove.
1182 * regcache.h (regcache_save): Remove the declaration.
1183 (regcache::restore): Move from private to public.
1184 Remove the friend declaration of regcache_cpy.
1185 (regcache_cpy): Remove declaration.
1186
1187 2018-02-21 Yao Qi <yao.qi@linaro.org>
1188
1189 * aarch64-tdep.c (aarch64_pseudo_register_read_value): Change
1190 parameter type to 'readable_regcache *'.
1191 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1192 * arm-tdep.c (arm_neon_quad_read): Likewise.
1193 (arm_pseudo_read): Likewise.
1194 * avr-tdep.c (avr_pseudo_register_read): Likewise.
1195 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1196 * frv-tdep.c (frv_pseudo_register_read): Likewise.
1197 * gdbarch.c: Re-generated.
1198 * gdbarch.h: Re-generated.
1199 * gdbarch.sh (pseudo_register_read): Change parameter type to
1200 'readable_regcache *'.
1201 (pseudo_register_read_value): Likewise.
1202 * h8300-tdep.c (pseudo_from_raw_register): Likewise.
1203 (h8300_pseudo_register_read): Likewise.
1204 * hppa-tdep.c (hppa_pseudo_register_read): Likewise.
1205 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1206 (i386_pseudo_register_read_into_value): Likewise.
1207 (i386_pseudo_register_read_value): Likewise.
1208 * i386-tdep.h (i386_pseudo_register_read_into_value): Update
1209 declaration.
1210 * ia64-tdep.c (ia64_pseudo_register_read): Likewise.
1211 * m32c-tdep.c (m32c_raw_read): Likewise.
1212 (m32c_read_flg): Likewise.
1213 (m32c_banked_register): Likewise.
1214 (m32c_banked_read): Likewise.
1215 (m32c_sb_read): Likewise.
1216 (m32c_part_read): Likewise.
1217 (m32c_cat_read): Likewise.
1218 (m32c_r3r2r1r0_read): Likewise.
1219 (m32c_pseudo_register_read): Likewise.
1220 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1221 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1222 (mep_pseudo_cr64_read): Likewise.
1223 (mep_pseudo_register_read): Likewise.
1224 * mips-tdep.c (mips_pseudo_register_read): Likewise.
1225 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1226 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1227 * regcache.c (regcache::raw_read): Move it to readable_regcache.
1228 (regcache::cooked_read): Likewise.
1229 (regcache::cooked_read_value): Likewise.
1230 (regcache_cooked_read_signed):
1231 (regcache::cooked_read): Likewise.
1232 * regcache.h (readable_regcache): New class.
1233 (regcache): Inherit readable_regcache. Move some methods to
1234 readable_regcache.
1235 * rl78-tdep.c (rl78_pseudo_register_read): Change
1236 parameter type to 'readable_regcache *'.
1237 * rs6000-tdep.c (do_regcache_raw_read): Remove.
1238 (e500_pseudo_register_read): Change parameter type to
1239 'readable_regcache *'.
1240 (dfp_pseudo_register_read): Likewise.
1241 (vsx_pseudo_register_read): Likewise.
1242 (efpr_pseudo_register_read): Likewise.
1243 * s390-tdep.c (s390_pseudo_register_read): Likewise.
1244 * sh-tdep.c (sh_pseudo_register_read): Likewise.
1245 * sh64-tdep.c (pseudo_register_read_portions): Likewise.
1246 (sh64_pseudo_register_read): Likewise.
1247 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
1248 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1249 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1250 (spu_pseudo_register_read): Likewise.
1251 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1252 (xtensa_pseudo_register_read): Likewise.
1253
1254 2018-02-21 Yao Qi <yao.qi@linaro.org>
1255
1256 * regcache.c (regcache::regcache): Call reg_buffer ctor.
1257 (regcache::arch): Move it to reg_buffer::arch.
1258 (regcache::register_buffer): Likewise.
1259 (regcache::assert_regnum): Likewise.
1260 (regcache::num_raw_registers): Likewise.
1261 * regcache.h (reg_buffer): New class.
1262 (regcache): Inherit reg_buffer.
1263
1264 2018-02-20 Simon Marchi <simon.marchi@ericsson.com>
1265
1266 * remote-sim.c (gdb_os_printf_filtered, gdb_os_vprintf_filtered,
1267 gdb_os_evprintf_filtered, gdb_os_error): Add ATTRIBUTE_PRINTF.
1268
1269 2018-02-20 Markus Metzger <markus.t.metzger@intel.com>
1270
1271 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add mkstemp.
1272
1273 2018-02-19 Alan Hayward <alan.hayward@arm.com>
1274
1275 * Makefile.in: (COMMON_SFILES): Add common/*.c files.
1276 (SFILES): Remove common/*.c files.
1277 (COMMON_OBS): Remove some *.o files built from common/*.c files.
1278 * common/common.host: Add common reference.
1279 * configure.ac: Likewise.
1280 * configure: Regenerate.
1281
1282 2018-02-16 Yao Qi <yao.qi@linaro.org>
1283
1284 * block.c (block_namespace_info): Inherit allocate_on_obstack.
1285 (block_initialize_namespace): Use new.
1286 * dwarf2read.c (dwarf2_per_objfile): Inherit allocate_on_obstack.
1287 (dwarf2_free_objfile): Use delete.
1288 * gdbtypes.c (type_pair): Inherit allocate_on_obstack.
1289 (copy_type_recursive): Use new.
1290 * gdb_obstack.h (allocate_on_obstack): New.
1291
1292 2018-02-15 Yao Qi <yao.qi@linaro.org>
1293
1294 PR gdb/22849
1295 * inferior.c (exit_inferior_1): Reset inf->control.
1296
1297 2018-02-15 Joel Brobecker <brobecker@adacore.com>
1298
1299 * ada-lang.c (ada_to_fixed_value_create): Delete advance
1300 declaration.
1301
1302 2018-02-14 Pedro Alves <palves@redhat.com>
1303
1304 * frame-unwind.c (frame_unwind_try_unwinder): Always call
1305 frame_cleanup_after_sniffer on exception.
1306
1307 2018-02-14 Tom Tromey <tom@tromey.com>
1308
1309 * solist.h (struct target_so_ops) <bfd_open>: Make pathname
1310 const.
1311 (solib_bfd_open): Make pathname const.
1312 * solib.c (solib_bfd_open): Make pathname const.
1313 * solib-spu.c (spu_bfd_fopen): Make name const.
1314 (spu_bfd_open): Make pathname const.
1315 * solib-darwin.c (darwin_bfd_open): Make pathname const.
1316 * solib-aix.c (solib_aix_bfd_open): Make pathname const.
1317
1318 2018-02-14 Tom Tromey <tom@tromey.com>
1319
1320 * symfile.c (symfile_bfd_open): Update.
1321 * source.h (openp, source_full_path_of, find_and_open_source):
1322 Change argument type to unique_xmalloc_ptr.
1323 * source.c (openp): Take a unique_xmalloc_ptr.
1324 (source_full_path_of, find_and_open_source): Likewise.
1325 (open_source_file, symtab_to_fullname): Update.
1326 * solist.h (struct target_so_ops) <find_and_open_solib>: Take a
1327 unique_xmalloc_ptr.
1328 * solib.c (solib_find_1): Use unique_xmalloc_ptr.
1329 (exec_file_find): Update.
1330 * psymtab.c (psymtab_to_fullname): Update.
1331 * nto-tdep.h (nto_find_and_open_solib): Update.
1332 * nto-tdep.c (nto_find_and_open_solib): Change temp_path to a
1333 unique_xmalloc_ptr.
1334 * exec.c (exec_file_attach): Update.
1335 * dwarf2read.c (try_open_dwop_file): Use unique_xmalloc_ptr.
1336 * cli/cli-cmds.c (find_and_open_script): Use unique_xmalloc_ptr.
1337
1338 2018-02-14 Tom Tromey <tom@tromey.com>
1339
1340 * solib.c: Include source.h.
1341 * nto-tdep.c: Include source.h.
1342 * mi/mi-cmd-env.c: Include source.h.
1343 * infcmd.c: Include source.h.
1344 * exec.c: Include source.h.
1345 * defs.h (enum openp_flag, openp, source_full_path_of, mod_path)
1346 (add_path, directory_switch, source_path, init_source_path): Move
1347 declarations...
1348 * source.h (enum openp_flag, openp, source_full_path_of, mod_path)
1349 (add_path, directory_switch, source_path, init_source_path):
1350 ...here.
1351
1352 2018-02-14 Tom Tromey <tom@tromey.com>
1353
1354 * solist.h (exec_file_find, solib_find): Return
1355 unique_xmalloc_ptr.
1356 (solib_bfd_fopen): Take a const char *.
1357 * solib.c (solib_find_1): Return unique_xmalloc_ptr.
1358 (exec_file_find, solib_find): Likewise.
1359 (solib_bfd_fopen): Do not take ownership of "pathname".
1360 (solib_bfd_open): Use unique_xmalloc_ptr.
1361 * solib-darwin.c (darwin_bfd_open): Use unique_xmalloc_ptr.
1362 * solib-aix.c (solib_aix_bfd_open): Use unique_xmalloc_ptr.
1363 * infrun.c (follow_exec): Use unique_xmalloc_ptr.
1364 * exec.c (exec_file_locate_attach): Use unique_xmalloc_ptr.
1365
1366 2018-02-14 Joel Brobecker <brobecker@adacore.com>
1367
1368 * ada-lang.c (name_match_type_from_name): Remove reference to
1369 ada_name_for_lookup in function's documentation.
1370 * ada-lang.h (ada_name_for_lookup): Delete declaration.
1371
1372 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1373
1374 * defs.h (enum openp_flags): New enum.
1375 (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
1376 Move to enum openp_flags.
1377 (openp_flags): New enum flags.
1378 (openp): Change parameter type to openp_flags.
1379 * source.c (openp): Change parameter type to openp_flags.
1380 * cli/cli-cmds.c (find_and_open_script): Use openp_flags.
1381 * dwarf2read.c (try_open_dwop_file): Use openp_flags.
1382
1383 2018-02-13 Simon Marchi <simon.marchi@polymtl.ca>
1384
1385 * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
1386 per-command.
1387
1388 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1389
1390 * dwarf2read.c (dwarf2_release_queue): Delete function, move body
1391 into...
1392 (class dwarf2_queue_guard): ...the destructor of this new class.
1393 (dw2_do_instantiate_symtab): Create instance of the new class
1394 dwarf2_queue_guard, remove cleanup.
1395
1396 2018-02-09 Tom Tromey <tom@tromey.com>
1397
1398 * source.c (find_source_lines): Don't reference past the end of
1399 the vector.
1400
1401 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1402
1403 * remote.c (remote_btrace_maybe_reopen): Change error message.
1404 * btrace.c (btrace_enable): Likewise.
1405 (parse_xml_btrace): Likewise.
1406 (parse_xml_btrace_conf): Likewise.
1407
1408 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1409
1410 * nat/linux-btrace.c (diagnose_perf_event_open_fail): New.
1411 (linux_enable_pt, linux_enable_bts): Call
1412 diagnose_perf_event_open_fail.
1413
1414 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1415
1416 * nat/linux-btrace.c (perf_event_pt_event_type): Improve error message.
1417 Remove parameter and change return type. Update callers. Move it.
1418 (linux_enable_bts, linux_enable_pt): Improve error message.
1419 (linux_enable_pt): Remove zero buffer size check.
1420 (linux_enable_btrace): Improve error messages. Remove NULL return
1421 check.
1422
1423 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1424
1425 * btrace.c (btrace_enable): Remove target_supports_btrace call.
1426 * nat/linux-btrace.c (perf_event_pt_event_type): Move.
1427 (kernel_supports_bts, kernel_supports_pt, linux_supports_bts)
1428 (linux_supports_pt, linux_supports_btrace): Remove.
1429 (linux_enable_bts): Call cpu_supports_bts.
1430 * nat/linux-btrace.h (linux_supports_btrace): Remove.
1431 * remote.c (remote_supports_btrace): Remove.
1432 (init_remote_ops): Remove remote_supports_btrace.
1433 * target-delegates.c: Regenerated.
1434 * target.c (target_supports_btrace): Remove.
1435 * target.h (target_ops) <to_supports_btrace>: Remove
1436 (target_supports_btrace): Remove.
1437 * x86-linux-nat.c (x86_linux_create_target): Remove
1438 linux_supports_btrace.
1439
1440 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1441
1442 * nat/linux-btrace.c (linux_enable_btrace): Throw exception if enabling
1443 btrace failed.
1444 * x86-linux-nat.c (x86_linux_enable_btrace): Catch btrace enabling
1445 exception and use message in own exception.
1446
1447 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1448
1449 * nat/linux-btrace.c: Include scoped_fd.h and scoped_mmap.h.
1450 (perf_event_pt_event_type): Use gdb_file_up.
1451 (linux_enable_bts, linux_enable_pt): Use gdb::unique_xmalloc_ptr,
1452 scoped_fd, and scoped_mmap.
1453
1454 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1455
1456 * common/scoped_mmap.h: New.
1457 * unittests/scoped_mmap-selftest.c: New.
1458 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1459 unittests/scoped_mmap-selftest.c.
1460
1461 2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
1462
1463 * common/scoped_fd.h: New.
1464 * unittests/scoped_fd-selftest.c: New.
1465 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1466 unittests/scoped_fd-selftest.c.
1467
1468 2018-02-09 Tom Tromey <tom@tromey.com>
1469
1470 * auto-load.c (auto_load_section_scripts): Use
1471 gdb::unique_xmalloc_ptr.
1472
1473 2018-02-09 Tom Tromey <tom@tromey.com>
1474
1475 * auto-load.c (execute_script_contents): Use std::string.
1476
1477 2018-02-09 Joel Brobecker <brobecker@adacore.com>
1478
1479 * NEWS <Changes in GDB 8.1>: Clarify that "rbreak" is a new
1480 Python function, rather than a new command.
1481
1482 2018-02-08 Tom Tromey <tom@tromey.com>
1483
1484 * solib.c (solib_find_1): Use std::string.
1485 (solib_bfd_fopen): Use unique_xmalloc_ptr.
1486
1487 2018-02-08 Tom Tromey <tom@tromey.com>
1488
1489 * build-id.c (build_id_to_debug_bfd): Use unique_xmalloc_ptr.
1490
1491 2018-02-08 Tom Tromey <tom@tromey.com>
1492
1493 * source.c (find_source_lines): Use gdb::def_vector.
1494
1495 2018-02-08 Tom Tromey <tom@tromey.com>
1496
1497 * macrocmd.c (struct temporary_macro_definition): New.
1498 (macro_define_command): Use temporary_macro_definition. Remove
1499 cleanups.
1500 (free_macro_definition_ptr): Remove.
1501
1502 2018-02-08 Tom Tromey <tom@tromey.com>
1503
1504 * macroexp.c (maybe_expand): Use std::string.
1505
1506 2018-02-08 Tom Tromey <tom@tromey.com>
1507
1508 * macroexp.c (struct macro_buffer): Add initializers for some
1509 members.
1510 (init_buffer, init_shared_buffer, free_buffer)
1511 (free_buffer_return_text): Remove.
1512 (macro_buffer): New constructors.
1513 (~macro_buffer): New destructor.
1514 (macro_buffer::set_shared): New method.
1515 (macro_buffer::resize_buffer, macro_buffer::appendc)
1516 (macro_buffer::appendmem): Now methods, not free functions.
1517 (set_token, append_tokens_without_splicing, stringify)
1518 (macro_stringify): Update.
1519 (gather_arguments): Change return type. Remove argc_p argument,
1520 add args_ptr argument. Use std::vector.
1521 (substitute_args): Remove argc argument. Accept std::vector.
1522 (expand): Update. Use std::vector.
1523 (scan, macro_expand, macro_expand_next): Update.
1524
1525 2018-02-08 Tom Tromey <tom@tromey.com>
1526
1527 * symtab.c (default_collect_symbol_completion_matches_break_on):
1528 Use unique_xmalloc_ptr.
1529 * macroscope.h: (sal_macro_scope, user_macro_scope)
1530 (default_macro_scope): Return unique_xmalloc_ptr.
1531 * macroscope.c (sal_macro_scope, user_macro_scope)
1532 (default_macro_scope): Return unique_xmalloc_ptr.
1533 * macroexp.h (macro_expand, macro_expand_once): Return
1534 unique_xmalloc_ptr.
1535 * macroexp.c (macro_expand, macro_expand_once): Return
1536 unique_xmalloc_ptr.
1537 * macrocmd.c (macro_expand_command, macro_expand_once_command)
1538 (info_macro_command, info_macros_command): Use
1539 unique_xmalloc_ptr.
1540 * compile/compile-c-support.c (write_macro_definitions): Use
1541 unique_xmalloc_ptr.
1542 * c-exp.y (c_parse): Use unique_xmalloc_ptr.
1543
1544 2018-02-07 Simon Marchi <simon.marchi@ericsson.com>
1545
1546 * value.c (value_static_field): Assign field type instead of
1547 containing type when returning an optimized out value.
1548
1549 2018-02-06 Yao Qi <yao.qi@linaro.org>
1550
1551 * ft32-tdep.c (ft32_read_pc): Remove.
1552 (ft32_write_pc): Remove.
1553 (ft32_gdbarch_init): Update.
1554 * m32r-tdep.c (m32r_read_pc): Remove.
1555 (m32r_gdbarch_init): Update.
1556 * mep-tdep.c (mep_read_pc): Remove.
1557 (mep_gdbarch_init): Update.
1558 * microblaze-tdep.c (microblaze_write_pc): Remove.
1559 (microblaze_gdbarch_init): Update.
1560 * mn10300-tdep.c (mn10300_read_pc): Remove.
1561 (mn10300_write_pc): Remove.
1562 (mn10300_gdbarch_init): Update.
1563 * moxie-tdep.c (moxie_read_pc): Remove.
1564 (moxie_write_pc): Remove.
1565 (moxie_gdbarch_init): Update.
1566
1567 2018-02-06 Yao Qi <yao.qi@linaro.org>
1568
1569 * expprint.c (print_subexp_standard): Handle
1570 OP_F77_UNDETERMINED_ARGLIST.
1571 (dump_subexp_body_standard): Likewise.
1572
1573 2018-02-05 Alan Hayward <alan.hayward@arm.com>
1574
1575 * target-descriptions.c (tdesc_element_visitor) Add empty
1576 implementations.
1577 (tdesc_type): Move make_gdb_type from here.
1578 (tdesc_type_builtin): Likewise.
1579 (tdesc_type_vector): Likewise.
1580 (tdesc_type_with_fields): Move make_gdb_type_ functions from here.
1581 (make_gdb_type_struct): Move from tdesc_type_with_fields.
1582 (make_gdb_type_union): Likewise.
1583 (make_gdb_type_flags): Likewise.
1584 (make_gdb_type_enum): Likewise.
1585 (make_gdb_type): New function.
1586 (tdesc_register_type): Use static make_gdb_type.
1587
1588 2018-02-05 Ruslan Kabatsayev <b7.10110111@gmail.com>
1589
1590 * infcmd.c (default_print_one_register_info): Align natural-format
1591 column values consistently one under another.
1592 (pad_to_column): New function.
1593
1594 2018-02-05 Joel Brobecker <brobecker@adacore.com>
1595
1596 * dwarf2read.c (dwarf2_physname): Move commment.
1597
1598 2018-02-01 Leszek Swirski <leszeks@google.com>
1599
1600 * varobj.c (varobj_formatted_print_options): Allow recursive
1601 pretty printing if pretty printing is enabled.
1602
1603 2018-02-01 Leszek Swirski <leszeks@google.com>
1604
1605 * c-exp.y (lex_one_token, classify_name, yylex): Don't classify
1606 names after a structop as a filename.
1607
1608 2018-02-01 Yao Qi <yao.qi@linaro.org>
1609
1610 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Rewrite it.
1611 (arm_record_coproc_data_proc): Likewise.
1612
1613 2018-02-01 Yao Qi <yao.qi@linaro.org>
1614
1615 * arm-tdep.c (arm_record_extension_space): Change ret to signed.
1616
1617 2018-01-31 Nikola Prica <nikola.prica@rt-rk.com>
1618
1619 * rs6000-tdep.c (skip_prologue): Remove shifting for lr_reg and
1620 assign shifted lr_reg to fdata->lr_register when lr_reg is set.
1621
1622 2018-01-31 Pedro Alves <palves@redhat.com>
1623
1624 * darwin-nat.c (darwin_interrupt): Remove ptid_t parameter.
1625 * inflow.c (child_terminal_save_inferior): Wrap reference to
1626 tcgetpgrp in HAVE_TERMIOS_H.
1627 (child_interrupt, child_pass_ctrlc): Wrap references to signal in
1628 _WIN32.
1629 * remote-sim.c (gdbsim_interrupt): Remove ptid_t parameter and
1630 always iterate over all inferiors.
1631 (gdbsim_cntrl_c): Adjust.
1632 * windows-nat.c (windows_interrupt): Remove 'ptid_t' parameter.
1633
1634 2018-01-31 Joel Brobecker <brobecker@adacore.com>
1635
1636 * gdbtypes.c (lookup_array_range_type): Make sure the array's
1637 index type is objfile-owned if the element type is as well.
1638
1639 2018-01-31 Joel Brobecker <brobecker@adacore.com>
1640
1641 GDB 8.1 released.
1642
1643 2018-01-30 Philipp Rudo <prudo@linux.vnet.ibm.com>
1644
1645 * s390-linux-tdep.c: Remove includes "features/s390-linux32.c" and
1646 "features/s390x-linux64.c".
1647 (_initialize_s390_linux_tdep): Remove initialization of tdescs
1648 s390_linux32 and s390x_linux64.
1649 (s390_linux_init_abi_31, s390_linux_init_abi_64): Don't set
1650 default tdesc.
1651 * s390-tdep.c: Include "features/s390-linux32.c" and
1652 "features/s390x-linux64.c".
1653 (s390_tdesc_valid): Add check for tdesc_has_registers.
1654 (s390_gdbarch_init): Make sure there is always a valid tdesc.
1655 (_initialize_s390_tdep): Initialize tdesc_s390_linux32 and
1656 tdesc_s390x_linux64.
1657 * s390-linux-tdep.h: Move export of tdesc_s390_linux32 and
1658 tdesc_s390x_linux64 to...
1659 * s390-tdep.h: ...here.
1660
1661 2018-01-30 Pedro Alves <palves@redhat.com>
1662
1663 PR gdb/13211
1664 * config.in, configure: Regenerate.
1665 * configure.ac: Check for getpgid.
1666 * go32-nat.c (go32_pass_ctrlc): New.
1667 (go32_target): Install it.
1668 * inf-child.c (inf_child_target): Install
1669 child_terminal_save_inferior, child_pass_ctrlc and
1670 child_interrupt.
1671 * inf-ptrace.c (inf_ptrace_interrupt): Delete.
1672 (inf_ptrace_target): No longer install it.
1673 * infcmd.c (interrupt_target_1): Adjust.
1674 * inferior.h (child_terminal_save_inferior, child_pass_ctrlc)
1675 (child_interrupt): Declare.
1676 (inferior::terminal_state): New.
1677 * inflow.c (struct terminal_info): Update comments.
1678 (inferior_process_group): Delete.
1679 (terminal_is_ours): Delete.
1680 (gdb_tty_state): New.
1681 (child_terminal_init): Adjust.
1682 (is_gdb_terminal, sharing_input_terminal_1)
1683 (sharing_input_terminal): New functions.
1684 (child_terminal_inferior): Adjust. Use sharing_input_terminal.
1685 Set the process's actual process group in the foreground if
1686 possible. Handle is_ours_for_output/is_ours distinction. Don't
1687 mark terminal as the inferior's if not sharing GDB's terminal.
1688 Don't check attach_flag.
1689 (child_terminal_ours_for_output, child_terminal_ours): Adjust to
1690 pass down a target_terminal_state.
1691 (child_terminal_save_inferior): New, factored out from ...
1692 (child_terminal_ours_1): ... this. Handle
1693 target_terminal_state::is_ours_for_output.
1694 (child_interrupt, child_pass_ctrlc): New.
1695 (inflow_inferior_exit): Clear the inferior's terminal_state.
1696 (copy_terminal_info): Copy the inferior's terminal state.
1697 (_initialize_inflow): Remove reference to terminal_is_ours.
1698 * inflow.h (inferior_process_group): Delete.
1699 * nto-procfs.c (nto_handle_sigint, procfs_interrupt): Adjust.
1700 * procfs.c (procfs_target): Don't install procfs_interrupt.
1701 (procfs_interrupt): Delete.
1702 * remote.c (remote_serial_quit_handler): Adjust.
1703 (remote_interrupt): Remove ptid parameter. Adjust.
1704 * target-delegates.c: Regenerate.
1705 * target.c: Include "terminal.h".
1706 (target_terminal::terminal_state): Rename to ...
1707 (target_terminal::m_terminal_state): ... this.
1708 (target_terminal::init): Adjust.
1709 (target_terminal::inferior): Adjust to per-inferior
1710 terminal_state.
1711 (target_terminal::restore_inferior, target_terminal_is_ours_kind): New.
1712 (target_terminal::ours, target_terminal::ours_for_output): Use
1713 target_terminal_is_ours_kind.
1714 (target_interrupt): Remove ptid parameter. Adjust.
1715 (default_target_pass_ctrlc): Adjust.
1716 * target.h (target_ops::to_terminal_save_inferior): New field.
1717 (target_ops::to_interrupt): Remove ptid_t parameter.
1718 (target_interrupt): Remove ptid_t parameter. Update comment.
1719 (target_pass_ctrlc): Update comment.
1720 * target/target.h (target_terminal_state): New scoped enum,
1721 factored out of ...
1722 (target_terminal::terminal_state): ... here.
1723 (target_terminal::inferior): Update comments.
1724 (target_terminal::restore_inferior): New.
1725 (target_terminal::is_inferior, target_terminal::is_ours)
1726 (target_terminal::is_ours_for_output): Adjust.
1727 (target_terminal::scoped_restore_terminal_state): Adjust to
1728 rename, and call restore_inferior() instead of inferior().
1729 (target_terminal::scoped_restore_terminal_state::m_state): Change
1730 type.
1731 (target_terminal::terminal_state): Rename to ...
1732 (target_terminal::m_terminal_state): ... this and change type.
1733
1734 2018-01-30 Pedro Alves <palves@redhat.com>
1735
1736 * linux-nat.c (wait_for_signal): New function.
1737 (wait_lwp, linux_nat_wait_1): Use it instead of calling sigsuspend
1738 directly.
1739 (async_terminal_is_ours)
1740 (linux_nat_terminal_inferior, linux_nat_terminal_ours): Delete.
1741 (linux_nat_add_target): Don't override
1742 to_terminal_inferior/to_terminal_ours.
1743
1744 2018-01-29 Sergio Durigan Junior <sergiodj@redhat.com>
1745
1746 * remote.c (remote_follow_fork): Don't call "detach_inferior".
1747
1748 2018-01-28 Simon Marchi <simon.marchi@ericsson.com>
1749
1750 * dwarf2read.c (free_dwo_files): Add forward-declaration.
1751 (dwarf2_per_objfile::~dwarf2_per_objfile): Move content from
1752 dwarf2_per_objfile_free here.
1753 (dwarf2_per_objfile_free): Remove.
1754 (_initialize_dwarf2_read): Don't register
1755 dwarf2_per_objfile_free as a registry cleanup.
1756
1757 2018-01-27 Eli Zaretskii <eliz@gnu.org>
1758
1759 Avoid compilation errors in MinGW native builds
1760
1761 The error is triggered by including python-internal.h, and the
1762 error message is:
1763
1764 In file included from d:\usr\lib\gcc\mingw32\6.3.0\include\c++\math.h:36:0,
1765 from build-gnulib/import/math.h:27,
1766 from d:/usr/Python26/include/pyport.h:235,
1767 from d:/usr/Python26/include/Python.h:58,
1768 from python/python-internal.h:94,
1769 from python/py-arch.c:24:
1770 d:\usr\lib\gcc\mingw32\6.3.0\include\c++\cmath:1157:11: error: '::hypot' has not been declared
1771 using ::hypot;
1772 ^~~~~
1773
1774 This happens because Python headers define 'hypot' to expand t
1775 '_hypot' in the Windows builds.
1776 * python/python-internal.h (_hypot) [__MINGW32__]: Define back to
1777 'hypoth'. This avoids a compilation error.
1778
1779 2018-01-26 Alan Hayward <alan.hayward@arm.com>
1780
1781 * MAINTAINERS (Write After Approval): Fix ordering.
1782
1783 2018-01-26 Alan Hayward <alan.hayward@arm.com>
1784
1785 * MAINTAINERS (Write After Approval): Add Alan Hayward.
1786
1787 2018-01-26 Alan Modra <amodra@gmail.com>
1788
1789 * ppc-linux-tdep.c (powerpc32_plt_stub): Make const.
1790 (powerpc32_plt_stub_so_1): Rename from powerpc32_plt_stub_so.
1791 Remove nop. Make const. Comment.
1792 (powerpc32_plt_stub_so_2): New.
1793 (POWERPC32_PLT_CHECK_LEN): Rename from POWERPC32_PLT_STUB_LEN.
1794 Correct count. Update uses.
1795 (ppc_skip_trampoline_code): Match powerpc32_plt_stub_so_2 too.
1796 Move common code reading PLT entry word. Correct
1797 powerpc32_plt_stub PLT address calculation.
1798 * ppc64-tdep.c (ppc64_standard_linkage1): Make const.
1799 (ppc64_standard_linkage2, ppc64_standard_linkage3): Likewise.
1800 (ppc64_standard_linkage4, ppc64_standard_linkage5): Likewise.
1801 (ppc64_standard_linkage6, ppc64_standard_linkage7): Likewise.
1802 (ppc64_standard_linkage8): Likewise.
1803 * rs6000-tdep.c (ppc_insns_match_pattern): Make pattern const.
1804 Correct insns description.
1805 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
1806
1807 2018-01-24 Pedro Alves <palves@redhat.com>
1808
1809 GCC PR libstdc++/83906
1810 * gdbtypes.c (operator==(const dynamic_prop &,
1811 const dynamic_prop &)): New.
1812 (operator==(const range_bounds &, const range_bounds &)): New.
1813 (check_types_equal): Use them instead of memcmp.
1814 * gdbtypes.h (operator==(const dynamic_prop &,
1815 const dynamic_prop &)): Declare.
1816 (operator!=(const dynamic_prop &, const dynamic_prop &)): Declare.
1817 (operator==(const range_bounds &, const range_bounds &)): Declare.
1818 (operator!=(const range_bounds &, const range_bounds &)): Declare.
1819
1820 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1821
1822 * s390-linux-tdep.c (s390_record_address_mask)
1823 (s390_record_calc_disp_common, s390_record_calc_disp)
1824 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
1825 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
1826 (s390_process_record): Move to s390-tdep.c.
1827 (s390_linux_init_abi_any): Adjust.
1828 * s390-tdep.c (s390_record_address_mask)
1829 (s390_record_calc_disp_common, s390_record_calc_disp)
1830 (s390_record_calc_disp_vsce, s390_record_calc_rl, s390_popcnt)
1831 (s390_record_gpr_g, s390_record_gpr_h, s390_record_vr)
1832 (s390_process_record): Moved from s390-linux-tdep.c
1833 (s390_gdbarch_init): Adjust.
1834
1835 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1836
1837 * s390-linux-nat.c (s390-tdep.h): New include.
1838 * Makefile.in (ALL_TARGET_OBS): Add s390-tdep.o.
1839 (HFILES_NO_SRCDIR): Add s390-tdep.h.
1840 (ALLDEPFILES): Add s390-tdep.c.
1841 * configure.tgt (s390*-*-linux*): Add s390-tdep.o.
1842 * s390-linux-tdep.h (HWCAP_S390_*, S390_*_REGNUM): Move to...
1843 * s390-tdep.h: ...this. New file.
1844 * s390-linux-tdep.c (s390-tdep.h): New include.
1845 (_initialize_s390_tdep): Rename to...
1846 (_initialize_s390_linux_tdep): ...this and adjust.
1847 (s390_abi_kind, s390_vector_abi_kind, gdbarch_tdep)
1848 (enum named opcodes, S390_NUM_GPRS, S390_NUM_FPRS): Move to
1849 s390-tdep.h.
1850 (s390_break_insn, s390_breakpoint, s390_readinstruction, is_ri)
1851 (is_ril, is_rr, is_rre, is_rs, is_rsy, is_rx, is_rxy)
1852 (s390_is_partial_instruction, s390_software_single_step)
1853 (is_non_branch_ril, s390_displaced_step_copy_insn)
1854 (s390_displaced_step_fixup, s390_displaced_step_hw_singlestep)
1855 (s390_prologue_data, s390_addr, s390_store, s390_load)
1856 (s390_check_for_saved, s390_analyze_prologue, s390_skip_prologue)
1857 (s390_register_call_saved, s390_guess_tracepoint_registers)
1858 (s390_register_name, s390_dwarf_regmap, s390_dwarf_reg_to_regnum)
1859 (regnum_is_gpr_full, regnum_is_vxr_full, s390_value_from_register)
1860 (s390_pseudo_register_name, s390_pseudo_register_type)
1861 (s390_pseudo_register_read, s390_pseudo_register_write)
1862 (s390_pseudo_register_reggroup_p, s390_ax_pseudo_register_collect)
1863 (s390_ax_pseudo_register_push_stack, s390_gen_return_address)
1864 (s390_addr_bits_remove, s390_address_class_type_flags)
1865 (s390_address_class_type_flags_to_name)
1866 (s390_address_class_name_to_type_flags, s390_effective_inner_type)
1867 (s390_function_arg_float, s390_function_arg_vector)
1868 (is_power_of_two, s390_function_arg_integer, s390_arg_state)
1869 (s390_handle_arg, s390_push_dummy_call, s390_dummy_id)
1870 (s390_frame_align, s390_register_return_value, s390_return_value)
1871 (s390_stack_frame_destroyed_p, s390_unwind_pc, s390_unwind_sp)
1872 (s390_unwind_pseudo_register, s390_adjust_frame_regnum)
1873 (s390_dwarf2_prev_register, s390_dwarf2_frame_init_reg)
1874 (s390_trad_frame_prev_register, s390_unwind_cache)
1875 (s390_prologue_frame_unwind_cache)
1876 (s390_backchain_frame_unwind_cache, s390_frame_unwind_cache)
1877 (s390_frame_this_id, s390_frame_prev_register, s390_frame_unwind)
1878 (s390_stub_unwind_cache, s390_stub_frame_unwind_cache)
1879 (s390_stub_frame_this_id, s390_stub_frame_prev_register)
1880 (s390_stub_frame_sniffer, s390_stub_frame_unwind)
1881 (s390_frame_base_address, s390_local_base_address)
1882 (s390_frame_base, s390_gcc_target_options)
1883 (s390_gnu_triplet_regexp, s390_stap_is_single_operand)
1884 (s390_validate_reg_range, s390_tdesc_valid)
1885 (s390_gdbarch_tdep_alloc, s390_gdbarch_init): Move to...
1886 * s390-tdep.c: ...this. New file.
1887
1888 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1889
1890 * s390-linux-tdep.c (gdbarch_tdep.s390_syscall_record): New hook.
1891 (s390_process_record, s390_gdbarch_tdep_alloc)
1892 (s390_linux_init_abi_any): Use/set new hook.
1893
1894 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1895
1896 * s390-linux-tdep.c (osabi.h): New include.
1897 (s390_linux_init_abi_31, s390_linux_init_abi_64)
1898 (s390_linux_init_abi_any): New functions.
1899 (s390_gdbarch_init, _initialize_s390_tdep): Adjust.
1900
1901 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1902
1903 * s390-linux-tdep.c (s390_gdbarch_init): Use gdb_assert for
1904 tdesc_has_registers check
1905
1906 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1907
1908 * s390-linux-tdep.c (s390_tdesc_valid): New function.
1909 (s390_validate_reg_range): New macro.
1910 (s390_gdbarch_init): Adjust.
1911
1912 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1913
1914 * s390-linux-tdep.c (gdbarch_tdep) <tdesc>: New field.
1915 (s390_gdbarch_tdep_alloc): Adjust.
1916 (s390_gdbarch_init): Adjust.
1917
1918 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1919
1920 * s390-linux-tdep.c (gdbarch_tdep) <have_linux_v1, have_linux_v2>
1921 <have_tdb>: Change type to bool.
1922 (s390_gdbarch_tdep_alloc): Adjust.
1923 (s390_gdbarch_init): Adjust.
1924
1925 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1926
1927 * s390-linux-tdep (s390_abi_kind) <ABI_NONE>: New default field.
1928 (gdbarch_tdep) <have_upper, have_vx>: New fields.
1929 (s390_gdbarch_tdep_alloc): New function.
1930 (s390_gdbarch_init): Allocate tdep at start and use its fields
1931 instead of separate variables.
1932
1933 2018-01-23 Philipp Rudo <prudo@linux.vnet.ibm.com>
1934
1935 * s390-linux-tdep.c (s390_gdbarch_init): Remove duplicate checks
1936 when looking for cached gdbarch and add comment for remaining.
1937
1938 2018-01-22 Pedro Alves <palves@redhat.com>
1939 Sergio Durigan Junior <sergiodj@redhat.com>
1940
1941 * typeprint.c (whatis_exp): Initialize "val" in the "whatis type"
1942 case.
1943
1944 2018-01-22 Maciej W. Rozycki <macro@mips.com>
1945
1946 * MAINTAINERS: Update my company e-mail address.
1947
1948 2018-01-22 Yao Qi <yao.qi@linaro.org>
1949
1950 * regcache.c (cooked_write_test): New function.
1951 (_initialize_regcache): Register the test.
1952
1953 2018-01-22 Yao Qi <yao.qi@linaro.org>
1954
1955 * ia64-tdep.c (ia64_pseudo_register_read): Call
1956 regcache->cooked_read instead of regcache_cooked_read_unsigned.
1957 * m32c-tdep.c (m32c_cat_read): Likewise.
1958 (m32c_r3r2r1r0_read): Likewise.
1959 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Likewise.
1960 * xtensa-tdep.c (xtensa_register_read_masked): Likewise.
1961
1962 2018-01-22 Yao Qi <yao.qi@linaro.org>
1963
1964 * aarch64-tdep.c (aarch64_pseudo_read_value): Call regcache
1965 method raw_read instead of regcache_raw_read.
1966 * amd64-tdep.c (amd64_pseudo_register_read_value): Likewise.
1967 * arm-tdep.c (arm_neon_quad_read): Likewise.
1968 * avr-tdep.c (avr_pseudo_register_read): Likewise.
1969 * bfin-tdep.c (bfin_pseudo_register_read): Likewise.
1970 * frv-tdep.c (frv_pseudo_register_read): Likewise.
1971 * h8300-tdep.c (h8300_pseudo_register_read): Likewise.
1972 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Likewise.
1973 (i386_pseudo_register_read_into_value): Likewise.
1974 * mep-tdep.c (mep_pseudo_cr32_read): Likewise.
1975 * msp430-tdep.c (msp430_pseudo_register_read): Likewise.
1976 * nds32-tdep.c (nds32_pseudo_register_read): Likewise.
1977 * rl78-tdep.c (rl78_pseudo_register_read): Likewise.
1978 * s390-linux-tdep.c (s390_pseudo_register_read): Likewise.
1979 * sparc-tdep.c (sparc32_pseudo_register_read): Likewise.
1980 * sparc64-tdep.c (sparc64_pseudo_register_read): Likewise.
1981 * spu-tdep.c (spu_pseudo_register_read_spu): Likewise.
1982 * xtensa-tdep.c (xtensa_pseudo_register_read): Likewise.
1983
1984 2018-01-22 Yao Qi <yao.qi@linaro.org>
1985
1986 * Makefile.in (ALL_TARGET_OBS): Remove mt-tdep.o.
1987 * configure.tgt: Remove target mt.
1988 * mt-tdep.c: Remove.
1989 * regcache.c (cooked_read_test): Remove the check for mt.
1990
1991 2018-01-22 Yao Qi <yao.qi@linaro.org>
1992
1993 * jit.c (jit_frame_prev_register): Call regcache::cooked_read
1994 instead of gdbarch_pseudo_register_read_value.
1995
1996 2018-01-22 Joel Brobecker <brobecker@adacore.com>
1997
1998 * dwarf2read.c (need_gnat_info): Return nonzero if the cu's
1999 language is Ada.
2000
2001 2018-01-22 Joel Brobecker <brobecker@adacore.com>
2002
2003 * linespec.c (create_sals_line_offset): Remove code that preserved
2004 the symtab_and_line's line number.
2005
2006 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2007
2008 * varobj.c (varobj_create): Don't set valid_block when creating a
2009 floating varobj.
2010
2011 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2012
2013 * varobj.c (varobj_create): Remove out of date comment.
2014
2015 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2016
2017 PR mi/20395
2018 * ada-exp.y (write_var_from_sym): Pass extra parameter when
2019 updating innermost block.
2020 * parse.c (innermost_block_tracker::update): Take extra type
2021 parameter, and check types match before updating innermost block.
2022 (write_dollar_variable): Update innermost block for registers.
2023 * parser-defs.h (enum innermost_block_tracker_type): New enum.
2024 (innermost_block_tracker::innermost_block_tracker): Initialise
2025 m_types member.
2026 (innermost_block_tracker::reset): Take type parameter.
2027 (innermost_block_tracker::update): Take type parameter, and pass
2028 type through as needed.
2029 (innermost_block_tracker::m_types): New member.
2030 * varobj.c (varobj_create): Pass type when reseting innermost
2031 block.
2032
2033 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2034
2035 * ada-exp.y (write_var_from_sym): Switch to innermost_block API.
2036 * ada-lang.c (resolve_subexp): Likewise.
2037 * breakpoint.c (set_breakpoint_condition) Likewise.
2038 (watch_command_1) Likewise.
2039 * c-exp.y (variable): Likewise.
2040 * d-exp.y (PrimaryExpression): Likewise.
2041 * f-exp.y (variable): Likewise.
2042 * go-exp.y (variable): Likewise.
2043 * m2-exp.y (variable): Likewise.
2044 * objfiles.c (objfile::~objfile): Likewise.
2045 * p-exp.y (variable): Likewise.
2046 * parse.c (innermost_block): Change type.
2047 * parser-defs.h (class innermost_block_tracker): New.
2048 (innermost_block): Change to innermost_block_tracker.
2049 * printcmd.c (display_command): Switch to innermost_block API.
2050 (do_one_display): Likewise.
2051 * rust-exp.y (do_one_display): Likewise.
2052 * symfile.c (clear_symtab_users): Likewise.
2053 * varobj.c (varobj_create): Switch to innermost_block API, replace
2054 use of innermost_block with block stored on varobj object.
2055
2056 2018-01-21 Andrew Burgess <andrew.burgess@embecosm.com>
2057
2058 * expression.h (innermost_block): Remove declaration.
2059 * varobj.c: Add 'parser-defs.h' include.
2060
2061 2018-01-19 Tom Tromey <tom@tromey.com>
2062
2063 * rust-lang.c (rust_lookup_symbol_nonlocal): Look up qualified
2064 symbols in the static and global blocks.
2065
2066 2018-01-19 James Clarke <jrtc27@jrtc27.com>
2067
2068 * nat/linux-ptrace.c: Remove unnecessary reinclusion of
2069 gdb_ptrace.h, and move including gdb_wait.h ...
2070 * nat/linux-ptrace.h: ... to here.
2071
2072 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2073
2074 * inf-ptrace.c (inf_ptrace_detach): Adjust call to
2075 inf_ptrace_detach_success.
2076 (inf_ptrace_detach_success): Add inferior parameter, use it
2077 instead of inferior_ptid, pass it to detach_inferior.
2078 * inf-ptrace.h (inf_ptrace_detach_success): Add inferior
2079 parameter.
2080 * inferior.c (detach_inferior): Add overload that takes an
2081 inferior object.
2082 * inferior.h (detach_inferior): Likewise.
2083 * linux-nat.c (linux_nat_detach): Use the inf parameter, don't
2084 use inferior_ptid, adjust call to inf_ptrace_detach_success.
2085 * linux-thread-db.c (thread_db_detach): Use inf parameter.
2086
2087 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2088
2089 * target.h (struct target_ops) <to_detach>: Add inferior
2090 parameter.
2091 (target_detach): Likewise.
2092 * target.c (dispose_inferior): Pass inferior down.
2093 (target_detach): Pass inferior down. Assert that it is equal to
2094 the current inferior.
2095 * aix-thread.c (aix_thread_detach): Pass inferior down.
2096 * corefile.c (core_file_command): Pass current_inferior() down.
2097 * corelow.c (core_detach): Add inferior parameter.
2098 * darwin-nat.c (darwin_detach): Likewise.
2099 * gnu-nat.c (gnu_detach): Likewise.
2100 * inf-ptrace.c (inf_ptrace_detach): Likewise.
2101 * infcmd.c (detach_command): Pass current_inferior() down to
2102 target_detach.
2103 * infrun.c (follow_fork_inferior): Pass parent_inf to
2104 target_detach.
2105 (handle_vfork_child_exec_or_exit): Pass inf->vfork_parent to
2106 target_detach.
2107 * linux-nat.c (linux_nat_detach): Add inferior parameter.
2108 * linux-thread-db.c (thread_db_detach): Likewise.
2109 * nto-procfs.c (procfs_detach): Likewise.
2110 * procfs.c (procfs_detach): Likewise.
2111 * record.c (record_detach): Likewise.
2112 * record.h (struct inferior): Forward-declare.
2113 (record_detach): Add inferior parameter.
2114 * remote-sim.c (gdbsim_detach): Likewise.
2115 * remote.c (remote_detach_1): Likewise.
2116 (remote_detach): Likewise.
2117 (extended_remote_detach): Likewise.
2118 * sol-thread.c (sol_thread_detach): Likewise.
2119 * target-debug.h (target_debug_print_inferior_p): New macro.
2120 * target-delegates.c: Re-generate.
2121 * top.c (kill_or_detach): Pass inferior down to target_detach.
2122 * windows-nat.c (windows_detach): Add inferior parameter.
2123
2124 2018-01-19 Simon Marchi <simon.marchi@ericsson.com>
2125
2126 * target.h (struct target_ops) <to_detach>: Remove args
2127 parameter.
2128 (target_detach): Likewise.
2129 * target.c (dispose_inferior): Adjust.
2130 (target_detach): Remove args parameter, adjust.
2131 * aix-thread.c (aix_thread_detach): Adjust.
2132 * corefile.c (core_file_command): Adjust.
2133 * corelow.c (core_detach): Adjust.
2134 * darwin-nat.c (darwin_detach): Adjust.
2135 * gnu-nat.c (gnu_detach): Adjust.
2136 * inf-ptrace.c (inf_ptrace_detach): Adjust.
2137 * infcmd.c (detach_command): Adjust
2138 * infrun.c (follow_fork_inferior): Adjust.
2139 (handle_vfork_child_exec_or_exit): Adjust.
2140 * linux-fork.c (linux_fork_detach): Remove args parameter.
2141 * linux-fork.h (linux_fork_detach): Likewise.
2142 * linux-nat.c (linux_nat_detach): Likewise, and adjust.
2143 * linux-thread-db.c (thread_db_detach): Likewise.
2144 * nto-procfs.c (procfs_detach): Likewise.
2145 * procfs.c (procfs_detach): Likewise.
2146 (do_detach): Remove signo parameter.
2147 * record.c (record_detach): Remove args parameter.
2148 * record.h (record_detach): Likewise.
2149 * remote-sim.c (gdbsim_detach): Likewise.
2150 * remote.c (remote_detach_1): Likewise.
2151 (remote_detach): Likewise.
2152 (extended_remote_detach): Likewise.
2153 * sol-thread.c (sol_thread_detach): Likewise.
2154 * target-delegates.c: Re-generate.
2155 * top.c (struct qt_args) <args>: Remove field.
2156 (kill_or_detach): Don't pass args.
2157 (quit_force): Don't set args.
2158 * windows-nat.c (windows_detach): Remove args parameter.
2159
2160 2018-01-19 Yao Qi <yao.qi@linaro.org>
2161
2162 * arm-linux-tdep.c (arm_linux_gcc_target_options): New function.
2163 (arm_linux_init_abi): Install it.
2164
2165 2018-01-19 Yao Qi <yao.qi@linaro.org>
2166
2167 * osabi.c (gdb_osabi_names): Extend the regexp for
2168 arm-linux-gnueabihf.
2169
2170 2018-01-18 Yao Qi <yao.qi@linaro.org>
2171
2172 * dwarf2read.c (abbrev_table) <abbrevs>: Rename it to
2173 m_abbrevs.
2174 (abbrev_table::add_abbrev): Update.
2175 (abbrev_table::lookup_abbrev): Update.
2176
2177 2018-01-18 Yao Qi <yao.qi@linaro.org>
2178
2179 * ppc-linux-tdep.c (ppu2spu_prev_register): Call cooked_read.
2180
2181 2018-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2182
2183 * compile/compile.c (compile_to_object): Convert "triplet_rx"
2184 to "std::string".
2185
2186 2018-01-17 Tom Tromey <tom@tromey.com>
2187
2188 * dwarf2read.c (symbolp): Remove typedef. Don't instantiate VEC.
2189
2190 2018-01-17 Tom Tromey <tom@tromey.com>
2191
2192 * gdbtypes.h (add_dyn_prop): Remove objfile parameter.
2193 * gdbtypes.c (add_dyn_prop): Remove objfile parameter.
2194 (create_array_type_with_stride): Update.
2195 * dwarf2read.c (set_die_type): Update.
2196
2197 2018-01-17 Tom Tromey <tom@tromey.com>
2198
2199 * dwarf2read.c (delayed_method_info): Remove typedef.
2200 (dwarf2_cu::method_info): Now a std::vector.
2201 (add_to_method_list): Update.
2202 (free_delayed_list): Remove.
2203 (compute_delayed_physnames): Update.
2204 (process_full_comp_unit, process_full_type_unit): Clear the method
2205 list. Remove cleanups.
2206 (psymtab_include_file_name): Add name_holder parameter. Use
2207 unique_xmalloc_ptr.
2208 (dwarf_decode_lines): Update.
2209
2210 2018-01-17 Tom Tromey <tom@tromey.com>
2211 Simon Marchi <simon.marchi@ericsson.com>
2212
2213 * dwarf2read.c (struct dwarf2_cu): Add constructor, destructor.
2214 (dwarf2_per_objfile::free_cached_comp_units)
2215 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2216 (init_cutu_and_read_dies_no_follow): Update.
2217 (dwarf2_cu::dwarf2_cu): Rename from init_one_comp_unit.
2218 (dwarf2_cu::~dwarf2_cu): New.
2219 (free_heap_comp_unit, free_stack_comp_unit): Remove.
2220 (age_cached_comp_units, free_one_cached_comp_unit): Update.
2221
2222 2018-01-17 Tom Tromey <tom@tromey.com>
2223 Simon Marchi <simon.marchi@ericsson.com>
2224
2225 * dwarf2read.c (struct dwarf2_cu) <abbrev_table>: Remove.
2226 (struct die_reader_specs) <abbrev_table>: New member.
2227 (struct abbrev_table): Add constructor.
2228 <alloc_abbrev, add_abbrev, lookup_abbrev>: Declare.
2229 <abbrev_obstack>: Now an auto_obstack.
2230 (abbrev_table_up): New typedef.
2231 (init_cu_die_reader): Add abbrev_table parameter.
2232 (read_cutu_die_from_dwo): Remove abbrev_table_provided parameter.
2233 Add result_dwo_abbrev_table.
2234 (init_tu_and_read_dwo_dies, init_cutu_and_read_dies)
2235 (init_cutu_and_read_dies_no_follow, build_type_psymtabs_1):
2236 Update.
2237 (peek_die_abbrev): Take die_reader_specs, not dwarf_cu as
2238 parameter.
2239 (skip_children): Update.
2240 (abbrev_table::alloc_abbrev): Rename from
2241 abbrev_table_alloc_abbrev.
2242 (abbrev_table::add_abbrev): Rename from abbrev_table_add_abbrev.
2243 (abbrev_table::lookup_abbrev): Rename from
2244 abbrev_table_lookup_abbrev.
2245 (abbrev_table_read_table): Return abbrev_table_up.
2246 (abbrev_table_free, abbrev_table_free_cleanup)
2247 (dwarf2_read_abbrevs, dwarf2_free_abbrev_table): Remove.
2248 (load_partial_dies): Update.
2249
2250 2018-01-17 Tom Tromey <tom@tromey.com>
2251
2252 * dwarf2read.c (dwarf2_compute_name): Update comment.
2253 (read_func_scope, read_variable): Update.
2254 (new_symbol): Remove.
2255 (new_symbol_full): Rename to new_symbol.
2256
2257 2018-01-17 Mike Gulick <mgulick@mathworks.com>
2258
2259 PR gdb/16577
2260 * gdb_bfd.c (gdb_bfd_map_section): If unable to read object file, issue
2261 a warning instead of throwing an error, set section size to 0 and return
2262 NULL.
2263 * gdb_bfd.h (gdb_bfd_map_section): Update description.
2264
2265 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2266
2267 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason): Return
2268 std::string.
2269 (linux_ptrace_attach_fail_reason_string): Likewise.
2270 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason):
2271 Likewise.
2272 (linux_ptrace_attach_fail_reason_string): Likewise.
2273 * linux-nat.c (attach_proc_task_lwp_callback): Adjust.
2274
2275 2018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2276
2277 * linux-nat.c (linux_nat_attach): Remove xstrdup.
2278
2279 2018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2280
2281 PR gdb/21559
2282 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2283 checking for fs_base/gs_base fields in struct user_regs_struct.
2284 * configure: Regenerate.
2285
2286 2018-01-17 Yao Qi <yao.qi@linaro.org>
2287
2288 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): New
2289 function.
2290 (aarch64_linux_init_abi): Install it to gdbarch hook
2291 gcc_target_options.
2292
2293 2018-01-15 Pedro Alves <palves@redhat.com>
2294
2295 * common/signals-state-save-restore.c
2296 (save_original_signals_state): Fix typos.
2297
2298 2017-01-12 Tom Tromey <tom@tromey.com>
2299 Sergio Durigan Junior <sergiodj@redhat.com>
2300
2301 * Makefile.in (install-only): Install gdb-add-index.
2302
2303 2018-01-12 John Baldwin <jhb@FreeBSD.org>
2304
2305 * fbsd-tdep.c (KVE_PROTECTION): Correct value.
2306
2307 2018-01-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
2308
2309 * infrun.c (keep_going_pass_signal): Clear step-over info when
2310 insert_breakpoints fails.
2311
2312 2018-01-11 Pedro Alves <palves@redhat.com>
2313
2314 PR gdb/22583
2315 * infrun.c (resume): Rename to ...
2316 (resume_1): ... this.
2317 (resume): Reimplement as wrapper around resume_1.
2318
2319 2018-01-11 Pedro Alves <palves@redhat.com>
2320
2321 PR remote/22597
2322 * remote.c (remote_parse_stop_reply): Default to the last-set
2323 general thread instead of to 'magic_null_ptid'.
2324
2325 2018-01-10 Pedro Alves <palves@redhat.com>
2326
2327 * language.h (language_get_symbol_name_matcher): Rename ...
2328 (get_symbol_name_matcher): ... this.
2329 * language.c (language_get_symbol_name_matcher): Ditto.
2330 * dictionary.c, linespec.c, minsyms.c, psymtab.c, symtab.c: All
2331 callers adjusted.
2332
2333 2018-01-10 Pedro Alves <palves@redhat.com>
2334
2335 PR gdb/22670
2336 * dwarf2read.c
2337 (gdb_index_symbol_name_matcher::gdb_index_symbol_name_matcher):
2338 Adjust to use language_get_symbol_name_matcher instead of
2339 language_defn::la_get_symbol_name_matcher.
2340 * language.c (language_get_symbol_name_matcher): If in Ada mode
2341 and the lookup name is a verbatim match, return Ada's matcher.
2342 * language.h (language_get_symbol_name_matcher): Adjust comment.
2343 (ada_lookup_name_info::verbatim_p):: New method.
2344
2345 2018-01-10 Pedro Alves <palves@redhat.com>
2346
2347 PR gdb/22670
2348 * ada-lang.c (ada_collect_symbol_completion_matches): If the
2349 minsym's language is language_auto or language_cplus, pass down
2350 language_ada instead.
2351 * symtab.c (compare_symbol_name): Don't frob symbol language here.
2352
2353 2018-01-10 Pedro Alves <palves@redhat.com>
2354
2355 PR gdb/22670
2356 * minsyms.c (linkage_name_str): New function.
2357 (iterate_over_minimal_symbols): Use it.
2358
2359 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2360
2361 * NEWS: Document that 'info proc' now works on FreeBSD.
2362
2363 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2364
2365 * configure.ac: Check for kinfo_getfile in libutil.
2366 * configure: Regenerate.
2367 * config.in: Regenerate.
2368 * fbsd-nat.c: Include "fbsd-tdep.h".
2369 (fbsd_fetch_cmdline): New.
2370 (fbsd_fetch_kinfo_proc): Move earlier and change to return a bool
2371 rather than calling error.
2372 (fbsd_info_proc): New.
2373 (fbsd_thread_name): Report error if fbsd_fetch_kinfo_proc fails.
2374 (fbsd_wait): Report warning if fbsd_fetch_kinfo_proc fails.
2375 (fbsd_nat_add_target): Set "to_info_proc" to "fbsd_info_proc".
2376
2377 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2378
2379 * fbsd-nat.c (struct free_deleter): Remove.
2380 (fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.
2381
2382 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2383
2384 * fbsd-nat.c (fbsd_pid_to_exec_file) [KERN_PROC_PATHNAME]: Return
2385 NULL for an empty pathname.
2386
2387 2018-01-09 John Baldwin <jhb@FreeBSD.org>
2388
2389 * fbsd-tdep.c (KVE_STRUCTSIZE, KVE_START, KVE_END, KVE_OFFSET)
2390 (KVE_FLAGS, KVE_PROTECTION, KVE_PATH, KINFO_VME_PROT_READ)
2391 (KINFO_VME_PROT_WRITE, KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
2392 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
2393 (KINFO_VME_FLAG_SUPER, KINFO_VME_FLAG_GROWS_UP)
2394 (KINFO_VME_FLAG_GROWS_DOWN, KF_STRUCTSIZE, KF_TYPE, KF_FD)
2395 (KF_PATH, KINFO_FILE_TYPE_VNODE, KINFO_FILE_FD_TYPE_CWD)
2396 (KINFO_FILE_FD_TYPE_TEXT, SIG_WORDS, struct kinfo_proc_layout)
2397 (kinfo_proc_layout_32, kinfo_proc_layout_i386)
2398 (kinfo_proc_layout_64, fbsd_vm_map_entry_flags)
2399 (fbsd_core_info_proc_mappings, fbsd_core_vnode_path)
2400 (fbsd_core_fetch_timeval, fbsd_print_sigset)
2401 (fbsd_core_info_proc_status, fbsd_core_info_proc): New.
2402 (fbsd_init_abi): Install gdbarch "core_info_proc" method.
2403 * fbsd-tdep.h (fbsd_vm_map_entry_flags): New.
2404
2405 2018-01-08 Samuel Thibault <samuel.thibault@ens-lyon.org>
2406
2407 * gdb/gnu-nat.c: Include <elf.h> and <link.h>.
2408 (gnu_xfer_auxv): New function.
2409 (gnu_xfer_partial): Call gnu_xfer_auxv when `object' is
2410 TARGET_OBJECT_AUXV.
2411
2412 2018-01-08 Yao Qi <yao.qi@linaro.org>
2413 Simon Marchi <simon.marchi@ericsson.com>
2414
2415 * Makefile.in (COMMON_SFILES): Remove selftest-arch.c and
2416 common/selftest.c.
2417 (COMMON_OBS): Remove selftest.o.
2418 * configure.ac: Append selftest-arch.c and common/selftest.c to
2419 CONFIG_SRCS. Append selftest-arch.o and selftest.o to COMMON_OBS.
2420 * configure: Re-generated.
2421 * maint.c (maintenance_selftest): Wrap selftests::run_tests with
2422 GDB_SELF_TEST.
2423 (maintenance_info_selftests): Likewise.
2424
2425 2018-01-08 Xavier Roirand <roirand@adacore.com>
2426
2427 * ada-valprint.c (val_print_packed_array_elements): Use
2428 proper number of elements when printing an array indexed
2429 by an enumeration type.
2430
2431 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2432
2433 * dwarf2read.c (struct dwarf2_cu) <dwarf2_per_objfile>: Remove.
2434 (dw2_get_file_names_reader): Adjust.
2435 (lookup_dwo_signatured_type): Adjust.
2436 (lookup_dwp_signatured_type): Adjust.
2437 (lookup_signatured_type): Adjust.
2438 (create_type_unit_group): Adjust.
2439 (get_type_unit_group): Adjust.
2440 (process_psymtab_comp_unit_reader): Adjust.
2441 (build_type_psymtabs_reader): Adjust.
2442 (scan_partial_symbols): Adjust.
2443 (add_partial_symbol): Adjust.
2444 (add_partial_subprogram): Adjust.
2445 (peek_die_abbrev): Adjust.
2446 (fixup_go_packaging): Adjust.
2447 (process_imported_unit_die): Adjust.
2448 (dwarf2_compute_name): Adjust.
2449 (dwarf2_physname): Adjust.
2450 (read_import_statement): Adjust.
2451 (handle_DW_AT_stmt_list): Adjust.
2452 (read_file_scope): Adjust.
2453 (read_func_scope): Adjust.
2454 (read_lexical_block_scope): Adjust.
2455 (read_call_site_scope): Adjust.
2456 (read_variable): Adjust.
2457 (dwarf2_rnglists_process): Adjust.
2458 (dwarf2_ranges_process): Adjust.
2459 (dwarf2_ranges_read): Adjust.
2460 (dwarf2_get_pc_bounds): Adjust.
2461 (dwarf2_record_block_ranges): Adjust.
2462 (dwarf2_add_field): Adjust.
2463 (dwarf2_add_member_fn): Adjust.
2464 (read_structure_type): Adjust.
2465 (process_structure_scope): Adjust.
2466 (read_enumeration_type): Adjust.
2467 (read_array_type): Adjust.
2468 (mark_common_block_symbol_computed): Adjust.
2469 (read_common_block): Adjust.
2470 (read_namespace_type): Adjust.
2471 (read_namespace): Adjust.
2472 (read_module_type): Adjust.
2473 (read_tag_pointer_type): Adjust.
2474 (read_tag_ptr_to_member_type): Adjust.
2475 (read_tag_string_type): Adjust.
2476 (read_subroutine_type): Adjust.
2477 (read_typedef): Adjust.
2478 (read_base_type): Adjust.
2479 (attr_to_dynamic_prop): Adjust.
2480 (read_subrange_type): Adjust.
2481 (read_unspecified_type): Adjust.
2482 (dwarf2_read_abbrevs): Adjust.
2483 (load_partial_dies): Adjust.
2484 (read_partial_die): Adjust.
2485 (find_partial_die): Adjust.
2486 (guess_partial_die_structure_name): Adjust.
2487 (fixup_partial_die): Adjust.
2488 (read_attribute_value): Adjust.
2489 (read_addr_index): Adjust.
2490 (read_addr_index_from_leb128): Adjust.
2491 (read_str_index): Adjust.
2492 (dwarf2_string_attr): Adjust.
2493 (get_debug_line_section): Adjust.
2494 (dwarf_decode_line_header): Adjust.
2495 (lnp_state_machine::check_line_address): Adjust.
2496 (dwarf_decode_lines_1): Adjust.
2497 (dwarf_decode_lines): Adjust.
2498 (dwarf2_start_symtab): Adjust.
2499 (var_decode_location): Adjust.
2500 (new_symbol_full): Adjust.
2501 (dwarf2_const_value_data): Adjust.
2502 (dwarf2_const_value_attr): Adjust.
2503 (dwarf2_const_value): Adjust.
2504 (die_type): Adjust.
2505 (die_containing_type): Adjust.
2506 (build_error_marker_type): Adjust.
2507 (lookup_die_type): Adjust.
2508 (guess_full_die_structure_name): Adjust.
2509 (anonymous_struct_prefix): Adjust.
2510 (determine_prefix): Adjust.
2511 (dwarf2_name): Adjust.
2512 (follow_die_ref_or_sig): Adjust.
2513 (follow_die_offset): Adjust.
2514 (follow_die_ref): Adjust.
2515 (follow_die_sig_1): Adjust.
2516 (follow_die_sig): Adjust.
2517 (get_signatured_type): Adjust.
2518 (get_DW_AT_signature_type): Adjust.
2519 (decode_locdesc): Adjust.
2520 (dwarf_decode_macros): Adjust.
2521 (cu_debug_loc_section): Adjust.
2522 (fill_in_loclist_baton): Adjust.
2523 (dwarf2_symbol_mark_computed): Adjust.
2524 (init_one_comp_unit): Don't assign
2525 dwarf2_cu::dwarf2_per_objfile.
2526 (set_die_type): Adjust.
2527
2528 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2529
2530 * dwarf2read.c (struct mapped_debug_names): Add constructor.
2531 <dwarf2_per_objfile>: New field.
2532 (dwarf2_per_objfile): Remove global.
2533 (get_dwarf2_per_objfile): New function.
2534 (set_dwarf2_per_objfile): New function.
2535 (dwarf2_build_psymtabs_hard): Change objfile parameter to
2536 dwarf2_per_objfile.
2537 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2538 (read_abbrev_offset): Likewise.
2539 (read_indirect_string): Likewise.
2540 (read_indirect_line_string): Likewise.
2541 (read_indirect_string_at_offset): Likewise.
2542 (read_indirect_string_from_dwz): Likewise.
2543 (dwarf2_find_containing_comp_unit): Change objfile parameter to
2544 dwarf2_per_objfile.
2545 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
2546 (create_all_comp_units): Change objfile parameter to
2547 dwarf2_per_objfile.
2548 (create_all_type_units): Likewise.
2549 (process_queue): Add dwarf2_per_objfile parameter.
2550 (read_and_check_comp_unit_head): Likewise.
2551 (lookup_dwo_unit_in_dwp): Likewise.
2552 (get_dwp_file): Likewise.
2553 (process_cu_includes): Likewise.
2554 (struct free_dwo_file_cleanup_data): New struct.
2555 (dwarf2_has_info): Use get_dwarf2_per_objfile and
2556 set_dwarf2_per_objfile.
2557 (dwarf2_get_dwz_file): Add dwarf2_per_objfile parameter.
2558 (dw2_do_instantiate_symtab): Get dwarf2_per_objfile from
2559 context, adjust calls.
2560 (dw2_instantiate_symtab): Likewise.
2561 (dw2_get_cutu): Add dwarf2_per_objfile parameter.
2562 (dw2_get_cu): Likewise.
2563 (create_cu_from_index_list): Change objfile parameter to
2564 dwarf2_per_objfile.
2565 (create_cus_from_index_list): Get dwarf2_per_objfile from
2566 context, adjust calls.
2567 (create_cus_from_index): Likewise.
2568 (create_signatured_type_table_from_index): Change objfile
2569 parameter to dwarf2_per_objfile.
2570 (create_signatured_type_table_from_debug_names): Change objfile
2571 parameter to dwarf2_per_objfile.
2572 (create_addrmap_from_index): Likewise.
2573 (create_addrmap_from_aranges): Likewise.
2574 (dwarf2_read_index): Use get_dwarf2_per_objfile, adjust calls.
2575 (dw2_setup): Remove.
2576 (dw2_get_file_names_reader): Get dwarf2_per_objfile from
2577 context.
2578 (dw2_find_last_source_symtab): Get dwarf2_per_objfile using
2579 get_dwarf2_per_objfile.
2580 (dw2_forget_cached_source_info): Likewise.
2581 (dw2_map_symtabs_matching_filename): Likewise.
2582 (struct dw2_symtab_iterator) <index>: Remove.
2583 <dwarf2_per_objfile>: New field.
2584 (dw2_symtab_iter_init): Replace index parameter with
2585 dwarf2_per_objfile.
2586 (dw2_symtab_iter_next): Use dwarf2_per_objfile from iter.
2587 (dw2_lookup_symbol): Use get_dwarf2_per_objfile and adjust.
2588 (dw2_print_stats): Likewise.
2589 (dw2_dump): Likewise.
2590 (dw2_expand_symtabs_for_function): Likewise.
2591 (dw2_expand_all_symtabs): Likewise.
2592 (dw2_expand_symtabs_with_fullname): Likewise.
2593 (dw2_expand_marked_cus): Replace index and objfile parameters
2594 with dwarf2_per_objfile.
2595 (dw_expand_symtabs_matching_file_matcher): Add
2596 dwarf2_per_objfile parameter and adjust calls.
2597 (dw2_expand_symtabs_matching): Use get_dwarf2_per_objfile and
2598 adjust calls.
2599 (dw2_find_pc_sect_compunit_symtab): Don't call dw2_setup.
2600 (dw2_map_symbol_filenames): Use get_dwarf2_per_objfile and
2601 adjust calls.
2602 (create_cus_from_debug_names_list): Replace objfile parameter
2603 with dwarf2_per_objfile and adjust calls.
2604 (create_cus_from_debug_names): Likewise.
2605 (dwarf2_read_debug_names): Likewise.
2606 (mapped_debug_names::namei_to_name): Adjust call.
2607 (dw2_debug_names_iterator::next): Likewise.
2608 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
2609 (dw2_debug_names_lookup_symbol): Use get_dwarf2_per_objfile.
2610 (dw2_debug_names_dump): Likewise.
2611 (dw2_debug_names_expand_symtabs_for_function): Likewise.
2612 (dw2_debug_names_expand_symtabs_matching): Likewise.
2613 (dwarf2_initialize_objfile): Likewise.
2614 (dwarf2_build_psymtabs): Likewise.
2615 (get_abbrev_section_for_cu): Get dwarf2_per_objfile from
2616 this_cu.
2617 (error_check_comp_unit_head): Add dwarf2_per_objfile parameter.
2618 (read_and_check_comp_unit_head): Likewise.
2619 (read_abbrev_offset): Likewise.
2620 (create_debug_type_hash_table): Likewise.
2621 (create_debug_types_hash_table): Likewise.
2622 (create_all_type_units): Replace objfile parameter with
2623 dwarf2_per_objfile.
2624 (add_type_unit): Add dwarf2_per_objfile parameter.
2625 (fill_in_sig_entry_from_dwo_entry): Replace objfile parameter
2626 with dwarf2_per_objfile.
2627 (lookup_dwo_signatured_type): Get dwarf2_per_objfile from cu.
2628 (lookup_dwp_signatured_type): Likewise.
2629 (lookup_signatured_type): Likewise.
2630 (read_cutu_die_from_dwo): Likewise.
2631 (init_tu_and_read_dwo_dies): Likewise.
2632 (init_cutu_and_read_dies): Likewise.
2633 (init_cutu_and_read_dies_no_follow): Likewise.
2634 (allocate_type_unit_groups_table): Add objfile parameter.
2635 (create_type_unit_group): Use dwarf2_per_objfile from cu.
2636 (get_type_unit_group): Likewise.
2637 (process_psymtab_comp_unit): Update call.
2638 (build_type_psymtabs_reader): Use dwarf2_per_objfile from cu.
2639 (build_type_psymtabs_1): Add dwarf2_per_objfile parameter.
2640 (print_tu_stats): Likewise.
2641 (build_type_psymtab_dependencies): Use dwarf2_per_objfile passed
2642 in void* parameter.
2643 (build_type_psymtabs): Change objfile parameter to
2644 dwarf2_per_objfile.
2645 (process_skeletonless_type_unit): Use dwarf2_per_objfile
2646 passed in void* parameter.
2647 (process_skeletonless_type_units): Change objfile parameter to
2648 dwarf2_per_objfile.
2649 (set_partial_user): Likewise.
2650 (dwarf2_build_psymtabs_hard): Likewise.
2651 (read_comp_units_from_section): Likewise.
2652 (create_all_comp_units): Likewise.
2653 (scan_partial_symbols): Update calls.
2654 (add_partial_symbol): Likewise.
2655 (dwarf2_read_symtab): Use get_dwarf2_per_objfile.
2656 (maybe_queue_comp_unit): Use dwarf2_read_symtab from cu.
2657 (process_queue): Add dwarf2_per_objfile parameter.
2658 (get_compunit_symtab): Use dwarf2_per_objfile from cu.
2659 (compute_compunit_symtab_includes): Likewise.
2660 (process_cu_includes): Add dwarf2_per_objfile parameter.
2661 (process_full_comp_unit): Use dwarf2_per_objfile from cu.
2662 (process_full_type_unit): Likewise.
2663 (process_imported_unit_die): Update call.
2664 (handle_DW_AT_stmt_list): Use dwarf2_per_objfile from cu.
2665 (read_file_scope): Likewise.
2666 (allocate_dwo_file_hash_table): Add objfile parameter.
2667 (lookup_dwo_file_slot): Add dwarf2_per_objfile parameter.
2668 (create_cus_hash_table): Likewise.
2669 (create_dwp_hash_table): Likewise.
2670 (create_dwo_unit_in_dwp_v1): Likewise.
2671 (create_dwp_v2_section): Likewise.
2672 (create_dwo_unit_in_dwp_v2): Likewise.
2673 (lookup_dwo_unit_in_dwp): Likewise.
2674 (try_open_dwop_file): Likewise.
2675 (open_dwo_file): Likewise. Use dwarf2_per_objfile from cu.
2676 (open_and_init_dwo_file): Use dwarf2_per_objfile from cu, update
2677 cleanup to include a reference to dwarf2_per_objfile.
2678 (open_dwp_file): Add dwarf2_per_objfile parameter.
2679 (open_and_init_dwp_file): Likewise.
2680 (get_dwp_file): Likewise.
2681 (lookup_dwo_cutu): Use dwarf2_per_objfile from cu.
2682 (queue_and_load_all_dwo_tus): Update call.
2683 (free_dwo_file_cleanup): Use dwarf2_per_objfile from cleanup
2684 data.
2685 (dwarf2_rnglists_process): Use dwarf2_per_objfile from cu.
2686 (dwarf2_ranges_process): Likewise.
2687 (dwarf2_get_pc_bounds): Likewise.
2688 (mark_common_block_symbol_computed): Likewise.
2689 (abbrev_table_read_table): Add dwarf2_per_objfile parameter.
2690 (dwarf2_read_abbrevs): Update call.
2691 (read_partial_die): Use dwarf2_per_objfile from cu.
2692 (find_partial_die): Likewise.
2693 (fixup_partial_die): Likewise.
2694 (read_attribute_value): Likewise.
2695 (read_indirect_string_at_offset_from): Add objfile parameter.
2696 (read_indirect_string_at_offset): Add dwarf2_per_objfile
2697 parameter.
2698 (read_indirect_string_from_dwz): Add objfile parameter.
2699 (read_indirect_string): Add objfile parameter.
2700 (read_addr_index_1): Add dwarf2_per_objfile parameter.
2701 (read_addr_index): Use dwarf2_per_objfile from cu.
2702 (dwarf2_read_addr_index): Use dwarf2_per_objfile from cu, don't
2703 call dw2_setup.
2704 (read_str_index): Use dwarf2_per_objfile from cu.
2705 (get_debug_line_section): Likewise.
2706 (read_formatted_entries): Add dwarf2_per_objfile parameter.
2707 (dwarf_decode_line_header): Use dwarf2_per_objfile from cu.
2708 (new_symbol_full): Use dwarf2_per_objfile from cu.
2709 (build_error_marker_type): Likewise.
2710 (lookup_die_type): Likewise.
2711 (determine_prefix): Likewise.
2712 (follow_die_offset): Likewise.
2713 (dwarf2_fetch_die_loc_sect_off): Use get_dwarf2_per_objfile.
2714 (dwarf2_fetch_constant_bytes): Don't call dw2_setup.
2715 (dwarf2_fetch_die_type_sect_off): Likewise.
2716 (dwarf2_get_die_type): Likewise.
2717 (follow_die_sig_1): Use dwarf2_per_objfile from cu.
2718 (get_signatured_type): Likewise.
2719 (get_DW_AT_signature_type): Likewise.
2720 (dwarf_decode_macro_bytes): Add dwarf2_per_objfile parameter.
2721 (dwarf_decode_macros): Use dwarf2_per_objfile from cu.
2722 (cu_debug_loc_section): Likewise.
2723 (fill_in_loclist_baton): Likewise.
2724 (dwarf2_symbol_mark_computed): Likewise.
2725 (dwarf2_find_containing_comp_unit): Change objfile parameter to
2726 dwarf2_per_objfile.
2727 (free_cached_comp_units): Use dwarf2_per_objfile passed in void*
2728 parameter.
2729 (age_cached_comp_units): Add dwarf2_per_objfile parameter.
2730 (free_one_cached_comp_unit): Use dwarf2_per_objfile from cu.
2731 (dwarf2_free_objfile): Use get_dwarf2_per_objfile.
2732 (set_die_type): Use dwarf2_free_objfile from cu.
2733 (get_die_type_at_offset): Likewise.
2734 (dwarf2_per_objfile_free): Don't assign global variable.
2735 (debug_names) <constructor>: Add dwarf2_per_objfile
2736 parameter, update m_debugstrlookup construction.
2737 (debug_names::debug_str_lookup): Add dwarf2_per_objfile
2738 parameter.
2739 <m_dwarf2_per_objfile>: New field.
2740 <lookup>: Use m_dwarf2_per_objfile.
2741 (check_dwarf64_offsets): Add dwarf2_per_objfile parameter.
2742 (psyms_seen_size): Likewise.
2743 (write_gdbindex): Replace objfile parameter with
2744 dwarf2_per_objfile.
2745 (write_debug_names): Likewise.
2746 (write_psymtabs_to_index): Likewise.
2747 (save_gdb_index_command): Use get_dwarf2_per_objfile, update
2748 calls.
2749
2750 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2751
2752 * dwarf2read.c (struct dwarf2_cu) <objfile>: Remove.
2753 <dwarf2_per_objfile>: New field.
2754 (struct dwarf2_per_cu_data) <objfile>: Remove.
2755 <dwarf2_per_objfile>: New field.
2756 (create_cu_from_index_list): Assign dwarf2_per_objfile instead
2757 of objfile.
2758 (create_signatured_type_table_from_index): Likewise.
2759 (create_debug_type_hash_table): Likewise.
2760 (fill_in_sig_entry_from_dwo_entry): Likewise.
2761 (lookup_dwo_unit): Access objfile through dwarf2_per_objfile.
2762 (create_type_unit_group): Assign dwarf2_per_objfile instead of
2763 objfile.
2764 (create_partial_symtab): Access objfile through
2765 dwarf2_per_objfile.
2766 (process_psymtab_comp_unit_reader): Likewise.
2767 (read_comp_units_from_section): Likewise.
2768 (scan_partial_symbols): Likewise.
2769 (add_partial_symbol): Likewise.
2770 (add_partial_subprogram): Likewise.
2771 (peek_die_abbrev): Likewise.
2772 (fixup_go_packaging): Likewise.
2773 (process_full_comp_unit): Likewise.
2774 (process_full_type_unit): Likewise.
2775 (process_imported_unit_die): Likewise.
2776 (dwarf2_compute_name): Likewise.
2777 (dwarf2_physname): Likewise.
2778 (read_import_statement): Likewise.
2779 (create_cus_hash_table): Assign dwarf2_physname instead of
2780 objfile.
2781 (read_func_scope): Access objfile through dwarf2_per_objfile.
2782 (read_lexical_block_scope): Likewise.
2783 (read_call_site_scope): Likewise.
2784 (read_variable): Likewise.
2785 (dwarf2_rnglists_process): Likewise.
2786 (dwarf2_ranges_process): Likewise.
2787 (dwarf2_ranges_read): Likewise.
2788 (dwarf2_record_block_ranges): Likewise.
2789 (dwarf2_add_field): Likewise.
2790 (dwarf2_add_member_fn): Likewise.
2791 (read_structure_type): Likewise.
2792 (process_structure_scope): Likewise.
2793 (read_enumeration_type): Likewise.
2794 (read_array_type): Likewise.
2795 (read_common_block): Likewise.
2796 (read_namespace_type): Likewise.
2797 (read_namespace): Likewise.
2798 (read_module_type): Likewise.
2799 (read_tag_pointer_type): Likewise.
2800 (read_tag_ptr_to_member_type): Likewise.
2801 (read_tag_string_type): Likewise.
2802 (read_subroutine_type): Likewise.
2803 (read_typedef): Likewise.
2804 (read_base_type): Likewise.
2805 (attr_to_dynamic_prop): Likewise.
2806 (read_subrange_type): Likewise.
2807 (read_unspecified_type): Likewise.
2808 (load_partial_dies): Likewise.
2809 (read_partial_die): Likewise.
2810 (find_partial_die): Likewise.
2811 (guess_partial_die_structure_name): Likewise.
2812 (fixup_partial_die): Likewise.
2813 (read_attribute_value): Likewise.
2814 (read_addr_index_from_leb128): Likewise.
2815 (dwarf2_read_addr_index): Likewise.
2816 (dwarf2_string_attr): Likewise.
2817 (lnp_state_machine::check_line_address): Likewise.
2818 (dwarf_decode_lines_1): Likewise.
2819 (dwarf_decode_lines): Likewise.
2820 (dwarf2_start_symtab): Likewise.
2821 (var_decode_location): Likewise.
2822 (new_symbol_full): Likewise.
2823 (dwarf2_const_value_data): Likewise.
2824 (dwarf2_const_value_attr): Likewise.
2825 (dwarf2_const_value): Likewise.
2826 (die_type): Likewise.
2827 (die_containing_type): Likewise.
2828 (lookup_die_type): Likewise.
2829 (guess_full_die_structure_name): Likewise.
2830 (anonymous_struct_prefix): Likewise.
2831 (dwarf2_name): Likewise.
2832 (follow_die_ref_or_sig): Likewise.
2833 (follow_die_offset): Likewise.
2834 (follow_die_ref): Likewise.
2835 (dwarf2_fetch_die_loc_sect_off): Likewise.
2836 (dwarf2_fetch_constant_bytes): Likewise.
2837 (dwarf2_fetch_die_type_sect_off): Likewise.
2838 (dwarf2_get_die_type): Likewise.
2839 (follow_die_sig): Likewise.
2840 (decode_locdesc): Likewise.
2841 (dwarf2_per_cu_objfile): Likewise.
2842 (dwarf2_per_cu_text_offset): Likewise.
2843 (init_one_comp_unit): Assign dwarf2_per_objfile instead of
2844 objfile.
2845 (set_die_type): Access objfile through
2846 dwarf2_per_objfile.
2847
2848 2018-01-07 Simon Marchi <simon.marchi@ericsson.com>
2849
2850 * valprint.c (converted_character_d): Remove typedef.
2851 (DEF_VEC_O (converted_character_d)): Remove.
2852 (count_next_character): Use std::vector.
2853 (print_converted_chars_to_obstack): Likewise.
2854 (generic_printstr): Likewise.
2855
2856 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2857
2858 * xml-support.h (struct gdb_xml_value): Add constructor.
2859 <value>: Change type to unique_xmalloc_ptr.
2860 (gdb_xml_value_s): Remove typedef.
2861 (DEF_VEC_O (gdb_xml_value_s)): Remove.
2862 (gdb_xml_element_start_handler): Change parameter type to
2863 std::vector.
2864 (xml_find_attribute): Likewise.
2865 * xml-support.c (xml_find_attribute): Change parameter type to
2866 std::vector and adjust.
2867 (gdb_xml_values_cleanup): Remove.
2868 (gdb_xml_parser::start_element): Adjust to std::vector.
2869 (xinclude_start_include): Change paraeter type to std::vector
2870 and adjust.
2871 * btrace.c (check_xml_btrace_version): Likewise.
2872 (parse_xml_btrace_block): Likewise.
2873 (parse_xml_btrace_pt_config_cpu): Likewise.
2874 (parse_xml_btrace_pt): Likewise.
2875 (parse_xml_btrace_conf_bts): Likewise.
2876 (parse_xml_btrace_conf_pt): Likewise.
2877 * memory-map.c (memory_map_start_memory): Likewise.
2878 (memory_map_start_property): Likewise.
2879 * osdata.c (osdata_start_osdata): Likewise.
2880 (osdata_start_item): Likewise.
2881 (osdata_start_column): Likewise.
2882 * remote.c (start_thread): Likewise.
2883 * solib-aix.c (library_list_start_library): Likewise.
2884 (library_list_start_list): Likewise.
2885 * solib-svr4.c (library_list_start_library): Likewise.
2886 (svr4_library_list_start_list): Likewise.
2887 * solib-target.c (library_list_start_segment): Likewise.
2888 (library_list_start_section): Likewise.
2889 (library_list_start_library): Likewise.
2890 (library_list_start_list): Likewise.
2891 * tracepoint.c (traceframe_info_start_memory): Likewise.
2892 (traceframe_info_start_tvar): Likewise.
2893 * xml-syscall.c (syscall_start_syscall): Likewise.
2894 * xml-tdesc.c (tdesc_start_target): Likewise.
2895 (tdesc_start_feature): Likewise.
2896 (tdesc_start_reg): Likewise.
2897 (tdesc_start_union): Likewise.
2898 (tdesc_start_struct): Likewise.
2899 (tdesc_start_flags): Likewise.
2900 (tdesc_start_enum): Likewise.
2901 (tdesc_start_field): Likewise.
2902 (tdesc_start_enum_value): Likewise.
2903 (tdesc_start_vector): Likewise.
2904
2905 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2906
2907 * extension.h (struct xmethod_worker) <clone>: Remove.
2908 * python/py-xmethods.c (struct python_xmethod_worker) <clone>:
2909 Remove.
2910 (python_xmethod_worker::clone): Remove.
2911 * valops.c (find_overload_match): Use std::move instead of
2912 clone.
2913
2914 2018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2915
2916 * extension-priv.h (enum ext_lang_rc): Remove, move to extension.h.
2917 (struct extension_language_ops) <clone_xmethod_worker_data>: Remove.
2918 <free_xmethod_worker_data>: Remove.
2919 <get_matching_xmethod_workers>: Chance VEC to std::vector.
2920 <get_xmethod_arg_types>: Remove.
2921 <get_xmethod_result_type>: Remove.
2922 <invoke_xmethod>: Remove.
2923 * extension.c (new_xmethod_worker): Remove.
2924 (clone_xmethod_worker): Remove.
2925 (get_matching_xmethod_workers): Return void, pass std::vector by
2926 pointer.
2927 (get_xmethod_arg_types): Rename to...
2928 (xmethod_worker::get_arg_types): ... this, and adjust.
2929 (get_xmethod_result_type): Rename to...
2930 (xmethod_worker::get_result_type): ... this, and adjust.
2931 (invoke_xmethod): Remove.
2932 (free_xmethod_worker): Remove.
2933 (free_xmethod_worker_vec): Remove.
2934 * extension.h (enum ext_lang_rc): Move here from
2935 extension-priv.h.
2936 (struct xmethod_worker): Add constructor and destructor.
2937 <data>: Remove.
2938 <value>: Remove.
2939 <invoke, clone, do_get_result_type, do_get_arg_types>: New
2940 virtual pure methods.
2941 <get_arg_types, get_result_type>: New methods.
2942 (xmethod_worker_ptr): Remove typedef.
2943 (DEF_VEC_P (xmethod_worker_ptr)): Remove.
2944 (xmethod_worker_vec): Remove typedef.
2945 (xmethod_worker_up): New typedef.
2946 (invoke_xmethod): Remove.
2947 (clone_xmethod_worker): Remove.
2948 (free_xmethod_worker): Remove.
2949 (free_xmethod_worker_vec): Remove.
2950 (get_xmethod_arg_types): Remove.
2951 (get_xmethod_result_type): Remove.
2952 * valops.c (find_method_list): Use std::vector, don't use
2953 intermediate vector.
2954 (value_find_oload_method_list): Use std::vector.
2955 (find_overload_match): Use std::vector.
2956 (find_oload_champ): Use std::vector.
2957 * value.c (value_free): Use operator delete.
2958 (value_of_xmethod): Rename to...
2959 (value_from_xmethod): ... this. Don't assign
2960 xmethod_worker::value, take rvalue-reference.
2961 (result_type_of_xmethod): Adjust.
2962 (call_xmethod): Adjust.
2963 * value.h: Include extension.h.
2964 (struct xmethod_worker): Don't forward-declare.
2965 (value_of_xmethod): Rename to...
2966 (value_from_xmethod): ... this, take rvalue-reference.
2967 * python/py-xmethods.c (struct gdbpy_worker_data): Rename to...
2968 (struct python_xmethod_worker): ... this, add constructor and
2969 destructor.
2970 <invoke, clone, do_get_arg_types, do_get_result_type>: Implement.
2971 (gdbpy_free_xmethod_worker_data): Rename to...
2972 (python_xmethod_worker::~python_xmethod_worker): ... this and
2973 adjust.
2974 (gdbpy_clone_xmethod_worker_data): Rename to...
2975 (python_xmethod_worker::clone): ... this and adjust.
2976 (gdbpy_get_matching_xmethod_workers): Use std::vector, don't use
2977 temporary vector.
2978 (gdbpy_get_xmethod_arg_types): Rename to...
2979 (python_xmethod_worker::do_get_arg_types): ... this and adjust.
2980 (gdbpy_get_xmethod_result_type): Rename to...
2981 (python_xmethod_worker::do_get_result_type): ... this and
2982 adjust.
2983 (gdbpy_invoke_xmethod): Rename to...
2984 (python_xmethod_worker::invoke): ... this and adjust.
2985 (new_python_xmethod_worker): Rename to...
2986 (python_xmethod_worker::python_xmethod_worker): ... this and
2987 adjust.
2988 * python/python-internal.h (gdbpy_clone_xmethod_worker_data):
2989 Remove.
2990 (gdbpy_free_xmethod_worker_data): Remove.
2991 (gdbpy_get_matching_xmethod_workers): Use std::vector.
2992 (gdbpy_get_xmethod_arg_types): Remove.
2993 (gdbpy_get_xmethod_result_type): Remove.
2994 (gdbpy_invoke_xmethod): Remove.
2995 * python/python.c (python_extension_ops): Remove obsolete
2996 callbacks.
2997
2998 2018-01-05 Pedro Alves <palves@redhat.com>
2999
3000 PR gdb/18653
3001 * common/signals-state-save-restore.c
3002 (save_original_signals_state): New parameter 'quiet'. Warn if we
3003 find a custom handler preinstalled, instead of internal erroring.
3004 But only warn if !quiet.
3005 * common/signals-state-save-restore.h
3006 (save_original_signals_state): New parameter 'quiet'.
3007 * main.c (captured_main_1): Move save_original_signals_state call
3008 after option handling, and pass QUIET.
3009
3010 2018-01-05 Pedro Alves <palves@redhat.com>
3011
3012 * spu-tdep.c (spu_catch_start): Pass
3013 symbol_name_match_type::SEARCH_NAME to block_lookup_symbol.
3014
3015 2018-01-05 Pedro Alves <palves@redhat.com>
3016
3017 PR gdb/22670
3018 * ada-lang.c (literal_symbol_name_matcher): New function.
3019 (ada_get_symbol_name_matcher): Use it for
3020 symbol_name_match_type::SEARCH_NAME.
3021 * block.c (block_lookup_symbol): New parameter 'match_type'. Pass
3022 it down instead of assuming symbol_name_match_type::FULL.
3023 * block.h (block_lookup_symbol): New parameter 'match_type'.
3024 * c-valprint.c (print_unpacked_pointer): Use
3025 lookup_symbol_search_name instead of lookup_symbol.
3026 * compile/compile-object-load.c (get_out_value_type): Pass down
3027 symbol_name_match_type::SEARCH_NAME.
3028 * cp-namespace.c (cp_basic_lookup_symbol): Pass down
3029 symbol_name_match_type::FULL.
3030 * cp-support.c (cp_get_symbol_name_matcher): Handle
3031 symbol_name_match_type::SEARCH_NAME.
3032 * infrun.c (insert_exception_resume_breakpoint): Use
3033 lookup_symbol_search_name.
3034 * p-valprint.c (pascal_val_print): Use lookup_symbol_search_name.
3035 * psymtab.c (maintenance_check_psymtabs): Use
3036 symbol_name_match_type::SEARCH_NAME and SYMBOL_SEARCH_NAME.
3037 * stack.c (print_frame_args): Use lookup_symbol_search_name and
3038 SYMBOL_SEARCH_NAME.
3039 * symtab.c (lookup_local_symbol): Don't demangle the lookup name
3040 if symbol_name_match_type::SEARCH_NAME.
3041 (lookup_symbol_in_language): Pass down
3042 symbol_name_match_type::FULL.
3043 (lookup_symbol_search_name): New.
3044 (lookup_language_this): Pass down
3045 symbol_name_match_type::SEARCH_NAME.
3046 (lookup_symbol_aux, lookup_local_symbol): New parameter
3047 'match_type'. Pass it down.
3048 * symtab.h (symbol_name_match_type::SEARCH_NAME): New enumerator.
3049 (lookup_symbol_search_name): New declaration.
3050 (lookup_symbol_in_block): New 'match_type' parameter.
3051
3052 2018-01-05 Pedro Alves <palves@redhat.com>
3053
3054 PR gdb/22670
3055 * ada-lang.c (ada_lookup_encoded_symbol): Reimplement in terms of
3056 ada_lookup_symbol.
3057 (ada_lookup_symbol): Reimplement in terms of
3058 ada_lookup_symbol_list, bits factored out from
3059 ada_lookup_encoded_symbol.
3060
3061 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3062
3063 * ada-exp.y (write_object_renaming): When subscripting an array
3064 using a symbol as the index, pass the block in call to
3065 ada_lookup_encoded_symbol when looking that symbol up.
3066
3067 2018-01-05 Jerome Guitton <guitton@adacore.com>
3068
3069 * ada-lang.c (ada_array_length): Use ada_index_type instead of
3070 TYPE_INDEX_TYPE.
3071
3072 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3073
3074 * ada-lang.c (ada_to_fixed_value_create): Add handling of
3075 the case where VALUE_LVAL (val0) is not lval_memory.
3076
3077 2018-01-05 Xavier Roirand <roirand@adacore.com>
3078
3079 * ada-valprint.c (print_optional_low_bound): Handle
3080 character-indexed array printing like boolean-indexed array
3081 printing.
3082
3083 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3084
3085 * NEWS: Create a new section for the next release branch.
3086 Rename the section of the current branch, now that it has
3087 been cut.
3088
3089 2018-01-05 Joel Brobecker <brobecker@adacore.com>
3090
3091 GDB 8.1 branch created (5219ac6237c272b938c28517bf371429260c71e7):
3092 * version.in: Bump version to 8.1.50.DATE-git.
3093
3094 2018-01-03 Xavier Roirand <roirand@adacore.com>
3095
3096 * ada-lang.h (ada_exception_catchpoint_kind) <ada_catch_handlers>:
3097 Add field.
3098 * ada-lang.c (struct exception_support_info) <catch_handlers_sym>:
3099 Add field.
3100 (default_exception_support_info) <catch_handlers_sym>: Add field.
3101 (exception_support_info_fallback) <catch_handlers_sym>: Add field.
3102 (ada_exception_name_addr_1): Add "catch handlers" handling.
3103 (ada_exception_catchpoint_cond_string) <ex>: New parameter.
3104 Update all callers.
3105 (create_excep_cond_exprs) <ex>: Add parameter.
3106 (re_set_exception): Update create_excep_cond_exprs call.
3107 (print_it_exception, print_one_exception, print_mention_exception)
3108 (print_recreate_exception): Add "catch handler" handling.
3109 (allocate_location_catch_handlers, re_set_catch_handlers)
3110 (check_status_catch_handlers, print_it_catch_handlers)
3111 (print_one_catch_handlers, print_mention_catch_handlers)
3112 (print_recreate_catch_handlers): New function.
3113 (catch_handlers_breakpoint_ops): New variable.
3114 (catch_ada_exception_command_split) <is_catch_handlers_cmd>:
3115 Add parameter. Add "catch handler" handling.
3116 (ada_exception_sym_name, ada_exception_breakpoint_ops):
3117 Add "catch handler" handling.
3118 (ada_exception_catchpoint_cond_string): Add "catch handler"
3119 handling.
3120 (create_ada_exception_catchpoint): Update create_excep_cond_exprs
3121 call.
3122 (catch_ada_handlers_command): New function.
3123 (initialize_ada_catchpoint_ops): Initialize "catch handlers"
3124 operations structure.
3125 (_initialize_ada_language): Add "catch handlers" command entry.
3126 * NEWS: Document "catch handlers" feature.
3127
3128 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3129
3130 * ada-lang.c (ada_value_slice_from_ptr): Take array stride into
3131 account when creating the array type of the slice.
3132 (ada_value_slice): Likewise.
3133
3134 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3135
3136 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_STRIDE>:
3137 New enum value.
3138 (create_array_type_with_stride): Add byte_stride_prop parameter.
3139 * gdbtypes.c (create_array_type_with_stride) <byte_stride_prop>:
3140 New parameter. Update all callers in this file.
3141 (array_type_has_dynamic_stride): New function.
3142 (is_dynamic_type_internal, resolve_dynamic_array): Add handling
3143 of arrays with dynamic byte strides.
3144 * dwarf2read.c (read_array_type): Add support for dynamic
3145 DW_AT_byte_stride attributes.
3146
3147 2018-01-02 Joel Brobecker <brobecker@adacore.com>
3148
3149 * dwarf2read.c (read_unspecified_type): Treat
3150 DW_TAG_enumeration_type DIEs from Ada units as stubs.
3151
3152 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3153
3154 Update copyright year range in all GDB files.
3155
3156 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3157
3158 * copyright.py (BY_HAND): Remove gdb/testsuite/gdb.base/step-line.inp
3159 and gdb/testsuite/gdb.base/step-line.c.
3160
3161 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3162
3163 * copyright.py (main): Dump the contents of
3164 MULTIPLE_COPYRIGHT_HEADERS (separately) from BY_HAND,
3165 even if BY_HAND is empty.
3166
3167 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3168
3169 * top.c (print_gdb_version): Update Copyright year in version
3170 message.
3171
3172 2018-01-01 Joel Brobecker <brobecker@adacore.com>
3173
3174 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2017.
3175
3176 For older changes see ChangeLog-2017.
3177 \f
3178 Local Variables:
3179 mode: change-log
3180 left-margin: 8
3181 fill-column: 74
3182 version-control: never
3183 coding: utf-8
3184 End:
This page took 0.144774 seconds and 4 git commands to generate.