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