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