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