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