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