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