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