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