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