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