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