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