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