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