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