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