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