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