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