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