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