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