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