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