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