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