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