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